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,81 @@
|
|
1
|
+
require 'rspec/support'
|
2
|
+
require 'rspec/support/spec/in_sub_process'
|
3
|
+
|
4
|
+
RSpec::Support.require_rspec_support "spec/deprecation_helpers"
|
5
|
+
RSpec::Support.require_rspec_support "spec/with_isolated_stderr"
|
6
|
+
RSpec::Support.require_rspec_support "spec/stderr_splitter"
|
7
|
+
RSpec::Support.require_rspec_support "spec/formatting_support"
|
8
|
+
RSpec::Support.require_rspec_support "spec/with_isolated_directory"
|
9
|
+
RSpec::Support.require_rspec_support "ruby_features"
|
10
|
+
|
11
|
+
warning_preventer = $stderr = RSpec::Support::StdErrSplitter.new($stderr)
|
12
|
+
|
13
|
+
RSpec.configure do |c|
|
14
|
+
c.include RSpecHelpers
|
15
|
+
c.include RSpec::Support::WithIsolatedStdErr
|
16
|
+
c.include RSpec::Support::FormattingSupport
|
17
|
+
c.include RSpec::Support::InSubProcess
|
18
|
+
|
19
|
+
unless defined?(Debugger) # debugger causes warnings when used
|
20
|
+
c.before do
|
21
|
+
warning_preventer.reset!
|
22
|
+
end
|
23
|
+
|
24
|
+
c.after do
|
25
|
+
warning_preventer.verify_no_warnings!
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
if c.files_to_run.one?
|
30
|
+
c.full_backtrace = true
|
31
|
+
c.default_formatter = 'doc'
|
32
|
+
end
|
33
|
+
|
34
|
+
c.filter_run_when_matching :focus
|
35
|
+
|
36
|
+
c.example_status_persistence_file_path = "./spec/examples.txt"
|
37
|
+
|
38
|
+
c.define_derived_metadata :failing_on_appveyor do |meta|
|
39
|
+
meta[:pending] ||= "This spec fails on AppVeyor and needs someone to fix it."
|
40
|
+
end if ENV['APPVEYOR']
|
41
|
+
end
|
42
|
+
|
43
|
+
module RSpec
|
44
|
+
module Support
|
45
|
+
module Spec
|
46
|
+
def self.setup_simplecov(&block)
|
47
|
+
# Simplecov emits some ruby warnings when loaded, so silence them.
|
48
|
+
old_verbose, $VERBOSE = $VERBOSE, false
|
49
|
+
|
50
|
+
return if ENV['NO_COVERAGE'] || RUBY_VERSION < '1.9.3'
|
51
|
+
return if RUBY_ENGINE != 'ruby' || RSpec::Support::OS.windows?
|
52
|
+
|
53
|
+
# Don't load it when we're running a single isolated
|
54
|
+
# test file rather than the whole suite.
|
55
|
+
return if RSpec.configuration.files_to_run.one?
|
56
|
+
|
57
|
+
require 'simplecov'
|
58
|
+
start_simplecov(&block)
|
59
|
+
rescue LoadError
|
60
|
+
warn "Simplecov could not be loaded"
|
61
|
+
ensure
|
62
|
+
$VERBOSE = old_verbose
|
63
|
+
end
|
64
|
+
|
65
|
+
def self.start_simplecov(&block)
|
66
|
+
SimpleCov.start do
|
67
|
+
add_filter "./bundle/"
|
68
|
+
add_filter "./tmp/"
|
69
|
+
add_filter do |source_file|
|
70
|
+
# Filter out `spec` directory except when it is under `lib`
|
71
|
+
# (as is the case in rspec-support)
|
72
|
+
source_file.filename.include?('/spec/') && !source_file.filename.include?('/lib/')
|
73
|
+
end
|
74
|
+
|
75
|
+
instance_eval(&block) if block
|
76
|
+
end
|
77
|
+
end
|
78
|
+
private_class_method :start_simplecov
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'rspec/support'
|
2
|
+
RSpec::Support.require_rspec_support "caller_filter"
|
3
|
+
|
4
|
+
module RSpec
|
5
|
+
module Support
|
6
|
+
module Warnings
|
7
|
+
def deprecate(deprecated, options={})
|
8
|
+
warn_with "DEPRECATION: #{deprecated} is deprecated.", options
|
9
|
+
end
|
10
|
+
|
11
|
+
# @private
|
12
|
+
#
|
13
|
+
# Used internally to print deprecation warnings
|
14
|
+
# when rspec-core isn't loaded
|
15
|
+
def warn_deprecation(message, options={})
|
16
|
+
warn_with "DEPRECATION: \n #{message}", options
|
17
|
+
end
|
18
|
+
|
19
|
+
# @private
|
20
|
+
#
|
21
|
+
# Used internally to print warnings
|
22
|
+
def warning(text, options={})
|
23
|
+
warn_with "WARNING: #{text}.", options
|
24
|
+
end
|
25
|
+
|
26
|
+
# @private
|
27
|
+
#
|
28
|
+
# Used internally to print longer warnings
|
29
|
+
def warn_with(message, options={})
|
30
|
+
call_site = options.fetch(:call_site) { CallerFilter.first_non_rspec_line }
|
31
|
+
message += " Use #{options[:replacement]} instead." if options[:replacement]
|
32
|
+
message += " Called from #{call_site}." if call_site
|
33
|
+
Support.warning_notifier.call message
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
extend RSpec::Support::Warnings
|
39
|
+
end
|
@@ -0,0 +1,149 @@
|
|
1
|
+
module RSpec
|
2
|
+
module Support
|
3
|
+
# @api private
|
4
|
+
#
|
5
|
+
# Defines a helper method that is optimized to require files from the
|
6
|
+
# named lib. The passed block MUST be `{ |f| require_relative f }`
|
7
|
+
# because for `require_relative` to work properly from within the named
|
8
|
+
# lib the line of code must be IN that lib.
|
9
|
+
#
|
10
|
+
# `require_relative` is preferred when available because it is always O(1),
|
11
|
+
# regardless of the number of dirs in $LOAD_PATH. `require`, on the other
|
12
|
+
# hand, does a linear O(N) search over the dirs in the $LOAD_PATH until
|
13
|
+
# it can resolve the file relative to one of the dirs.
|
14
|
+
def self.define_optimized_require_for_rspec(lib, &require_relative)
|
15
|
+
name = "require_rspec_#{lib}"
|
16
|
+
|
17
|
+
if Kernel.respond_to?(:require_relative)
|
18
|
+
(class << self; self; end).__send__(:define_method, name) do |f|
|
19
|
+
require_relative.call("#{lib}/#{f}")
|
20
|
+
end
|
21
|
+
else
|
22
|
+
(class << self; self; end).__send__(:define_method, name) do |f|
|
23
|
+
require "rspec/#{lib}/#{f}"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
define_optimized_require_for_rspec(:support) { |f| require_relative(f) }
|
29
|
+
require_rspec_support "version"
|
30
|
+
require_rspec_support "ruby_features"
|
31
|
+
|
32
|
+
# @api private
|
33
|
+
KERNEL_METHOD_METHOD = ::Kernel.instance_method(:method)
|
34
|
+
|
35
|
+
# @api private
|
36
|
+
#
|
37
|
+
# Used internally to get a method handle for a particular object
|
38
|
+
# and method name.
|
39
|
+
#
|
40
|
+
# Includes handling for a few special cases:
|
41
|
+
#
|
42
|
+
# - Objects that redefine #method (e.g. an HTTPRequest struct)
|
43
|
+
# - BasicObject subclasses that mixin a Kernel dup (e.g. SimpleDelegator)
|
44
|
+
# - Objects that undefine method and delegate everything to another
|
45
|
+
# object (e.g. Mongoid association objects)
|
46
|
+
if RubyFeatures.supports_rebinding_module_methods?
|
47
|
+
def self.method_handle_for(object, method_name)
|
48
|
+
KERNEL_METHOD_METHOD.bind(object).call(method_name)
|
49
|
+
rescue NameError => original
|
50
|
+
begin
|
51
|
+
handle = object.method(method_name)
|
52
|
+
raise original unless handle.is_a? Method
|
53
|
+
handle
|
54
|
+
rescue Support::AllExceptionsExceptOnesWeMustNotRescue
|
55
|
+
raise original
|
56
|
+
end
|
57
|
+
end
|
58
|
+
else
|
59
|
+
def self.method_handle_for(object, method_name)
|
60
|
+
if ::Kernel === object
|
61
|
+
KERNEL_METHOD_METHOD.bind(object).call(method_name)
|
62
|
+
else
|
63
|
+
object.method(method_name)
|
64
|
+
end
|
65
|
+
rescue NameError => original
|
66
|
+
begin
|
67
|
+
handle = object.method(method_name)
|
68
|
+
raise original unless handle.is_a? Method
|
69
|
+
handle
|
70
|
+
rescue Support::AllExceptionsExceptOnesWeMustNotRescue
|
71
|
+
raise original
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
# @api private
|
77
|
+
#
|
78
|
+
# Used internally to get a class of a given object, even if it does not respond to #class.
|
79
|
+
def self.class_of(object)
|
80
|
+
object.class
|
81
|
+
rescue NoMethodError
|
82
|
+
singleton_class = class << object; self; end
|
83
|
+
singleton_class.ancestors.find { |ancestor| !ancestor.equal?(singleton_class) }
|
84
|
+
end
|
85
|
+
|
86
|
+
# A single thread local variable so we don't excessively pollute that namespace.
|
87
|
+
def self.thread_local_data
|
88
|
+
Thread.current[:__rspec] ||= {}
|
89
|
+
end
|
90
|
+
|
91
|
+
# @api private
|
92
|
+
def self.failure_notifier=(callable)
|
93
|
+
thread_local_data[:failure_notifier] = callable
|
94
|
+
end
|
95
|
+
|
96
|
+
# @private
|
97
|
+
DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
|
98
|
+
|
99
|
+
# @api private
|
100
|
+
def self.failure_notifier
|
101
|
+
thread_local_data[:failure_notifier] || DEFAULT_FAILURE_NOTIFIER
|
102
|
+
end
|
103
|
+
|
104
|
+
# @api private
|
105
|
+
def self.notify_failure(failure, options={})
|
106
|
+
failure_notifier.call(failure, options)
|
107
|
+
end
|
108
|
+
|
109
|
+
# @api private
|
110
|
+
def self.with_failure_notifier(callable)
|
111
|
+
orig_notifier = failure_notifier
|
112
|
+
self.failure_notifier = callable
|
113
|
+
yield
|
114
|
+
ensure
|
115
|
+
self.failure_notifier = orig_notifier
|
116
|
+
end
|
117
|
+
|
118
|
+
class << self
|
119
|
+
# @api private
|
120
|
+
attr_writer :warning_notifier
|
121
|
+
end
|
122
|
+
|
123
|
+
# @private
|
124
|
+
DEFAULT_WARNING_NOTIFIER = lambda { |warning| ::Kernel.warn warning }
|
125
|
+
|
126
|
+
# @api private
|
127
|
+
def self.warning_notifier
|
128
|
+
@warning_notifier ||= DEFAULT_WARNING_NOTIFIER
|
129
|
+
end
|
130
|
+
|
131
|
+
# @private
|
132
|
+
module AllExceptionsExceptOnesWeMustNotRescue
|
133
|
+
# These exceptions are dangerous to rescue as rescuing them
|
134
|
+
# would interfere with things we should not interfere with.
|
135
|
+
AVOID_RESCUING = [NoMemoryError, SignalException, Interrupt, SystemExit]
|
136
|
+
|
137
|
+
def self.===(exception)
|
138
|
+
AVOID_RESCUING.none? { |ar| ar === exception }
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
# The Differ is only needed when a spec fails with a diffable failure.
|
143
|
+
# In the more common case of all specs passing or the only failures being
|
144
|
+
# non-diffable, we can avoid the extra cost of loading the differ, diff-lcs,
|
145
|
+
# pp, etc by avoiding an unnecessary require. Instead, autoload will take
|
146
|
+
# care of loading the differ on first use.
|
147
|
+
autoload :Differ, "rspec/support/differ"
|
148
|
+
end
|
149
|
+
end
|
@@ -0,0 +1,204 @@
|
|
1
|
+
# 0.20.3
|
2
|
+
* Support old versions of `did_you_mean`.
|
3
|
+
|
4
|
+
# 0.20.2
|
5
|
+
* Fix `did_you_mean` support.
|
6
|
+
|
7
|
+
# 0.20.1
|
8
|
+
* Support new versions fo ERB.
|
9
|
+
* Fix `check_unknown_options!` to not check the content that was not parsed, i.e. after a `--` or after the first unknown with `stop_on_unknown_option!`
|
10
|
+
* Add `did_you_mean` support.
|
11
|
+
|
12
|
+
## 0.20.0
|
13
|
+
* Add `check_default_type!` to check if the default value of an option matches the defined type.
|
14
|
+
It removes the warning on usage and gives the command authors the possibility to check for programming errors.
|
15
|
+
|
16
|
+
* Add `disable_required_check!` to disable check for required options in some commands.
|
17
|
+
It is a substitute of `disable_class_options` that was not working as intended.
|
18
|
+
|
19
|
+
* Add `inject_into_module`.
|
20
|
+
|
21
|
+
## 0.19.4, release 2016-11-28
|
22
|
+
* Rename `Thor::Base#thor_reserved_word?` to `#is_thor_reserved_word?`
|
23
|
+
|
24
|
+
## 0.19.3, release 2016-11-27
|
25
|
+
* Output a warning instead of raising an exception when a default option value doesn't match its specified type
|
26
|
+
|
27
|
+
## 0.19.2, release 2016-11-26
|
28
|
+
* Fix bug with handling of colors passed to `ask` (and methods like `yes?` and `no?` which it underpins)
|
29
|
+
* Allow numeric arguments to be negative
|
30
|
+
* Ensure that default option values are of the specified type (e.g. you can't specify `"foo"` as the default for a numeric option), but make symbols and strings interchangeable
|
31
|
+
* Add `Thor::Shell::Basic#indent` method for intending output
|
32
|
+
* Fix `remove_command` for an inherited command (see #451)
|
33
|
+
* Allow hash arguments to only have each key provided once (see #455)
|
34
|
+
* Allow commands to disable class options, for instance for "help" commands (see #363)
|
35
|
+
* Do not generate a negative option (`--no-no-foo`) for already negative boolean options (`--no-foo`)
|
36
|
+
* Improve compatibility of `Thor::CoreExt::HashWithIndifferentAccess` with Ruby standard library `Hash`
|
37
|
+
* Allow specifying a custom binding for template evaluation (e.g. `#key?` and `#fetch`)
|
38
|
+
* Fix support for subcommand-specific "help"s
|
39
|
+
* Use a string buffer when handling ERB for Ruby 2.3 compatibility
|
40
|
+
* Update dependencies
|
41
|
+
|
42
|
+
## 0.19.1, release 2014-03-24
|
43
|
+
* Fix `say` non-String break regression
|
44
|
+
|
45
|
+
## 0.19.0, release 2014-03-22
|
46
|
+
* Add support for a default to #ask
|
47
|
+
* Avoid @namespace not initialized warning
|
48
|
+
* Avoid private attribute? warning
|
49
|
+
* Fix initializing with unknown options
|
50
|
+
* Loosen required_rubygems_version for compatibility with Ubuntu 10.04
|
51
|
+
* Shell#ask: support a noecho option for stdin
|
52
|
+
* Shell#ask: change API to be :echo => false
|
53
|
+
* Display a message without a stack trace for ambiguous commands
|
54
|
+
* Make say and say_status thread safe
|
55
|
+
* Dependency for console io version check
|
56
|
+
* Alias --help to help on subcommands
|
57
|
+
* Use mime-types 1.x for Ruby 1.8.7 compatibility for Ruby 1.8 only
|
58
|
+
* Accept .tt files as templates
|
59
|
+
* Check if numeric value is in enum
|
60
|
+
* Use Readline for user input
|
61
|
+
* Fix dispatching of subcommands (concerning :help and *args)
|
62
|
+
* Fix warnings when running specs with `$VERBOSE = true`
|
63
|
+
* Make subcommand help more consistent
|
64
|
+
* Make the current command chain accessible in command
|
65
|
+
|
66
|
+
## 0.18.1, release 2013-03-30
|
67
|
+
* Revert regressions found in 0.18.0
|
68
|
+
|
69
|
+
## 0.18.0, release 2013-03-26
|
70
|
+
* Remove rake2thor
|
71
|
+
* Only display colors if output medium supports colors
|
72
|
+
* Pass parent_options to subcommands
|
73
|
+
* Fix non-dash-prefixed aliases
|
74
|
+
* Make error messages more helpful
|
75
|
+
* Rename "task" to "command"
|
76
|
+
* Add the method to allow for custom package name
|
77
|
+
|
78
|
+
## 0.17.0, release 2013-01-24
|
79
|
+
* Add better support for tasks that accept arbitrary additional arguments (e.g. things like `bundle exec`)
|
80
|
+
* Add #stop_on_unknown_option!
|
81
|
+
* Only strip from stdin.gets if it wasn't ended with EOF
|
82
|
+
* Allow "send" as a task name
|
83
|
+
* Allow passing options as arguments after "--"
|
84
|
+
* Autoload Thor::Group
|
85
|
+
|
86
|
+
## 0.16.0, release 2012-08-14
|
87
|
+
* Add enum to string arguments
|
88
|
+
|
89
|
+
## 0.15.4, release 2012-06-29
|
90
|
+
* Fix regression when destination root contains reserved regexp characters
|
91
|
+
|
92
|
+
## 0.15.3, release 2012-06-18
|
93
|
+
* Support strict_args_position! for backwards compatibility
|
94
|
+
* Escape Dir glob characters in paths
|
95
|
+
|
96
|
+
## 0.15.2, released 2012-05-07
|
97
|
+
* Added print_in_columns
|
98
|
+
* Exposed terminal_width as a public API
|
99
|
+
|
100
|
+
## 0.15.1, release 2012-05-06
|
101
|
+
* Fix Ruby 1.8 truncation bug with unicode chars
|
102
|
+
* Fix shell delegate methods to pass their block
|
103
|
+
* Don't output trailing spaces when printing the last column in a table
|
104
|
+
|
105
|
+
## 0.15, released 2012-04-29
|
106
|
+
* Alias method_options to options
|
107
|
+
* Refactor say to allow multiple colors
|
108
|
+
* Exposed error as a public API
|
109
|
+
* Exposed file_collision as a public API
|
110
|
+
* Exposed print_wrapped as a public API
|
111
|
+
* Exposed set_color as a public API
|
112
|
+
* Fix number-formatting bugs in print_table
|
113
|
+
* Fix "indent" typo in print_table
|
114
|
+
* Fix Errno::EPIPE when piping tasks to `head`
|
115
|
+
* More friendly error messages
|
116
|
+
|
117
|
+
## 0.14, released 2010-07-25
|
118
|
+
* Added CreateLink class and #link_file method
|
119
|
+
* Made Thor::Actions#run use system as default method for system calls
|
120
|
+
* Allow use of private methods from superclass as tasks
|
121
|
+
* Added mute(&block) method which allows to run block without any output
|
122
|
+
* Removed config[:pretend]
|
123
|
+
* Enabled underscores for command line switches
|
124
|
+
* Added Thor::Base.basename which is used by both Thor.banner and Thor::Group.banner
|
125
|
+
* Deprecated invoke() without arguments
|
126
|
+
* Added :only and :except to check_unknown_options
|
127
|
+
|
128
|
+
## 0.13, released 2010-02-03
|
129
|
+
* Added :lazy_default which is only triggered if a switch is given
|
130
|
+
* Added Thor::Shell::HTML
|
131
|
+
* Added subcommands
|
132
|
+
* Decoupled Thor::Group and Thor, so it's easier to vendor
|
133
|
+
* Added check_unknown_options! in case you want error messages to be raised in valid switches
|
134
|
+
* run(command) should return the results of command
|
135
|
+
|
136
|
+
## 0.12, released 2010-01-02
|
137
|
+
* Methods generated by attr_* are automatically not marked as tasks
|
138
|
+
* inject_into_file does not add the same content twice, unless :force is set
|
139
|
+
* Removed rr in favor to rspec mock framework
|
140
|
+
* Improved output for thor -T
|
141
|
+
* [#7] Do not force white color on status
|
142
|
+
* [#8] Yield a block with the filename on directory
|
143
|
+
|
144
|
+
## 0.11, released 2009-07-01
|
145
|
+
* Added a rake compatibility layer. It allows you to use spec and rdoc tasks on
|
146
|
+
Thor classes.
|
147
|
+
* BACKWARDS INCOMPATIBLE: aliases are not generated automatically anymore
|
148
|
+
since it may cause wrong behavior in the invocation system.
|
149
|
+
* thor help now show information about any class/task. All those calls are
|
150
|
+
possible:
|
151
|
+
|
152
|
+
thor help describe
|
153
|
+
thor help describe:amazing
|
154
|
+
Or even with default namespaces:
|
155
|
+
|
156
|
+
thor help :spec
|
157
|
+
* Thor::Runner now invokes the default task if none is supplied:
|
158
|
+
|
159
|
+
thor describe # invokes the default task, usually help
|
160
|
+
* Thor::Runner now works with mappings:
|
161
|
+
|
162
|
+
thor describe -h
|
163
|
+
* Added some documentation and code refactoring.
|
164
|
+
|
165
|
+
## 0.9.8, released 2008-10-20
|
166
|
+
* Fixed some tiny issues that were introduced lately.
|
167
|
+
|
168
|
+
## 0.9.7, released 2008-10-13
|
169
|
+
* Setting global method options on the initialize method works as expected:
|
170
|
+
All other tasks will accept these global options in addition to their own.
|
171
|
+
* Added 'group' notion to Thor task sets (class Thor); by default all tasks
|
172
|
+
are in the 'standard' group. Running 'thor -T' will only show the standard
|
173
|
+
tasks - adding --all will show all tasks. You can also filter on a specific
|
174
|
+
group using the --group option: thor -T --group advanced
|
175
|
+
|
176
|
+
## 0.9.6, released 2008-09-13
|
177
|
+
* Generic improvements
|
178
|
+
|
179
|
+
## 0.9.5, released 2008-08-27
|
180
|
+
* Improve Windows compatibility
|
181
|
+
* Update (incorrect) README and task.thor sample file
|
182
|
+
* Options hash is now frozen (once returned)
|
183
|
+
* Allow magic predicates on options object. For instance: `options.force?`
|
184
|
+
* Add support for :numeric type
|
185
|
+
* BACKWARDS INCOMPATIBLE: Refactor Thor::Options. You cannot access shorthand forms in options hash anymore (for instance, options[:f])
|
186
|
+
* Allow specifying optional args with default values: method_options(:user => "mislav")
|
187
|
+
* Don't write options for nil or false values. This allows, for example, turning color off when running specs.
|
188
|
+
* Exit with the status of the spec command to help CI stuff out some.
|
189
|
+
|
190
|
+
## 0.9.4, released 2008-08-13
|
191
|
+
* Try to add Windows compatibility.
|
192
|
+
* BACKWARDS INCOMPATIBLE: options hash is now accessed as a property in your class and is not passed as last argument anymore
|
193
|
+
* Allow options at the beginning of the argument list as well as the end.
|
194
|
+
* Make options available with symbol keys in addition to string keys.
|
195
|
+
* Allow true to be passed to Thor#method_options to denote a boolean option.
|
196
|
+
* If loading a thor file fails, don't give up, just print a warning and keep going.
|
197
|
+
* Make sure that we re-raise errors if they happened further down the pipe than we care about.
|
198
|
+
* Only delete the old file on updating when the installation of the new one is a success
|
199
|
+
* Make it Ruby 1.8.5 compatible.
|
200
|
+
* Don't raise an error if a boolean switch is defined multiple times.
|
201
|
+
* Thor::Options now doesn't parse through things that look like options but aren't.
|
202
|
+
* Add URI detection to install task, and make sure we don't append ".thor" to URIs
|
203
|
+
* Add rake2thor to the gem binfiles.
|
204
|
+
* Make sure local Thorfiles override system-wide ones.
|
@@ -0,0 +1,15 @@
|
|
1
|
+
Pull Requests
|
2
|
+
-------------
|
3
|
+
Here are some reasons why a pull request may not be merged:
|
4
|
+
|
5
|
+
1. It hasn’t been reviewed.
|
6
|
+
2. It doesn’t include specs for new functionality.
|
7
|
+
3. It doesn’t include documentation for new functionality.
|
8
|
+
4. It changes behavior without changing the relevant documentation, comments, or specs.
|
9
|
+
5. It changes behavior of an existing public API, breaking backward compatibility.
|
10
|
+
6. It breaks the tests on a supported platform.
|
11
|
+
7. It doesn’t merge cleanly (requiring Git rebasing and conflict resolution).
|
12
|
+
|
13
|
+
If you would like to help in this process, you can start by evaluating open pull requests against the criteria above. For example, if a pull request does not include specs for new functionality, you can add a comment like: “If you would like this feature to be added to Thor, please add specs to ensure that it does not break in the future.” This will help move a pull request closer to being merged.
|
14
|
+
|
15
|
+
Include this emoji in the top of your ticket to signal to us that you read this file: 🌈
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2008 Yehuda Katz, Eric Hodel, et al.
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,51 @@
|
|
1
|
+
Thor
|
2
|
+
====
|
3
|
+
|
4
|
+
[![Gem Version](http://img.shields.io/gem/v/thor.svg)][gem]
|
5
|
+
[![Build Status](http://img.shields.io/travis/erikhuda/thor.svg)][travis]
|
6
|
+
[![Code Climate](http://img.shields.io/codeclimate/github/erikhuda/thor.svg)][codeclimate]
|
7
|
+
[![Coverage Status](http://img.shields.io/coveralls/erikhuda/thor.svg)][coveralls]
|
8
|
+
|
9
|
+
[gem]: https://rubygems.org/gems/thor
|
10
|
+
[travis]: http://travis-ci.org/erikhuda/thor
|
11
|
+
[codeclimate]: https://codeclimate.com/github/erikhuda/thor
|
12
|
+
[coveralls]: https://coveralls.io/r/erikhuda/thor
|
13
|
+
|
14
|
+
Description
|
15
|
+
-----------
|
16
|
+
Thor is a simple and efficient tool for building self-documenting command line
|
17
|
+
utilities. It removes the pain of parsing command line options, writing
|
18
|
+
"USAGE:" banners, and can also be used as an alternative to the [Rake][rake]
|
19
|
+
build tool. The syntax is Rake-like, so it should be familiar to most Rake
|
20
|
+
users.
|
21
|
+
|
22
|
+
Please note: Thor, by design, is a system tool created to allow seamless file and url
|
23
|
+
access, which should not receive application user input. It relies on [open-uri][open-uri],
|
24
|
+
which combined with application user input would provide a command injection attack
|
25
|
+
vector.
|
26
|
+
|
27
|
+
[rake]: https://github.com/ruby/rake
|
28
|
+
[open-uri]: https://ruby-doc.org/stdlib-2.5.1/libdoc/open-uri/rdoc/index.html
|
29
|
+
|
30
|
+
Installation
|
31
|
+
------------
|
32
|
+
gem install thor
|
33
|
+
|
34
|
+
Usage and documentation
|
35
|
+
-----------------------
|
36
|
+
Please see the [wiki][] for basic usage and other documentation on using Thor. You can also checkout the [official homepage][homepage].
|
37
|
+
|
38
|
+
[wiki]: https://github.com/erikhuda/thor/wiki
|
39
|
+
[homepage]: http://whatisthor.com/
|
40
|
+
|
41
|
+
Contributing
|
42
|
+
------------
|
43
|
+
If you would like to help, please read the [CONTRIBUTING][] file for suggestions.
|
44
|
+
|
45
|
+
[contributing]: CONTRIBUTING.md
|
46
|
+
|
47
|
+
License
|
48
|
+
-------
|
49
|
+
Released under the MIT License. See the [LICENSE][] file for further details.
|
50
|
+
|
51
|
+
[license]: LICENSE.md
|
@@ -0,0 +1,104 @@
|
|
1
|
+
require "thor/actions/empty_directory"
|
2
|
+
|
3
|
+
class Thor
|
4
|
+
module Actions
|
5
|
+
# Create a new file relative to the destination root with the given data,
|
6
|
+
# which is the return value of a block or a data string.
|
7
|
+
#
|
8
|
+
# ==== Parameters
|
9
|
+
# destination<String>:: the relative path to the destination root.
|
10
|
+
# data<String|NilClass>:: the data to append to the file.
|
11
|
+
# config<Hash>:: give :verbose => false to not log the status.
|
12
|
+
#
|
13
|
+
# ==== Examples
|
14
|
+
#
|
15
|
+
# create_file "lib/fun_party.rb" do
|
16
|
+
# hostname = ask("What is the virtual hostname I should use?")
|
17
|
+
# "vhost.name = #{hostname}"
|
18
|
+
# end
|
19
|
+
#
|
20
|
+
# create_file "config/apache.conf", "your apache config"
|
21
|
+
#
|
22
|
+
def create_file(destination, *args, &block)
|
23
|
+
config = args.last.is_a?(Hash) ? args.pop : {}
|
24
|
+
data = args.first
|
25
|
+
action CreateFile.new(self, destination, block || data.to_s, config)
|
26
|
+
end
|
27
|
+
alias_method :add_file, :create_file
|
28
|
+
|
29
|
+
# CreateFile is a subset of Template, which instead of rendering a file with
|
30
|
+
# ERB, it gets the content from the user.
|
31
|
+
#
|
32
|
+
class CreateFile < EmptyDirectory #:nodoc:
|
33
|
+
attr_reader :data
|
34
|
+
|
35
|
+
def initialize(base, destination, data, config = {})
|
36
|
+
@data = data
|
37
|
+
super(base, destination, config)
|
38
|
+
end
|
39
|
+
|
40
|
+
# Checks if the content of the file at the destination is identical to the rendered result.
|
41
|
+
#
|
42
|
+
# ==== Returns
|
43
|
+
# Boolean:: true if it is identical, false otherwise.
|
44
|
+
#
|
45
|
+
def identical?
|
46
|
+
exists? && File.binread(destination) == render
|
47
|
+
end
|
48
|
+
|
49
|
+
# Holds the content to be added to the file.
|
50
|
+
#
|
51
|
+
def render
|
52
|
+
@render ||= if data.is_a?(Proc)
|
53
|
+
data.call
|
54
|
+
else
|
55
|
+
data
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
def invoke!
|
60
|
+
invoke_with_conflict_check do
|
61
|
+
require "fileutils"
|
62
|
+
FileUtils.mkdir_p(File.dirname(destination))
|
63
|
+
File.open(destination, "wb") { |f| f.write render }
|
64
|
+
end
|
65
|
+
given_destination
|
66
|
+
end
|
67
|
+
|
68
|
+
protected
|
69
|
+
|
70
|
+
# Now on conflict we check if the file is identical or not.
|
71
|
+
#
|
72
|
+
def on_conflict_behavior(&block)
|
73
|
+
if identical?
|
74
|
+
say_status :identical, :blue
|
75
|
+
else
|
76
|
+
options = base.options.merge(config)
|
77
|
+
force_or_skip_or_conflict(options[:force], options[:skip], &block)
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# If force is true, run the action, otherwise check if it's not being
|
82
|
+
# skipped. If both are false, show the file_collision menu, if the menu
|
83
|
+
# returns true, force it, otherwise skip.
|
84
|
+
#
|
85
|
+
def force_or_skip_or_conflict(force, skip, &block)
|
86
|
+
if force
|
87
|
+
say_status :force, :yellow
|
88
|
+
yield unless pretend?
|
89
|
+
elsif skip
|
90
|
+
say_status :skip, :yellow
|
91
|
+
else
|
92
|
+
say_status :conflict, :red
|
93
|
+
force_or_skip_or_conflict(force_on_collision?, true, &block)
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
# Shows the file collision menu to the user and gets the result.
|
98
|
+
#
|
99
|
+
def force_on_collision?
|
100
|
+
base.shell.file_collision(destination) { render }
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|