spec_fill 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/spec_fill +4 -0
- data/lib/spec_fill/cli.rb +62 -0
- data/lib/spec_fill/version.rb +3 -0
- data/lib/spec_fill.rb +51 -0
- data/spec_fill.gemspec +39 -0
- data/vendor/bundle/ruby/2.6.0/bin/factory_fill +27 -0
- data/vendor/bundle/ruby/2.6.0/bin/htmldiff +29 -0
- data/vendor/bundle/ruby/2.6.0/bin/ldiff +29 -0
- data/vendor/bundle/ruby/2.6.0/bin/rake +27 -0
- data/vendor/bundle/ruby/2.6.0/bin/rspec +27 -0
- data/vendor/bundle/ruby/2.6.0/bin/thor +27 -0
- data/vendor/bundle/ruby/2.6.0/cache/diff-lcs-1.3.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rake-10.5.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-3.9.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-core-3.9.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-expectations-3.9.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-mocks-3.9.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-support-3.9.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/thor-0.20.3.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/.rspec +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/Code-of-Conduct.md +74 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/Contributing.md +83 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/History.md +220 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/License.md +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/Manifest.txt +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/README.rdoc +84 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/Rakefile +57 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/autotest/discover.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/bin/htmldiff +32 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/bin/ldiff +6 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/docs/COPYING.txt +339 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/docs/artistic.txt +127 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/lib/diff/lcs/array.rb +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/lib/diff/lcs/block.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/lib/diff/lcs/callbacks.rb +322 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/lib/diff/lcs/change.rb +181 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/lib/diff/lcs/htmldiff.rb +149 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/lib/diff/lcs/hunk.rb +276 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/lib/diff/lcs/internals.rb +307 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/lib/diff/lcs/ldiff.rb +167 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/lib/diff/lcs/string.rb +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/lib/diff/lcs.rb +725 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/lib/diff-lcs.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/change_spec.rb +65 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/diff_spec.rb +47 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/fixtures/ds1.csv +50 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/fixtures/ds2.csv +51 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/hunk_spec.rb +72 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/issues_spec.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/lcs_spec.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/ldiff_spec.rb +47 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/patch_spec.rb +422 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/sdiff_spec.rb +214 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/spec_helper.rb +321 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/traverse_balanced_spec.rb +310 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.3/spec/traverse_sequences_spec.rb +139 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/.autotest +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/.rubocop.yml +27 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/.togglerc +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/CONTRIBUTING.rdoc +38 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/History.rdoc +659 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/Manifest.txt +166 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/README.rdoc +139 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/Rakefile +81 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/bin/rake +33 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/command_line_usage.rdoc +158 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/example/Rakefile1 +38 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/example/Rakefile2 +35 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/example/a.c +6 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/example/b.c +6 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/example/main.c +11 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/glossary.rdoc +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/jamis.rb +591 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/proto_rake.rdoc +127 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/rake.1 +141 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/rakefile.rdoc +624 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/rational.rdoc +151 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.4.14.rdoc +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.4.15.rdoc +35 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.5.0.rdoc +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.5.3.rdoc +78 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.5.4.rdoc +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.6.0.rdoc +141 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.0.rdoc +119 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.1.rdoc +59 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.2.rdoc +121 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.3.rdoc +47 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.0.rdoc +114 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.2.rdoc +165 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.3.rdoc +112 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.4.rdoc +147 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.5.rdoc +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.6.rdoc +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.7.rdoc +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.0.rdoc +112 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.1.rdoc +52 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.2.2.rdoc +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.2.rdoc +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.3.rdoc +102 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.4.rdoc +60 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.5.rdoc +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.6.rdoc +64 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.0.rdoc +178 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.1.rdoc +58 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.2.rdoc +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.3.rdoc +191 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/doc/release_notes/rake-10.1.0.rdoc +61 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/alt_system.rb +110 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/application.rb +790 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/backtrace.rb +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/clean.rb +76 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/cloneable.rb +16 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/contrib/.document +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/contrib/compositepublisher.rb +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/contrib/ftptools.rb +137 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/contrib/publisher.rb +81 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/contrib/rubyforgepublisher.rb +18 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/contrib/sshpublisher.rb +61 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/contrib/sys.rb +4 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/cpu_counter.rb +125 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/default_loader.rb +14 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/dsl_definition.rb +201 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/early_time.rb +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/core.rb +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/module.rb +2 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/pathname.rb +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/string.rb +175 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ext/time.rb +18 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/file_creation_task.rb +24 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/file_list.rb +428 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/file_task.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/file_utils.rb +128 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/file_utils_ext.rb +144 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/gempackagetask.rb +4 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/invocation_chain.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/invocation_exception_mixin.rb +16 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/late_time.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/linked_list.rb +103 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/loaders/makefile.rb +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/multi_task.rb +13 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/name_space.rb +38 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/packagetask.rb +199 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/pathmap.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/phony.rb +15 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/private_reader.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/promise.rb +99 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/rake_module.rb +38 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/rake_test_loader.rb +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/rdoctask.rb +4 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/ruby182_test_unit_fix.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/rule_recursion_overflow_error.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/runtest.rb +27 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/scope.rb +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/task.rb +383 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/task_argument_error.rb +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/task_arguments.rb +98 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/task_manager.rb +307 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/tasklib.rb +24 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/testtask.rb +213 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/thread_history_display.rb +48 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/thread_pool.rb +164 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/trace_output.rb +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/version.rb +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake/win32.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/lib/rake.rb +79 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/rakelib/publish.rake +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/rakelib/test_times.rake +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/file_creation.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/helper.rb +129 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/support/rakefile_definitions.rb +478 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/support/ruby_runner.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_private_reader.rb +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_application.rb +643 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_application_options.rb +468 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_backtrace.rb +119 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_clean.rb +61 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_cpu_counter.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_definitions.rb +84 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_directory_task.rb +76 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_dsl.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_early_time.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_extension.rb +59 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_file_creation_task.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_file_list.rb +670 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_file_list_path_map.rb +8 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_file_task.rb +197 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_file_utils.rb +314 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_ftp_file.rb +74 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_functional.rb +482 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_invocation_chain.rb +64 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_late_time.rb +18 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_linked_list.rb +84 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_makefile_loader.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_multi_task.rb +64 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_name_space.rb +57 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_package_task.rb +79 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_path_map.rb +168 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_path_map_explode.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_path_map_partial.rb +18 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_pathname_extensions.rb +15 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_pseudo_status.rb +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_rake_test_loader.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_reduce_compat.rb +26 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_require.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_rules.rb +388 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_scope.rb +44 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_task.rb +393 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_task_argument_parsing.rb +119 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_task_arguments.rb +127 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_task_lib.rb +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_task_manager.rb +178 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_task_manager_argument_resolution.rb +19 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_task_with_arguments.rb +172 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_test_task.rb +146 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_thread_pool.rb +145 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_top_level_functions.rb +71 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_rake_win32.rb +72 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_thread_history_display.rb +101 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-10.5.0/test/test_trace_output.rb +52 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-3.9.0/LICENSE.md +27 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-3.9.0/README.md +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-3.9.0/lib/rspec/version.rb +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-3.9.0/lib/rspec.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/.document +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/.yardopts +8 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/Changelog.md +2265 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/LICENSE.md +26 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/README.md +384 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/exe/rspec +4 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/autorun.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/backtrace_formatter.rb +65 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/bisect/coordinator.rb +62 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/bisect/example_minimizer.rb +173 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/bisect/fork_runner.rb +134 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/bisect/server.rb +61 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/bisect/shell_command.rb +126 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/bisect/shell_runner.rb +73 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/bisect/utilities.rb +58 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/configuration.rb +2336 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/configuration_options.rb +233 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/did_you_mean.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/drb.rb +113 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/dsl.rb +98 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/example.rb +656 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/example_group.rb +889 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/example_status_persister.rb +235 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/filter_manager.rb +231 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/flat_map.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/base_bisect_formatter.rb +45 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/base_formatter.rb +70 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/base_text_formatter.rb +75 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/bisect_drb_formatter.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/bisect_progress_formatter.rb +157 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/console_codes.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/deprecation_formatter.rb +223 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/documentation_formatter.rb +102 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/exception_presenter.rb +508 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/failure_list_formatter.rb +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/fallback_message_formatter.rb +28 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/helpers.rb +110 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/html_formatter.rb +153 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/html_printer.rb +414 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/html_snippet_extractor.rb +120 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/json_formatter.rb +102 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/profile_formatter.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/progress_formatter.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/protocol.rb +182 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/snippet_extractor.rb +134 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/syntax_highlighter.rb +91 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters.rb +272 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/hooks.rb +632 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/invocations.rb +87 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/memoized_helpers.rb +554 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/metadata.rb +498 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/metadata_filter.rb +255 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/minitest_assertions_adapter.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/mocking_adapters/flexmock.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/mocking_adapters/mocha.rb +57 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/mocking_adapters/null.rb +14 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/mocking_adapters/rr.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/mocking_adapters/rspec.rb +32 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/notifications.rb +521 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/option_parser.rb +317 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/ordering.rb +158 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/output_wrapper.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/pending.rb +165 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/profiler.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/project_initializer/.rspec +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/project_initializer/spec/spec_helper.rb +100 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/project_initializer.rb +48 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/rake_task.rb +188 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/reporter.rb +265 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/ruby_project.rb +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/runner.rb +204 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/sandbox.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/set.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/shared_context.rb +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/shared_example_group.rb +269 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/shell_escape.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/test_unit_assertions_adapter.rb +30 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/version.rb +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/warnings.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/world.rb +275 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core.rb +186 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/.document +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/.yardopts +6 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/Changelog.md +1170 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/LICENSE.md +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/README.md +320 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/block_snippet_extractor.rb +253 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/configuration.rb +215 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/expectation_target.rb +127 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/fail_with.rb +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/failure_aggregator.rb +194 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/handler.rb +170 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/minitest_integration.rb +58 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/syntax.rb +132 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations/version.rb +8 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/expectations.rb +82 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/aliased_matcher.rb +116 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/all.rb +86 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/base_matcher.rb +193 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/be.rb +288 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/be_between.rb +77 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/be_instance_of.rb +26 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/be_kind_of.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/be_within.rb +72 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/change.rb +428 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/compound.rb +276 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/contain_exactly.rb +302 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/cover.rb +24 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/eq.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/eql.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/equal.rb +81 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/exist.rb +90 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/has.rb +103 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/have_attributes.rb +114 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/include.rb +149 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/match.rb +106 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/operators.rb +128 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/output.rb +200 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/raise_error.rb +230 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/respond_to.rb +174 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/satisfy.rb +60 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/start_or_end_with.rb +94 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/throw_symbol.rb +132 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in/yield.rb +432 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/built_in.rb +52 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/composable.rb +171 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/dsl.rb +534 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/english_phrasing.rb +58 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +82 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/fail_matchers.rb +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/generated_descriptions.rb +41 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/matcher_delegator.rb +35 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers/matcher_protocol.rb +99 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.9.0/lib/rspec/matchers.rb +1038 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/.document +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/.yardopts +6 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/Changelog.md +1125 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/LICENSE.md +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/README.md +463 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/chain.rb +111 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/error_generator.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/expect_chain_chain.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/expectation_chain.rb +50 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/message_chains.rb +83 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/proxy.rb +116 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/recorder.rb +289 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/stub_chain.rb +51 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance/stub_chain_chain.rb +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/any_instance.rb +11 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/argument_list_matcher.rb +100 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/argument_matchers.rb +322 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/configuration.rb +212 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/error_generator.rb +369 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/example_methods.rb +434 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/instance_method_stasher.rb +146 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/marshal_extension.rb +41 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/matchers/expectation_customization.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/matchers/have_received.rb +134 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/matchers/receive.rb +132 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/matchers/receive_message_chain.rb +82 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/matchers/receive_messages.rb +77 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/message_chain.rb +87 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/message_expectation.rb +751 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/method_double.rb +287 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/method_reference.rb +202 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/minitest_integration.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/mutate_const.rb +339 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/object_reference.rb +149 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/order_group.rb +81 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/proxy.rb +503 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/space.rb +238 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/standalone.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/syntax.rb +325 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/targets.rb +124 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/test_double.rb +171 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/verifying_double.rb +129 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/verifying_message_expectation.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/verifying_proxy.rb +220 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks/version.rb +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.9.0/lib/rspec/mocks.rb +130 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/Changelog.md +275 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/LICENSE.md +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/README.md +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/caller_filter.rb +83 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/comparable_version.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/differ.rb +215 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/directory_maker.rb +63 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/encoded_string.rb +165 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/fuzzy_matcher.rb +48 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/hunk_generator.rb +47 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/matcher_definition.rb +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/method_signature_verifier.rb +438 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/mutex.rb +73 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/object_formatter.rb +275 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/recursive_const_methods.rb +76 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/reentrant_mutex.rb +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/ruby_features.rb +176 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/source/location.rb +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/source/node.rb +110 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/source/token.rb +87 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/source.rb +75 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/deprecation_helpers.rb +64 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/formatting_support.rb +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/in_sub_process.rb +69 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/library_wide_checks.rb +150 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/shell_out.rb +89 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/stderr_splitter.rb +63 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/string_matcher.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/with_isolated_directory.rb +13 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/spec/with_isolated_stderr.rb +13 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/spec.rb +81 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/version.rb +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support/warnings.rb +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.9.0/lib/rspec/support.rb +149 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/.document +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/CHANGELOG.md +204 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/CONTRIBUTING.md +15 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/LICENSE.md +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/README.md +51 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/bin/thor +6 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/actions/create_file.rb +104 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/actions/create_link.rb +60 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/actions/directory.rb +118 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/actions/empty_directory.rb +143 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/actions/file_manipulation.rb +373 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/actions/inject_into_file.rb +109 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/actions.rb +331 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/base.rb +678 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/command.rb +135 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/core_ext/hash_with_indifferent_access.rb +97 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/core_ext/io_binary_read.rb +12 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/core_ext/ordered_hash.rb +129 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/error.rb +114 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/group.rb +281 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb +177 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/line_editor/basic.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/line_editor/readline.rb +88 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/line_editor.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/parser/argument.rb +70 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/parser/arguments.rb +175 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/parser/option.rb +146 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/parser/options.rb +226 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/parser.rb +4 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/rake_compat.rb +71 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/runner.rb +324 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/shell/basic.rb +482 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/shell/color.rb +149 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/shell/html.rb +126 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/shell.rb +81 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/util.rb +268 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor/version.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/lib/thor.rb +509 -0
- data/vendor/bundle/ruby/2.6.0/gems/thor-0.20.3/thor.gemspec +21 -0
- data/vendor/bundle/ruby/2.6.0/specifications/diff-lcs-1.3.gemspec +61 -0
- data/vendor/bundle/ruby/2.6.0/specifications/rake-10.5.0.gemspec +43 -0
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-3.9.0.gemspec +43 -0
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-core-3.9.0.gemspec +63 -0
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-expectations-3.9.0.gemspec +51 -0
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-mocks-3.9.0.gemspec +51 -0
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-support-3.9.0.gemspec +39 -0
- data/vendor/bundle/ruby/2.6.0/specifications/thor-0.20.3.gemspec +35 -0
- metadata +600 -0
@@ -0,0 +1,678 @@
|
|
1
|
+
require "thor/command"
|
2
|
+
require "thor/core_ext/hash_with_indifferent_access"
|
3
|
+
require "thor/core_ext/ordered_hash"
|
4
|
+
require "thor/error"
|
5
|
+
require "thor/invocation"
|
6
|
+
require "thor/parser"
|
7
|
+
require "thor/shell"
|
8
|
+
require "thor/line_editor"
|
9
|
+
require "thor/util"
|
10
|
+
|
11
|
+
class Thor
|
12
|
+
autoload :Actions, "thor/actions"
|
13
|
+
autoload :RakeCompat, "thor/rake_compat"
|
14
|
+
autoload :Group, "thor/group"
|
15
|
+
|
16
|
+
# Shortcuts for help.
|
17
|
+
HELP_MAPPINGS = %w(-h -? --help -D)
|
18
|
+
|
19
|
+
# Thor methods that should not be overwritten by the user.
|
20
|
+
THOR_RESERVED_WORDS = %w(invoke shell options behavior root destination_root relative_root
|
21
|
+
action add_file create_file in_root inside run run_ruby_script)
|
22
|
+
|
23
|
+
TEMPLATE_EXTNAME = ".tt"
|
24
|
+
|
25
|
+
module Base
|
26
|
+
attr_accessor :options, :parent_options, :args
|
27
|
+
|
28
|
+
# It receives arguments in an Array and two hashes, one for options and
|
29
|
+
# other for configuration.
|
30
|
+
#
|
31
|
+
# Notice that it does not check if all required arguments were supplied.
|
32
|
+
# It should be done by the parser.
|
33
|
+
#
|
34
|
+
# ==== Parameters
|
35
|
+
# args<Array[Object]>:: An array of objects. The objects are applied to their
|
36
|
+
# respective accessors declared with <tt>argument</tt>.
|
37
|
+
#
|
38
|
+
# options<Hash>:: An options hash that will be available as self.options.
|
39
|
+
# The hash given is converted to a hash with indifferent
|
40
|
+
# access, magic predicates (options.skip?) and then frozen.
|
41
|
+
#
|
42
|
+
# config<Hash>:: Configuration for this Thor class.
|
43
|
+
#
|
44
|
+
def initialize(args = [], local_options = {}, config = {})
|
45
|
+
parse_options = self.class.class_options
|
46
|
+
|
47
|
+
# The start method splits inbound arguments at the first argument
|
48
|
+
# that looks like an option (starts with - or --). It then calls
|
49
|
+
# new, passing in the two halves of the arguments Array as the
|
50
|
+
# first two parameters.
|
51
|
+
|
52
|
+
command_options = config.delete(:command_options) # hook for start
|
53
|
+
parse_options = parse_options.merge(command_options) if command_options
|
54
|
+
if local_options.is_a?(Array)
|
55
|
+
array_options = local_options
|
56
|
+
hash_options = {}
|
57
|
+
else
|
58
|
+
# Handle the case where the class was explicitly instantiated
|
59
|
+
# with pre-parsed options.
|
60
|
+
array_options = []
|
61
|
+
hash_options = local_options
|
62
|
+
end
|
63
|
+
|
64
|
+
# Let Thor::Options parse the options first, so it can remove
|
65
|
+
# declared options from the array. This will leave us with
|
66
|
+
# a list of arguments that weren't declared.
|
67
|
+
stop_on_unknown = self.class.stop_on_unknown_option? config[:current_command]
|
68
|
+
disable_required_check = self.class.disable_required_check? config[:current_command]
|
69
|
+
opts = Thor::Options.new(parse_options, hash_options, stop_on_unknown, disable_required_check)
|
70
|
+
self.options = opts.parse(array_options)
|
71
|
+
self.options = config[:class_options].merge(options) if config[:class_options]
|
72
|
+
|
73
|
+
# If unknown options are disallowed, make sure that none of the
|
74
|
+
# remaining arguments looks like an option.
|
75
|
+
opts.check_unknown! if self.class.check_unknown_options?(config)
|
76
|
+
|
77
|
+
# Add the remaining arguments from the options parser to the
|
78
|
+
# arguments passed in to initialize. Then remove any positional
|
79
|
+
# arguments declared using #argument (this is primarily used
|
80
|
+
# by Thor::Group). Tis will leave us with the remaining
|
81
|
+
# positional arguments.
|
82
|
+
to_parse = args
|
83
|
+
to_parse += opts.remaining unless self.class.strict_args_position?(config)
|
84
|
+
|
85
|
+
thor_args = Thor::Arguments.new(self.class.arguments)
|
86
|
+
thor_args.parse(to_parse).each { |k, v| __send__("#{k}=", v) }
|
87
|
+
@args = thor_args.remaining
|
88
|
+
end
|
89
|
+
|
90
|
+
class << self
|
91
|
+
def included(base) #:nodoc:
|
92
|
+
base.extend ClassMethods
|
93
|
+
base.send :include, Invocation
|
94
|
+
base.send :include, Shell
|
95
|
+
end
|
96
|
+
|
97
|
+
# Returns the classes that inherits from Thor or Thor::Group.
|
98
|
+
#
|
99
|
+
# ==== Returns
|
100
|
+
# Array[Class]
|
101
|
+
#
|
102
|
+
def subclasses
|
103
|
+
@subclasses ||= []
|
104
|
+
end
|
105
|
+
|
106
|
+
# Returns the files where the subclasses are kept.
|
107
|
+
#
|
108
|
+
# ==== Returns
|
109
|
+
# Hash[path<String> => Class]
|
110
|
+
#
|
111
|
+
def subclass_files
|
112
|
+
@subclass_files ||= Hash.new { |h, k| h[k] = [] }
|
113
|
+
end
|
114
|
+
|
115
|
+
# Whenever a class inherits from Thor or Thor::Group, we should track the
|
116
|
+
# class and the file on Thor::Base. This is the method responsible for it.
|
117
|
+
#
|
118
|
+
def register_klass_file(klass) #:nodoc:
|
119
|
+
file = caller[1].match(/(.*):\d+/)[1]
|
120
|
+
Thor::Base.subclasses << klass unless Thor::Base.subclasses.include?(klass)
|
121
|
+
|
122
|
+
file_subclasses = Thor::Base.subclass_files[File.expand_path(file)]
|
123
|
+
file_subclasses << klass unless file_subclasses.include?(klass)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
module ClassMethods
|
128
|
+
def attr_reader(*) #:nodoc:
|
129
|
+
no_commands { super }
|
130
|
+
end
|
131
|
+
|
132
|
+
def attr_writer(*) #:nodoc:
|
133
|
+
no_commands { super }
|
134
|
+
end
|
135
|
+
|
136
|
+
def attr_accessor(*) #:nodoc:
|
137
|
+
no_commands { super }
|
138
|
+
end
|
139
|
+
|
140
|
+
# If you want to raise an error for unknown options, call check_unknown_options!
|
141
|
+
# This is disabled by default to allow dynamic invocations.
|
142
|
+
def check_unknown_options!
|
143
|
+
@check_unknown_options = true
|
144
|
+
end
|
145
|
+
|
146
|
+
def check_unknown_options #:nodoc:
|
147
|
+
@check_unknown_options ||= from_superclass(:check_unknown_options, false)
|
148
|
+
end
|
149
|
+
|
150
|
+
def check_unknown_options?(config) #:nodoc:
|
151
|
+
!!check_unknown_options
|
152
|
+
end
|
153
|
+
|
154
|
+
# If you want to raise an error when the default value of an option does not match
|
155
|
+
# the type call check_default_type!
|
156
|
+
# This is disabled by default for compatibility.
|
157
|
+
def check_default_type!
|
158
|
+
@check_default_type = true
|
159
|
+
end
|
160
|
+
|
161
|
+
def check_default_type #:nodoc:
|
162
|
+
@check_default_type ||= from_superclass(:check_default_type, false)
|
163
|
+
end
|
164
|
+
|
165
|
+
def check_default_type? #:nodoc:
|
166
|
+
!!check_default_type
|
167
|
+
end
|
168
|
+
|
169
|
+
# If true, option parsing is suspended as soon as an unknown option or a
|
170
|
+
# regular argument is encountered. All remaining arguments are passed to
|
171
|
+
# the command as regular arguments.
|
172
|
+
def stop_on_unknown_option?(command_name) #:nodoc:
|
173
|
+
false
|
174
|
+
end
|
175
|
+
|
176
|
+
# If true, option set will not suspend the execution of the command when
|
177
|
+
# a required option is not provided.
|
178
|
+
def disable_required_check?(command_name) #:nodoc:
|
179
|
+
false
|
180
|
+
end
|
181
|
+
|
182
|
+
# If you want only strict string args (useful when cascading thor classes),
|
183
|
+
# call strict_args_position! This is disabled by default to allow dynamic
|
184
|
+
# invocations.
|
185
|
+
def strict_args_position!
|
186
|
+
@strict_args_position = true
|
187
|
+
end
|
188
|
+
|
189
|
+
def strict_args_position #:nodoc:
|
190
|
+
@strict_args_position ||= from_superclass(:strict_args_position, false)
|
191
|
+
end
|
192
|
+
|
193
|
+
def strict_args_position?(config) #:nodoc:
|
194
|
+
!!strict_args_position
|
195
|
+
end
|
196
|
+
|
197
|
+
# Adds an argument to the class and creates an attr_accessor for it.
|
198
|
+
#
|
199
|
+
# Arguments are different from options in several aspects. The first one
|
200
|
+
# is how they are parsed from the command line, arguments are retrieved
|
201
|
+
# from position:
|
202
|
+
#
|
203
|
+
# thor command NAME
|
204
|
+
#
|
205
|
+
# Instead of:
|
206
|
+
#
|
207
|
+
# thor command --name=NAME
|
208
|
+
#
|
209
|
+
# Besides, arguments are used inside your code as an accessor (self.argument),
|
210
|
+
# while options are all kept in a hash (self.options).
|
211
|
+
#
|
212
|
+
# Finally, arguments cannot have type :default or :boolean but can be
|
213
|
+
# optional (supplying :optional => :true or :required => false), although
|
214
|
+
# you cannot have a required argument after a non-required argument. If you
|
215
|
+
# try it, an error is raised.
|
216
|
+
#
|
217
|
+
# ==== Parameters
|
218
|
+
# name<Symbol>:: The name of the argument.
|
219
|
+
# options<Hash>:: Described below.
|
220
|
+
#
|
221
|
+
# ==== Options
|
222
|
+
# :desc - Description for the argument.
|
223
|
+
# :required - If the argument is required or not.
|
224
|
+
# :optional - If the argument is optional or not.
|
225
|
+
# :type - The type of the argument, can be :string, :hash, :array, :numeric.
|
226
|
+
# :default - Default value for this argument. It cannot be required and have default values.
|
227
|
+
# :banner - String to show on usage notes.
|
228
|
+
#
|
229
|
+
# ==== Errors
|
230
|
+
# ArgumentError:: Raised if you supply a required argument after a non required one.
|
231
|
+
#
|
232
|
+
def argument(name, options = {})
|
233
|
+
is_thor_reserved_word?(name, :argument)
|
234
|
+
no_commands { attr_accessor name }
|
235
|
+
|
236
|
+
required = if options.key?(:optional)
|
237
|
+
!options[:optional]
|
238
|
+
elsif options.key?(:required)
|
239
|
+
options[:required]
|
240
|
+
else
|
241
|
+
options[:default].nil?
|
242
|
+
end
|
243
|
+
|
244
|
+
remove_argument name
|
245
|
+
|
246
|
+
if required
|
247
|
+
arguments.each do |argument|
|
248
|
+
next if argument.required?
|
249
|
+
raise ArgumentError, "You cannot have #{name.to_s.inspect} as required argument after " \
|
250
|
+
"the non-required argument #{argument.human_name.inspect}."
|
251
|
+
end
|
252
|
+
end
|
253
|
+
|
254
|
+
options[:required] = required
|
255
|
+
|
256
|
+
arguments << Thor::Argument.new(name, options)
|
257
|
+
end
|
258
|
+
|
259
|
+
# Returns this class arguments, looking up in the ancestors chain.
|
260
|
+
#
|
261
|
+
# ==== Returns
|
262
|
+
# Array[Thor::Argument]
|
263
|
+
#
|
264
|
+
def arguments
|
265
|
+
@arguments ||= from_superclass(:arguments, [])
|
266
|
+
end
|
267
|
+
|
268
|
+
# Adds a bunch of options to the set of class options.
|
269
|
+
#
|
270
|
+
# class_options :foo => false, :bar => :required, :baz => :string
|
271
|
+
#
|
272
|
+
# If you prefer more detailed declaration, check class_option.
|
273
|
+
#
|
274
|
+
# ==== Parameters
|
275
|
+
# Hash[Symbol => Object]
|
276
|
+
#
|
277
|
+
def class_options(options = nil)
|
278
|
+
@class_options ||= from_superclass(:class_options, {})
|
279
|
+
build_options(options, @class_options) if options
|
280
|
+
@class_options
|
281
|
+
end
|
282
|
+
|
283
|
+
# Adds an option to the set of class options
|
284
|
+
#
|
285
|
+
# ==== Parameters
|
286
|
+
# name<Symbol>:: The name of the argument.
|
287
|
+
# options<Hash>:: Described below.
|
288
|
+
#
|
289
|
+
# ==== Options
|
290
|
+
# :desc:: -- Description for the argument.
|
291
|
+
# :required:: -- If the argument is required or not.
|
292
|
+
# :default:: -- Default value for this argument.
|
293
|
+
# :group:: -- The group for this options. Use by class options to output options in different levels.
|
294
|
+
# :aliases:: -- Aliases for this option. <b>Note:</b> Thor follows a convention of one-dash-one-letter options. Thus aliases like "-something" wouldn't be parsed; use either "\--something" or "-s" instead.
|
295
|
+
# :type:: -- The type of the argument, can be :string, :hash, :array, :numeric or :boolean.
|
296
|
+
# :banner:: -- String to show on usage notes.
|
297
|
+
# :hide:: -- If you want to hide this option from the help.
|
298
|
+
#
|
299
|
+
def class_option(name, options = {})
|
300
|
+
build_option(name, options, class_options)
|
301
|
+
end
|
302
|
+
|
303
|
+
# Removes a previous defined argument. If :undefine is given, undefine
|
304
|
+
# accessors as well.
|
305
|
+
#
|
306
|
+
# ==== Parameters
|
307
|
+
# names<Array>:: Arguments to be removed
|
308
|
+
#
|
309
|
+
# ==== Examples
|
310
|
+
#
|
311
|
+
# remove_argument :foo
|
312
|
+
# remove_argument :foo, :bar, :baz, :undefine => true
|
313
|
+
#
|
314
|
+
def remove_argument(*names)
|
315
|
+
options = names.last.is_a?(Hash) ? names.pop : {}
|
316
|
+
|
317
|
+
names.each do |name|
|
318
|
+
arguments.delete_if { |a| a.name == name.to_s }
|
319
|
+
undef_method name, "#{name}=" if options[:undefine]
|
320
|
+
end
|
321
|
+
end
|
322
|
+
|
323
|
+
# Removes a previous defined class option.
|
324
|
+
#
|
325
|
+
# ==== Parameters
|
326
|
+
# names<Array>:: Class options to be removed
|
327
|
+
#
|
328
|
+
# ==== Examples
|
329
|
+
#
|
330
|
+
# remove_class_option :foo
|
331
|
+
# remove_class_option :foo, :bar, :baz
|
332
|
+
#
|
333
|
+
def remove_class_option(*names)
|
334
|
+
names.each do |name|
|
335
|
+
class_options.delete(name)
|
336
|
+
end
|
337
|
+
end
|
338
|
+
|
339
|
+
# Defines the group. This is used when thor list is invoked so you can specify
|
340
|
+
# that only commands from a pre-defined group will be shown. Defaults to standard.
|
341
|
+
#
|
342
|
+
# ==== Parameters
|
343
|
+
# name<String|Symbol>
|
344
|
+
#
|
345
|
+
def group(name = nil)
|
346
|
+
if name
|
347
|
+
@group = name.to_s
|
348
|
+
else
|
349
|
+
@group ||= from_superclass(:group, "standard")
|
350
|
+
end
|
351
|
+
end
|
352
|
+
|
353
|
+
# Returns the commands for this Thor class.
|
354
|
+
#
|
355
|
+
# ==== Returns
|
356
|
+
# OrderedHash:: An ordered hash with commands names as keys and Thor::Command
|
357
|
+
# objects as values.
|
358
|
+
#
|
359
|
+
def commands
|
360
|
+
@commands ||= Thor::CoreExt::OrderedHash.new
|
361
|
+
end
|
362
|
+
alias_method :tasks, :commands
|
363
|
+
|
364
|
+
# Returns the commands for this Thor class and all subclasses.
|
365
|
+
#
|
366
|
+
# ==== Returns
|
367
|
+
# OrderedHash:: An ordered hash with commands names as keys and Thor::Command
|
368
|
+
# objects as values.
|
369
|
+
#
|
370
|
+
def all_commands
|
371
|
+
@all_commands ||= from_superclass(:all_commands, Thor::CoreExt::OrderedHash.new)
|
372
|
+
@all_commands.merge!(commands)
|
373
|
+
end
|
374
|
+
alias_method :all_tasks, :all_commands
|
375
|
+
|
376
|
+
# Removes a given command from this Thor class. This is usually done if you
|
377
|
+
# are inheriting from another class and don't want it to be available
|
378
|
+
# anymore.
|
379
|
+
#
|
380
|
+
# By default it only remove the mapping to the command. But you can supply
|
381
|
+
# :undefine => true to undefine the method from the class as well.
|
382
|
+
#
|
383
|
+
# ==== Parameters
|
384
|
+
# name<Symbol|String>:: The name of the command to be removed
|
385
|
+
# options<Hash>:: You can give :undefine => true if you want commands the method
|
386
|
+
# to be undefined from the class as well.
|
387
|
+
#
|
388
|
+
def remove_command(*names)
|
389
|
+
options = names.last.is_a?(Hash) ? names.pop : {}
|
390
|
+
|
391
|
+
names.each do |name|
|
392
|
+
commands.delete(name.to_s)
|
393
|
+
all_commands.delete(name.to_s)
|
394
|
+
undef_method name if options[:undefine]
|
395
|
+
end
|
396
|
+
end
|
397
|
+
alias_method :remove_task, :remove_command
|
398
|
+
|
399
|
+
# All methods defined inside the given block are not added as commands.
|
400
|
+
#
|
401
|
+
# So you can do:
|
402
|
+
#
|
403
|
+
# class MyScript < Thor
|
404
|
+
# no_commands do
|
405
|
+
# def this_is_not_a_command
|
406
|
+
# end
|
407
|
+
# end
|
408
|
+
# end
|
409
|
+
#
|
410
|
+
# You can also add the method and remove it from the command list:
|
411
|
+
#
|
412
|
+
# class MyScript < Thor
|
413
|
+
# def this_is_not_a_command
|
414
|
+
# end
|
415
|
+
# remove_command :this_is_not_a_command
|
416
|
+
# end
|
417
|
+
#
|
418
|
+
def no_commands
|
419
|
+
@no_commands = true
|
420
|
+
yield
|
421
|
+
ensure
|
422
|
+
@no_commands = false
|
423
|
+
end
|
424
|
+
alias_method :no_tasks, :no_commands
|
425
|
+
|
426
|
+
# Sets the namespace for the Thor or Thor::Group class. By default the
|
427
|
+
# namespace is retrieved from the class name. If your Thor class is named
|
428
|
+
# Scripts::MyScript, the help method, for example, will be called as:
|
429
|
+
#
|
430
|
+
# thor scripts:my_script -h
|
431
|
+
#
|
432
|
+
# If you change the namespace:
|
433
|
+
#
|
434
|
+
# namespace :my_scripts
|
435
|
+
#
|
436
|
+
# You change how your commands are invoked:
|
437
|
+
#
|
438
|
+
# thor my_scripts -h
|
439
|
+
#
|
440
|
+
# Finally, if you change your namespace to default:
|
441
|
+
#
|
442
|
+
# namespace :default
|
443
|
+
#
|
444
|
+
# Your commands can be invoked with a shortcut. Instead of:
|
445
|
+
#
|
446
|
+
# thor :my_command
|
447
|
+
#
|
448
|
+
def namespace(name = nil)
|
449
|
+
if name
|
450
|
+
@namespace = name.to_s
|
451
|
+
else
|
452
|
+
@namespace ||= Thor::Util.namespace_from_thor_class(self)
|
453
|
+
end
|
454
|
+
end
|
455
|
+
|
456
|
+
# Parses the command and options from the given args, instantiate the class
|
457
|
+
# and invoke the command. This method is used when the arguments must be parsed
|
458
|
+
# from an array. If you are inside Ruby and want to use a Thor class, you
|
459
|
+
# can simply initialize it:
|
460
|
+
#
|
461
|
+
# script = MyScript.new(args, options, config)
|
462
|
+
# script.invoke(:command, first_arg, second_arg, third_arg)
|
463
|
+
#
|
464
|
+
def start(given_args = ARGV, config = {})
|
465
|
+
config[:shell] ||= Thor::Base.shell.new
|
466
|
+
dispatch(nil, given_args.dup, nil, config)
|
467
|
+
rescue Thor::Error => e
|
468
|
+
config[:debug] || ENV["THOR_DEBUG"] == "1" ? (raise e) : config[:shell].error(e.message)
|
469
|
+
exit(false) if exit_on_failure?
|
470
|
+
rescue Errno::EPIPE
|
471
|
+
# This happens if a thor command is piped to something like `head`,
|
472
|
+
# which closes the pipe when it's done reading. This will also
|
473
|
+
# mean that if the pipe is closed, further unnecessary
|
474
|
+
# computation will not occur.
|
475
|
+
exit(true)
|
476
|
+
end
|
477
|
+
|
478
|
+
# Allows to use private methods from parent in child classes as commands.
|
479
|
+
#
|
480
|
+
# ==== Parameters
|
481
|
+
# names<Array>:: Method names to be used as commands
|
482
|
+
#
|
483
|
+
# ==== Examples
|
484
|
+
#
|
485
|
+
# public_command :foo
|
486
|
+
# public_command :foo, :bar, :baz
|
487
|
+
#
|
488
|
+
def public_command(*names)
|
489
|
+
names.each do |name|
|
490
|
+
class_eval "def #{name}(*); super end"
|
491
|
+
end
|
492
|
+
end
|
493
|
+
alias_method :public_task, :public_command
|
494
|
+
|
495
|
+
def handle_no_command_error(command, has_namespace = $thor_runner) #:nodoc:
|
496
|
+
raise UndefinedCommandError.new(command, all_commands.keys, (namespace if has_namespace))
|
497
|
+
end
|
498
|
+
alias_method :handle_no_task_error, :handle_no_command_error
|
499
|
+
|
500
|
+
def handle_argument_error(command, error, args, arity) #:nodoc:
|
501
|
+
name = [command.ancestor_name, command.name].compact.join(" ")
|
502
|
+
msg = "ERROR: \"#{basename} #{name}\" was called with ".dup
|
503
|
+
msg << "no arguments" if args.empty?
|
504
|
+
msg << "arguments " << args.inspect unless args.empty?
|
505
|
+
msg << "\nUsage: #{banner(command).inspect}"
|
506
|
+
raise InvocationError, msg
|
507
|
+
end
|
508
|
+
|
509
|
+
protected
|
510
|
+
|
511
|
+
# Prints the class options per group. If an option does not belong to
|
512
|
+
# any group, it's printed as Class option.
|
513
|
+
#
|
514
|
+
def class_options_help(shell, groups = {}) #:nodoc:
|
515
|
+
# Group options by group
|
516
|
+
class_options.each do |_, value|
|
517
|
+
groups[value.group] ||= []
|
518
|
+
groups[value.group] << value
|
519
|
+
end
|
520
|
+
|
521
|
+
# Deal with default group
|
522
|
+
global_options = groups.delete(nil) || []
|
523
|
+
print_options(shell, global_options)
|
524
|
+
|
525
|
+
# Print all others
|
526
|
+
groups.each do |group_name, options|
|
527
|
+
print_options(shell, options, group_name)
|
528
|
+
end
|
529
|
+
end
|
530
|
+
|
531
|
+
# Receives a set of options and print them.
|
532
|
+
def print_options(shell, options, group_name = nil)
|
533
|
+
return if options.empty?
|
534
|
+
|
535
|
+
list = []
|
536
|
+
padding = options.map { |o| o.aliases.size }.max.to_i * 4
|
537
|
+
|
538
|
+
options.each do |option|
|
539
|
+
next if option.hide
|
540
|
+
item = [option.usage(padding)]
|
541
|
+
item.push(option.description ? "# #{option.description}" : "")
|
542
|
+
|
543
|
+
list << item
|
544
|
+
list << ["", "# Default: #{option.default}"] if option.show_default?
|
545
|
+
list << ["", "# Possible values: #{option.enum.join(', ')}"] if option.enum
|
546
|
+
end
|
547
|
+
|
548
|
+
shell.say(group_name ? "#{group_name} options:" : "Options:")
|
549
|
+
shell.print_table(list, :indent => 2)
|
550
|
+
shell.say ""
|
551
|
+
end
|
552
|
+
|
553
|
+
# Raises an error if the word given is a Thor reserved word.
|
554
|
+
def is_thor_reserved_word?(word, type) #:nodoc:
|
555
|
+
return false unless THOR_RESERVED_WORDS.include?(word.to_s)
|
556
|
+
raise "#{word.inspect} is a Thor reserved word and cannot be defined as #{type}"
|
557
|
+
end
|
558
|
+
|
559
|
+
# Build an option and adds it to the given scope.
|
560
|
+
#
|
561
|
+
# ==== Parameters
|
562
|
+
# name<Symbol>:: The name of the argument.
|
563
|
+
# options<Hash>:: Described in both class_option and method_option.
|
564
|
+
# scope<Hash>:: Options hash that is being built up
|
565
|
+
def build_option(name, options, scope) #:nodoc:
|
566
|
+
scope[name] = Thor::Option.new(name, options.merge(:check_default_type => check_default_type?))
|
567
|
+
end
|
568
|
+
|
569
|
+
# Receives a hash of options, parse them and add to the scope. This is a
|
570
|
+
# fast way to set a bunch of options:
|
571
|
+
#
|
572
|
+
# build_options :foo => true, :bar => :required, :baz => :string
|
573
|
+
#
|
574
|
+
# ==== Parameters
|
575
|
+
# Hash[Symbol => Object]
|
576
|
+
def build_options(options, scope) #:nodoc:
|
577
|
+
options.each do |key, value|
|
578
|
+
scope[key] = Thor::Option.parse(key, value)
|
579
|
+
end
|
580
|
+
end
|
581
|
+
|
582
|
+
# Finds a command with the given name. If the command belongs to the current
|
583
|
+
# class, just return it, otherwise dup it and add the fresh copy to the
|
584
|
+
# current command hash.
|
585
|
+
def find_and_refresh_command(name) #:nodoc:
|
586
|
+
if commands[name.to_s]
|
587
|
+
commands[name.to_s]
|
588
|
+
elsif command = all_commands[name.to_s] # rubocop:disable AssignmentInCondition
|
589
|
+
commands[name.to_s] = command.clone
|
590
|
+
else
|
591
|
+
raise ArgumentError, "You supplied :for => #{name.inspect}, but the command #{name.inspect} could not be found."
|
592
|
+
end
|
593
|
+
end
|
594
|
+
alias_method :find_and_refresh_task, :find_and_refresh_command
|
595
|
+
|
596
|
+
# Everytime someone inherits from a Thor class, register the klass
|
597
|
+
# and file into baseclass.
|
598
|
+
def inherited(klass)
|
599
|
+
Thor::Base.register_klass_file(klass)
|
600
|
+
klass.instance_variable_set(:@no_commands, false)
|
601
|
+
end
|
602
|
+
|
603
|
+
# Fire this callback whenever a method is added. Added methods are
|
604
|
+
# tracked as commands by invoking the create_command method.
|
605
|
+
def method_added(meth)
|
606
|
+
meth = meth.to_s
|
607
|
+
|
608
|
+
if meth == "initialize"
|
609
|
+
initialize_added
|
610
|
+
return
|
611
|
+
end
|
612
|
+
|
613
|
+
# Return if it's not a public instance method
|
614
|
+
return unless public_method_defined?(meth.to_sym)
|
615
|
+
|
616
|
+
@no_commands ||= false
|
617
|
+
return if @no_commands || !create_command(meth)
|
618
|
+
|
619
|
+
is_thor_reserved_word?(meth, :command)
|
620
|
+
Thor::Base.register_klass_file(self)
|
621
|
+
end
|
622
|
+
|
623
|
+
# Retrieves a value from superclass. If it reaches the baseclass,
|
624
|
+
# returns default.
|
625
|
+
def from_superclass(method, default = nil)
|
626
|
+
if self == baseclass || !superclass.respond_to?(method, true)
|
627
|
+
default
|
628
|
+
else
|
629
|
+
value = superclass.send(method)
|
630
|
+
|
631
|
+
# Ruby implements `dup` on Object, but raises a `TypeError`
|
632
|
+
# if the method is called on immediates. As a result, we
|
633
|
+
# don't have a good way to check whether dup will succeed
|
634
|
+
# without calling it and rescuing the TypeError.
|
635
|
+
begin
|
636
|
+
value.dup
|
637
|
+
rescue TypeError
|
638
|
+
value
|
639
|
+
end
|
640
|
+
|
641
|
+
end
|
642
|
+
end
|
643
|
+
|
644
|
+
# A flag that makes the process exit with status 1 if any error happens.
|
645
|
+
def exit_on_failure?
|
646
|
+
false
|
647
|
+
end
|
648
|
+
|
649
|
+
#
|
650
|
+
# The basename of the program invoking the thor class.
|
651
|
+
#
|
652
|
+
def basename
|
653
|
+
File.basename($PROGRAM_NAME).split(" ").first
|
654
|
+
end
|
655
|
+
|
656
|
+
# SIGNATURE: Sets the baseclass. This is where the superclass lookup
|
657
|
+
# finishes.
|
658
|
+
def baseclass #:nodoc:
|
659
|
+
end
|
660
|
+
|
661
|
+
# SIGNATURE: Creates a new command if valid_command? is true. This method is
|
662
|
+
# called when a new method is added to the class.
|
663
|
+
def create_command(meth) #:nodoc:
|
664
|
+
end
|
665
|
+
alias_method :create_task, :create_command
|
666
|
+
|
667
|
+
# SIGNATURE: Defines behavior when the initialize method is added to the
|
668
|
+
# class.
|
669
|
+
def initialize_added #:nodoc:
|
670
|
+
end
|
671
|
+
|
672
|
+
# SIGNATURE: The hook invoked by start.
|
673
|
+
def dispatch(command, given_args, given_opts, config) #:nodoc:
|
674
|
+
raise NotImplementedError
|
675
|
+
end
|
676
|
+
end
|
677
|
+
end
|
678
|
+
end
|