Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/asciidoctor/asciidoctor-reducer
:alembic: A tool to generate a single AsciiDoc document by expanding all the include directives reachable from the parent document.
https://github.com/asciidoctor/asciidoctor-reducer
verify reducer can reduce include file specified using absolute path
7aee231c72f65ddf6221371fdc29ab77a9138ca7 authored almost 3 years ago
7aee231c72f65ddf6221371fdc29ab77a9138ca7 authored almost 3 years ago
add finally method to scenario builder for tests
finally method specifies block to use in place of ensure block on test itself
103c983e54ac754ae0f2ba1f6be3fa4caa1eb225 authored almost 3 years ago
add include_source, include_file, and include_file_basename helpers to DSL of ScenarioBuilder
773b74a03ed2b261540bfdc9549b7228aa69c5eb authored almost 3 years ago
773b74a03ed2b261540bfdc9549b7228aa69c5eb authored almost 3 years ago
ensure scenario builder always cleans up temporary files
9acb611bcbb3da00c2f472fd494b9118917151b0 authored almost 3 years ago
9acb611bcbb3da00c2f472fd494b9118917151b0 authored almost 3 years ago
insert empty line after heredoc and blocks in tests
8c855708c249000fc337b306e895bbca6fcc1451 authored almost 3 years ago
8c855708c249000fc337b306e895bbca6fcc1451 authored almost 3 years ago
fix check for relative source file in bin script; consolidate require statement
bdb44ef6cf215e6e11e60ad60252506c2c52cba8 authored almost 3 years ago
bdb44ef6cf215e6e11e60ad60252506c2c52cba8 authored almost 3 years ago
make Asciidoctor::Reducer::Cli a module instead of a class
9bae09428855bd8b73592e643d2c88d2a8509752 authored almost 3 years ago
9bae09428855bd8b73592e643d2c88d2a8509752 authored almost 3 years ago
rename fixture files that contain include tags
7771c9fc436e62a6d2891397d462ac4ebbad5228 authored almost 3 years ago
7771c9fc436e62a6d2891397d462ac4ebbad5228 authored almost 3 years ago
add missing fixture file
a3f50a0ef3e3359553da733e6fabce57fb4cad4b authored almost 3 years ago
a3f50a0ef3e3359553da733e6fabce57fb4cad4b authored almost 3 years ago
verify reduce_file can convert file at specified relative path
5b90df6858f2b3f55443ff7eb4fdb830556b43d2 authored almost 3 years ago
5b90df6858f2b3f55443ff7eb4fdb830556b43d2 authored almost 3 years ago
declare signal in a local variable in CLI signal tests
083deb48163e21a6c2274f6211399d0b0b3eaff6 authored almost 3 years ago
083deb48163e21a6c2274f6211399d0b0b3eaff6 authored almost 3 years ago
verify CLI can reduce a document at the specified relative path; remove chdir from run_command helper
ba786b51488ef942baf83b65f09ecc1aa741a77d authored almost 3 years ago
ba786b51488ef942baf83b65f09ecc1aa741a77d authored almost 3 years ago
slightly revise description [skip ci]
7e83f35c255794f8f6439d0135e090b1c277a4e9 authored almost 3 years ago
7e83f35c255794f8f6439d0135e090b1c277a4e9 authored almost 3 years ago
use tap to chain call to mkpath on Pathname object [skip ci]
f9c4a9ca31a6f84e656b1d05208f791dc9bb8933 authored almost 3 years ago
f9c4a9ca31a6f84e656b1d05208f791dc9bb8933 authored almost 3 years ago
rewrite tests to remove dependency on preprocessor-conditional.adoc fixture
c2ed40c30f7b367a2a5bbce59a83622616ad71b1 authored almost 3 years ago
c2ed40c30f7b367a2a5bbce59a83622616ad71b1 authored almost 3 years ago
rewrite tests to remove dependency on subsections.adoc fixture
68e3ac783769079f07a2efdf720e4525775f7141 authored almost 3 years ago
68e3ac783769079f07a2efdf720e4525775f7141 authored almost 3 years ago
rewrite tests to remove dependency on include-with-include.adoc fixture
8f8cfb03f9f9a4a7457da3c601aaa5dbca5ccc87 authored almost 3 years ago
8f8cfb03f9f9a4a7457da3c601aaa5dbca5ccc87 authored almost 3 years ago
fix grammar in fixtures
ff9d6eb3c72edf51a7c53a5f776a48031536b549 authored almost 3 years ago
ff9d6eb3c72edf51a7c53a5f776a48031536b549 authored almost 3 years ago
assert full expected source in include mapper tests
a5bc2b1bc2e190e19263c8548407a51d5609e6cb authored almost 3 years ago
a5bc2b1bc2e190e19263c8548407a51d5609e6cb authored almost 3 years ago
upgrade RuboCop
0611f94d1f38d9c9433460079c49fdb4dc07f47f authored almost 3 years ago
0611f94d1f38d9c9433460079c49fdb4dc07f47f authored almost 3 years ago
add rudimentary unrequire helper in test suite
bc38e7de607d91cb570e95c7418637daf34db798 authored almost 3 years ago
bc38e7de607d91cb570e95c7418637daf34db798 authored almost 3 years ago
add test that mapping comment is not added twice when sourcemap is enabled and include mapper is registered globally
14f556ec86ea4d9f2cb6c070d11827074605872b authored almost 3 years ago
14f556ec86ea4d9f2cb6c070d11827074605872b authored almost 3 years ago
slightly simplify delegation for ScenarioBuilder
f9b2a81582f1f7a5ab6376e8771a89c0f4428a40 authored almost 3 years ago
f9b2a81582f1f7a5ab6376e8771a89c0f4428a40 authored almost 3 years ago
remove reduce_file helper; don't enable sourcemap by default in tests
4bd657eb14bccb2c9c6c1ac037b502f832b76a19 authored almost 3 years ago
4bd657eb14bccb2c9c6c1ac037b502f832b76a19 authored almost 3 years ago
remove unnecessary brackets
bebb20d40d98a0f119806ce369640f0ed9a09cf4 authored almost 3 years ago
bebb20d40d98a0f119806ce369640f0ed9a09cf4 authored almost 3 years ago
make ScenarioBuilder delegate calls to current example
5e13ac2d0564ca4beac891f63d7724fe93843ca2 authored almost 3 years ago
5e13ac2d0564ca4beac891f63d7724fe93843ca2 authored almost 3 years ago
split up spec_helper.rb into multiple files; include example helpers from module
c4f2bbfbd4c2a3be6b57c1495a67fa93fc1d287b authored almost 3 years ago
c4f2bbfbd4c2a3be6b57c1495a67fa93fc1d287b authored almost 3 years ago
fix inadvertent change to test scenario
afde586686e09c6cdb342fb897708e9bac65aef9 authored almost 3 years ago
afde586686e09c6cdb342fb897708e9bac65aef9 authored almost 3 years ago
provide clearer way to turn off sourcemap in test
657d8c64b29b9a6361e5958b5595489a225dbd90 authored almost 3 years ago
657d8c64b29b9a6361e5958b5595489a225dbd90 authored almost 3 years ago
use kwargs where possible in spec helpers
d1f373d9c68d3bf715f393ae2aabcbfae8cfd71c authored almost 3 years ago
d1f373d9c68d3bf715f393ae2aabcbfae8cfd71c authored almost 3 years ago
add missing empty subdir directory in fixtures
1c2c668d4d27c97cba003444733853dccf65902d authored almost 3 years ago
1c2c668d4d27c97cba003444733853dccf65902d authored almost 3 years ago
add subdir kwarg to create_input_file and create_include_file in scenario builder
4fcedea66f556a0fb8273ab3f31902b73d51dd97 authored almost 3 years ago
4fcedea66f556a0fb8273ab3f31902b73d51dd97 authored almost 3 years ago
rewrite subdir tests to use create_file helper
3f9039c0b3a33c86584db59a10618269e49611ec authored almost 3 years ago
3f9039c0b3a33c86584db59a10618269e49611ec authored almost 3 years ago
remove unnecessary uses of chomp in CLI tests
a2515ba6162ad98fac39181d2838d7fa5db4e4cf authored almost 3 years ago
a2515ba6162ad98fac39181d2838d7fa5db4e4cf authored almost 3 years ago
rewrite remaining CLI tests to use run_scenario helper
18f389d3ad8ee510e5b28596ca5ba857e182618a authored almost 3 years ago
18f389d3ad8ee510e5b28596ca5ba857e182618a authored almost 3 years ago
update with_tmp_file to allow creating files in a subdir
d2faf0cc5763244c1faed4acaa14b96cf1077f83 authored almost 3 years ago
d2faf0cc5763244c1faed4acaa14b96cf1077f83 authored almost 3 years ago
update scenario builder to allow input_file to be specified directly
67ffac2aa76329e65495b3459e0c14dfe2c968c2 authored almost 3 years ago
67ffac2aa76329e65495b3459e0c14dfe2c968c2 authored almost 3 years ago
rename signal.rb fixture to send_signal.rb
ac8e2d6d7fb1c277beb2f149202d7c3355b96b4e authored almost 3 years ago
ac8e2d6d7fb1c277beb2f149202d7c3355b96b4e authored almost 3 years ago
rewrite test to remove additional fixture
3420daa8b50f9bd6f06c52ebb5c6a4d0698478e9 authored almost 3 years ago
3420daa8b50f9bd6f06c52ebb5c6a4d0698478e9 authored almost 3 years ago
rewrite additional CLI tests using run_scenario helper; add expected_exit_status method to scenario builder
74978afa235b0e09df384609304e46772d7fa533 authored almost 3 years ago
74978afa235b0e09df384609304e46772d7fa533 authored almost 3 years ago
rewrite additional CLI tests using run_scenario helper
5acced8d0e39f2cdc2cc49e75c05258288596d6c authored almost 3 years ago
5acced8d0e39f2cdc2cc49e75c05258288596d6c authored almost 3 years ago
verify no output is written to file if reduced result is empty
67bd96118ab3d99d27b2f0c67e508a6782d3d59a authored almost 3 years ago
67bd96118ab3d99d27b2f0c67e508a6782d3d59a authored almost 3 years ago
remove unneeded assertion in API test
1bcd007c0282240489bcc0ef6deb000c84e614ff authored almost 3 years ago
1bcd007c0282240489bcc0ef6deb000c84e614ff authored almost 3 years ago
use eql to assert value of exit code
0fd855689fac3355c97699385b7b30dd1bcc7f16 authored almost 3 years ago
0fd855689fac3355c97699385b7b30dd1bcc7f16 authored almost 3 years ago
remove static fixture for mixing preprocessor conditionals and include directive
91ae0c093c4aaf1cf54a4fca4a8d6917bf37d6e8 authored almost 3 years ago
91ae0c093c4aaf1cf54a4fca4a8d6917bf37d6e8 authored almost 3 years ago
rewrite first batch of CLI tests to use run_scenario helper
6f8587175ff049b5ce5d42e52ae682216dadb33d authored almost 3 years ago
6f8587175ff049b5ce5d42e52ae682216dadb33d authored almost 3 years ago
add helper to create extension file
440855bd8fb87dfd6dfb23e4629769dab6d48371 authored almost 3 years ago
440855bd8fb87dfd6dfb23e4629769dab6d48371 authored almost 3 years ago
verify output file separately from result in built-in verify block
e9b4fd2b288dbfa409e0f9d1d6812f66503094e9 authored almost 3 years ago
e9b4fd2b288dbfa409e0f9d1d6812f66503094e9 authored almost 3 years ago
add test to verify -r CLI option can be specified multiple times
f9982f932358bd29e55e1755227fcf3a59c93df4 authored almost 3 years ago
f9982f932358bd29e55e1755227fcf3a59c93df4 authored almost 3 years ago
update help text to note that the -a and -r CLI options may be specified multiple times
3b5e8ff4222912df518f9c29dc98c8e639922937 authored almost 3 years ago
3b5e8ff4222912df518f9c29dc98c8e639922937 authored almost 3 years ago
allow scenario builder to access previously set reduce block
2c2b4cfedf24cf41091ac837ad0e7dd404341eb1 authored almost 3 years ago
2c2b4cfedf24cf41091ac837ad0e7dd404341eb1 authored almost 3 years ago
use run scenario helper for remote include tests
f84db1039b1f48cbc7e5baf6121c6250e8f2f504 authored almost 3 years ago
f84db1039b1f48cbc7e5baf6121c6250e8f2f504 authored almost 3 years ago
use more thorough example for API tests
6d94acfd26344cfe8b2fd1ca4456e02c1ed0121b authored almost 3 years ago
6d94acfd26344cfe8b2fd1ca4456e02c1ed0121b authored almost 3 years ago
handle case when options passed to API methods is nil
3e4ffdf8373557fdcdf5db6175cbb79f3e60f9b6 authored almost 3 years ago
3e4ffdf8373557fdcdf5db6175cbb79f3e60f9b6 authored almost 3 years ago
simplify how reduce options are managed in scenario builder
355b548557f4b31c9da6234bcb2abd0729b45b65 authored almost 3 years ago
355b548557f4b31c9da6234bcb2abd0729b45b65 authored almost 3 years ago
replace static fixture with include_file DSL method for include by lines test
12a174713762e48db94aaa5cb92b33c7954aacbf authored almost 3 years ago
12a174713762e48db94aaa5cb92b33c7954aacbf authored almost 3 years ago
use reduce_options where applicable in tests
fa69e69453aba9b8814eb3eb12502e4fd995830e authored almost 3 years ago
fa69e69453aba9b8814eb3eb12502e4fd995830e authored almost 3 years ago
fix lint errors
83a187871c7b18b9dc96622cf9401d932fe38cd3 authored almost 3 years ago
83a187871c7b18b9dc96622cf9401d932fe38cd3 authored almost 3 years ago
run verify if specified, even if input_source is not specified
33f632df370c303176ac1b0eb8b44bd18a1c6a99 authored almost 3 years ago
33f632df370c303176ac1b0eb8b44bd18a1c6a99 authored almost 3 years ago
verify safe mode is set if not specified; pass symbol instead of safe mode constant
6aafafae26adebc8953a7a542ba09e13f7eca422 authored almost 3 years ago
6aafafae26adebc8953a7a542ba09e13f7eca422 authored almost 3 years ago
specify reduce options using reduce_options DSL method in tests
d3c5b5a1af21cf3e6fdbc871e0056472f7c78020 authored almost 3 years ago
d3c5b5a1af21cf3e6fdbc871e0056472f7c78020 authored almost 3 years ago
fix heredoc delimiters and enable corresponding RuboCop rule
9692f00d9700c4835aee043bf91067d032dd899c authored almost 3 years ago
9692f00d9700c4835aee043bf91067d032dd899c authored almost 3 years ago
add test to verify that API methods accept options and pass to document
4f38861e98cb810c55c70dc51f616f568bb2af94 authored almost 3 years ago
4f38861e98cb810c55c70dc51f616f568bb2af94 authored almost 3 years ago
add test to verify CRLF newlines in input file are converted to LF newlines in output file
4a0207aea696f18a92305efe214b73f043ebe14c authored almost 3 years ago
4a0207aea696f18a92305efe214b73f043ebe14c authored almost 3 years ago
remove exception for version.rb in deep cover config
6ba087fff37d745eca79cee8b26179d5ac33431e authored almost 3 years ago
6ba087fff37d745eca79cee8b26179d5ac33431e authored almost 3 years ago
verify reducer does not pass :to option to Asciidoctor.load
580ad26e94e3be9ad4d36e5cdc134da741d67db4 authored almost 3 years ago
580ad26e94e3be9ad4d36e5cdc134da741d67db4 authored almost 3 years ago
verify :to option can be used with reduce method
1d5fc1d2034374c73ee492323c91a855b0f3508f authored almost 3 years ago
1d5fc1d2034374c73ee492323c91a855b0f3508f authored almost 3 years ago
convert remaining example in reducer spec to run_scenario and remove unused fixture
45b828da54d569d763208cfaa6c27e4ce8b589a6 authored almost 3 years ago
45b828da54d569d763208cfaa6c27e4ce8b589a6 authored almost 3 years ago
remove unused fixture files
f52dea2c438c454c3e17ae9ce03f344be04ab6d8 authored almost 3 years ago
f52dea2c438c454c3e17ae9ce03f344be04ab6d8 authored almost 3 years ago
trim a few lines in API spec
cb79bd71a6a9294c1fe62a5ae7bc71c5ab612d7b authored almost 3 years ago
cb79bd71a6a9294c1fe62a5ae7bc71c5ab612d7b authored almost 3 years ago
verify prepare_registry does not create new registry if extension group is registered globally
9fbf095542b842ca74231366f5eb5086659568cb authored almost 3 years ago
9fbf095542b842ca74231366f5eb5086659568cb authored almost 3 years ago
unit test Extensions.prepare_registry when registry is specified
a8659bd33bb0238a88d4374b4f9835b47e6c5f80 authored almost 3 years ago
a8659bd33bb0238a88d4374b4f9835b47e6c5f80 authored almost 3 years ago
consistently write files with universal newline and read files with b flag
4d8ceddb71bf0cd4674248bfcb4e069887c182df authored almost 3 years ago
4d8ceddb71bf0cd4674248bfcb4e069887c182df authored almost 3 years ago
ensure output is written to file with universal newlines (\n) on Windows
43c7aaefcb783081e505297f8008f3d218e7236a authored almost 3 years ago
43c7aaefcb783081e505297f8008f3d218e7236a authored almost 3 years ago
verify that reducer fails when File passed to :to option is closed
01d56583940556f98cbb7d7f7e87d1b16d092b38 authored almost 3 years ago
01d56583940556f98cbb7d7f7e87d1b16d092b38 authored almost 3 years ago
add create_output_file helper to scenario builder and use it in place of with_tmp_file block
4cc15159941293c2cc15b3da2d6a73c5ef3895e0 authored almost 3 years ago
4cc15159941293c2cc15b3da2d6a73c5ef3895e0 authored almost 3 years ago
verify Asciidoctor::Reducer::Extensions.unregister can be called consecutively
54612aeaa8ff3c943d6e501c753834df665bbd07 authored almost 3 years ago
54612aeaa8ff3c943d6e501c753834df665bbd07 authored almost 3 years ago
add input_file_basename helper method to scenario builder
e4f9bd65afff5c152d48caed83e5423dd62498e5 authored almost 3 years ago
e4f9bd65afff5c152d48caed83e5423dd62498e5 authored almost 3 years ago
qualify types in ScenarioBuilder
e85adb7269b6801a9ddb7195895c5aa4cfeaaa04 authored almost 3 years ago
e85adb7269b6801a9ddb7195895c5aa4cfeaaa04 authored almost 3 years ago
add expected_log_messages method to scenario builder DSL; assert no log messages if value is empty or falsy
dd01985b788a0f2741ac356c58028e445986e254 authored almost 3 years ago
dd01985b788a0f2741ac356c58028e445986e254 authored almost 3 years ago
move common require for example groups to .rspec file at root of project (PR #42)
acf236b48d02e987746dfdd177a48107177172bf authored almost 3 years ago
acf236b48d02e987746dfdd177a48107177172bf authored almost 3 years ago
use GITHUB_RUN_ID as random seed for tests in CI
baa7e99843e726fcd54a69420f1f88e18c1f251d authored almost 3 years ago
baa7e99843e726fcd54a69420f1f88e18c1f251d authored almost 3 years ago
show full rspec report in CI when coverage is enabled
d5ac8f1e740a3baef78aa0ced59443188e6429c8 authored almost 3 years ago
d5ac8f1e740a3baef78aa0ced59443188e6429c8 authored almost 3 years ago
run tests in random order in CI to tease out ordering dependencies
61bc6c67255db9e15efd505605f4cc04572c89fa authored almost 3 years ago
61bc6c67255db9e15efd505605f4cc04572c89fa authored almost 3 years ago
fix ordering dependency in test suite
8a29da1949c8e2ea8c2b1a51b8f8d8fd81e56f90 authored almost 3 years ago
8a29da1949c8e2ea8c2b1a51b8f8d8fd81e56f90 authored almost 3 years ago
make test for Asciidoctor::Reducer::Extensions.unregister more robust
785a7b7062fd0b0db0e2232dea736d1c63b1141b authored almost 3 years ago
785a7b7062fd0b0db0e2232dea736d1c63b1141b authored almost 3 years ago
pass example to ScenarioBuilder constructor
ad55358e9304ff23004a6326b105801bbc3d3bc4 authored almost 3 years ago
ad55358e9304ff23004a6326b105801bbc3d3bc4 authored almost 3 years ago
fix lint errors
566811bd17d1ad0783cf619829068e34988ab230 authored almost 3 years ago
566811bd17d1ad0783cf619829068e34988ab230 authored almost 3 years ago
use run_scenario method for warning tests and remove unused fixtures
09243baa77eef306e594d0f505f084b54ad438a4 authored almost 3 years ago
09243baa77eef306e594d0f505f084b54ad438a4 authored almost 3 years ago
don't raise error if Asciidoctor::Reducer::Extensions.unregister is called when extensions are not registered globally
c00d67e5b98b3ac1e98801b304e52bbc872e388c authored almost 3 years ago
c00d67e5b98b3ac1e98801b304e52bbc872e388c authored almost 3 years ago
use after block to unregister extensions in test suite
c59f3b355fb2c1b3bd88e494676420a486236702 authored almost 3 years ago
c59f3b355fb2c1b3bd88e494676420a486236702 authored almost 3 years ago
use before/after inside context to register/unregister extensions globally in tests
14be8391ab27e817d7baa5068444a93305274ae1 authored almost 3 years ago
14be8391ab27e817d7baa5068444a93305274ae1 authored almost 3 years ago
add describe_method block in test suite
985ef674d10309c111789ecf4f5e230f7144f671 authored almost 3 years ago
985ef674d10309c111789ecf4f5e230f7144f671 authored almost 3 years ago
keep spec helpers in alphabetical order
b106bcc02a6f7ff6b43a84c7dd408fa12c61d1e3 authored almost 3 years ago
b106bcc02a6f7ff6b43a84c7dd408fa12c61d1e3 authored almost 3 years ago
minor optimization in code style
125885c605af0abdecd9e8f9092ea5e175468d83 authored almost 3 years ago
125885c605af0abdecd9e8f9092ea5e175468d83 authored almost 3 years ago
don't pass :to option to Asciidoctor.load_file
80337b281af585e321168921002eda5850394ba3 authored almost 3 years ago
80337b281af585e321168921002eda5850394ba3 authored almost 3 years ago
fix syntax error in Ruby 2.5
0d596ec894dd283193aab260b05ba0121f04bcbb authored almost 3 years ago
0d596ec894dd283193aab260b05ba0121f04bcbb authored almost 3 years ago
use run_scenario with log_messages matcher
bff18540079cd1418b73f5f4ab40ead4b1ccb6b0 authored almost 3 years ago
bff18540079cd1418b73f5f4ab40ead4b1ccb6b0 authored almost 3 years ago
add log_messages matcher to wrap block in memory logger and assert log messages on it
f9543aa3cdca556fb70794701771ab6041a71fa7 authored almost 3 years ago
f9543aa3cdca556fb70794701771ab6041a71fa7 authored almost 3 years ago
add have_message matcher to assert log messages on the memory logger
1098584e30ee390c2a892ee24598e8fd1b56921e authored almost 3 years ago
1098584e30ee390c2a892ee24598e8fd1b56921e authored almost 3 years ago