hatena_bookmark_client_for_ruby 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 +11 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +35 -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/hatena_bookmark_client_for_ruby.gemspec +30 -0
- data/lib/hatena_bookmark_client_for_ruby.rb +10 -0
- data/lib/hatena_bookmark_client_for_ruby/version.rb +3 -0
- data/shell/exe/sample +5 -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/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.8.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-core-3.8.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-expectations-3.8.2.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-mocks-3.8.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-support-3.8.0.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.rb +3 -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/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/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.rb +79 -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/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.8.0/LICENSE.md +27 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-3.8.0/README.md +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-3.8.0/lib/rspec.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-3.8.0/lib/rspec/version.rb +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/.document +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/.yardopts +8 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/Changelog.md +2221 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/LICENSE.md +26 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/README.md +384 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/exe/rspec +4 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/autorun.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core.rb +185 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/backtrace_formatter.rb +65 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/bisect/coordinator.rb +62 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/bisect/example_minimizer.rb +173 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/bisect/fork_runner.rb +134 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/bisect/server.rb +61 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/bisect/shell_command.rb +126 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/bisect/shell_runner.rb +73 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/bisect/utilities.rb +58 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/configuration.rb +2289 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/configuration_options.rb +233 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/drb.rb +113 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/dsl.rb +98 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/example.rb +653 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/example_group.rb +885 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/example_status_persister.rb +235 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/filter_manager.rb +231 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/flat_map.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters.rb +269 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/base_bisect_formatter.rb +45 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/base_formatter.rb +70 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/base_text_formatter.rb +75 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/bisect_drb_formatter.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/bisect_progress_formatter.rb +157 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/console_codes.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/deprecation_formatter.rb +223 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/documentation_formatter.rb +70 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/exception_presenter.rb +497 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/fallback_message_formatter.rb +28 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/helpers.rb +110 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/html_formatter.rb +153 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/html_printer.rb +414 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/html_snippet_extractor.rb +120 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/json_formatter.rb +102 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/profile_formatter.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/progress_formatter.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/protocol.rb +182 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/snippet_extractor.rb +134 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/formatters/syntax_highlighter.rb +91 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/hooks.rb +624 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/invocations.rb +87 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/memoized_helpers.rb +535 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/metadata.rb +499 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/metadata_filter.rb +255 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/minitest_assertions_adapter.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/mocking_adapters/flexmock.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/mocking_adapters/mocha.rb +57 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/mocking_adapters/null.rb +14 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/mocking_adapters/rr.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/mocking_adapters/rspec.rb +32 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/notifications.rb +521 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/option_parser.rb +309 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/ordering.rb +158 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/output_wrapper.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/pending.rb +165 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/profiler.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/project_initializer.rb +48 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/project_initializer/.rspec +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/project_initializer/spec/spec_helper.rb +100 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/rake_task.rb +168 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/reporter.rb +257 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/ruby_project.rb +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/runner.rb +199 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/sandbox.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/set.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/shared_context.rb +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/shared_example_group.rb +269 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/shell_escape.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/test_unit_assertions_adapter.rb +30 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/version.rb +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/warnings.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.0/lib/rspec/core/world.rb +275 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/.document +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/.yardopts +6 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/Changelog.md +1120 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/LICENSE.md +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/README.md +305 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/expectations.rb +82 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/expectations/block_snippet_extractor.rb +253 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/expectations/configuration.rb +215 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/expectations/expectation_target.rb +127 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/expectations/fail_with.rb +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/expectations/failure_aggregator.rb +194 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/expectations/handler.rb +170 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/expectations/minitest_integration.rb +58 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/expectations/syntax.rb +132 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/expectations/version.rb +8 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers.rb +1034 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/aliased_matcher.rb +116 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in.rb +52 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/all.rb +85 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/base_matcher.rb +193 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/be.rb +288 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/be_between.rb +77 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/be_instance_of.rb +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/be_kind_of.rb +16 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/be_within.rb +72 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/change.rb +426 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/compound.rb +271 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/contain_exactly.rb +302 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/cover.rb +24 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/eq.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/eql.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/equal.rb +81 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/exist.rb +90 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/has.rb +103 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/have_attributes.rb +114 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/include.rb +149 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/match.rb +106 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/operators.rb +128 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/output.rb +200 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/raise_error.rb +230 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/respond_to.rb +165 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/satisfy.rb +60 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/start_or_end_with.rb +94 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/throw_symbol.rb +132 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/built_in/yield.rb +432 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/composable.rb +171 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/dsl.rb +527 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/english_phrasing.rb +58 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +73 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/fail_matchers.rb +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/generated_descriptions.rb +41 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/matcher_delegator.rb +35 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.8.2/lib/rspec/matchers/matcher_protocol.rb +99 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/.document +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/.yardopts +6 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/Changelog.md +1100 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/LICENSE.md +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/README.md +460 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks.rb +130 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance.rb +11 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/chain.rb +110 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/error_generator.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/expect_chain_chain.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/expectation_chain.rb +50 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/message_chains.rb +83 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/proxy.rb +116 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/recorder.rb +289 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/stub_chain.rb +51 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/any_instance/stub_chain_chain.rb +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/argument_list_matcher.rb +100 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/argument_matchers.rb +320 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/configuration.rb +212 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/error_generator.rb +369 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/example_methods.rb +434 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/instance_method_stasher.rb +146 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/marshal_extension.rb +41 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/matchers/expectation_customization.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/matchers/have_received.rb +134 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/matchers/receive.rb +132 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/matchers/receive_message_chain.rb +82 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/matchers/receive_messages.rb +77 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/message_chain.rb +87 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/message_expectation.rb +741 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/method_double.rb +287 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/method_reference.rb +202 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/minitest_integration.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/mutate_const.rb +339 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/object_reference.rb +149 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/order_group.rb +81 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/proxy.rb +485 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/space.rb +238 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/standalone.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/syntax.rb +325 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/targets.rb +124 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/test_double.rb +171 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/verifying_double.rb +129 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/verifying_message_expectation.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/verifying_proxy.rb +220 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.8.0/lib/rspec/mocks/version.rb +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/Changelog.md +242 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/LICENSE.md +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/README.md +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support.rb +149 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/caller_filter.rb +83 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/comparable_version.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/differ.rb +215 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/directory_maker.rb +63 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/encoded_string.rb +165 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/fuzzy_matcher.rb +48 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/hunk_generator.rb +47 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/matcher_definition.rb +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/method_signature_verifier.rb +426 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/mutex.rb +73 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/object_formatter.rb +275 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/recursive_const_methods.rb +76 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/reentrant_mutex.rb +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/ruby_features.rb +176 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/source.rb +75 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/source/location.rb +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/source/node.rb +110 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/source/token.rb +87 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/spec.rb +81 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/deprecation_helpers.rb +64 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/formatting_support.rb +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/in_sub_process.rb +69 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/library_wide_checks.rb +150 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/shell_out.rb +84 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/stderr_splitter.rb +63 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/string_matcher.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/with_isolated_directory.rb +13 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/spec/with_isolated_stderr.rb +13 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/version.rb +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/warnings.rb +39 -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.8.0.gemspec +42 -0
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-core-3.8.0.gemspec +62 -0
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-expectations-3.8.2.gemspec +50 -0
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-mocks-3.8.0.gemspec +50 -0
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-support-3.8.0.gemspec +41 -0
- metadata +536 -0
@@ -0,0 +1,63 @@
|
|
1
|
+
RSpec::Support.require_rspec_support 'ruby_features'
|
2
|
+
|
3
|
+
module RSpec
|
4
|
+
module Support
|
5
|
+
# @api private
|
6
|
+
#
|
7
|
+
# Replacement for fileutils#mkdir_p because we don't want to require parts
|
8
|
+
# of stdlib in RSpec.
|
9
|
+
class DirectoryMaker
|
10
|
+
# @api private
|
11
|
+
#
|
12
|
+
# Implements nested directory construction
|
13
|
+
def self.mkdir_p(path)
|
14
|
+
stack = generate_stack(path)
|
15
|
+
path.split(File::SEPARATOR).each do |part|
|
16
|
+
stack = generate_path(stack, part)
|
17
|
+
begin
|
18
|
+
Dir.mkdir(stack) unless directory_exists?(stack)
|
19
|
+
rescue Errno::EEXIST => e
|
20
|
+
raise e unless directory_exists?(stack)
|
21
|
+
rescue Errno::ENOTDIR => e
|
22
|
+
raise Errno::EEXIST, e.message
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
if OS.windows_file_path?
|
28
|
+
def self.generate_stack(path)
|
29
|
+
if path.start_with?(File::SEPARATOR)
|
30
|
+
File::SEPARATOR
|
31
|
+
elsif path[1] == ':'
|
32
|
+
''
|
33
|
+
else
|
34
|
+
'.'
|
35
|
+
end
|
36
|
+
end
|
37
|
+
def self.generate_path(stack, part)
|
38
|
+
if stack == ''
|
39
|
+
part
|
40
|
+
elsif stack == File::SEPARATOR
|
41
|
+
File.join('', part)
|
42
|
+
else
|
43
|
+
File.join(stack, part)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
else
|
47
|
+
def self.generate_stack(path)
|
48
|
+
path.start_with?(File::SEPARATOR) ? File::SEPARATOR : "."
|
49
|
+
end
|
50
|
+
def self.generate_path(stack, part)
|
51
|
+
File.join(stack, part)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
def self.directory_exists?(dirname)
|
56
|
+
File.exist?(dirname) && File.directory?(dirname)
|
57
|
+
end
|
58
|
+
private_class_method :directory_exists?
|
59
|
+
private_class_method :generate_stack
|
60
|
+
private_class_method :generate_path
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,165 @@
|
|
1
|
+
module RSpec
|
2
|
+
module Support
|
3
|
+
# @private
|
4
|
+
class EncodedString
|
5
|
+
# Reduce allocations by storing constants.
|
6
|
+
UTF_8 = "UTF-8"
|
7
|
+
US_ASCII = "US-ASCII"
|
8
|
+
#
|
9
|
+
# In MRI 2.1 'invalid: :replace' changed to also replace an invalid byte sequence
|
10
|
+
# see https://github.com/ruby/ruby/blob/v2_1_0/NEWS#L176
|
11
|
+
# https://www.ruby-forum.com/topic/6861247
|
12
|
+
# https://twitter.com/nalsh/status/553413844685438976
|
13
|
+
#
|
14
|
+
# For example, given:
|
15
|
+
# "\x80".force_encoding("Emacs-Mule").encode(:invalid => :replace).bytes.to_a
|
16
|
+
#
|
17
|
+
# On MRI 2.1 or above: 63 # '?'
|
18
|
+
# else : 128 # "\x80"
|
19
|
+
#
|
20
|
+
# Ruby's default replacement string is:
|
21
|
+
# U+FFFD ("\xEF\xBF\xBD"), for Unicode encoding forms, else
|
22
|
+
# ? ("\x3F")
|
23
|
+
REPLACE = "?"
|
24
|
+
ENCODE_UNCONVERTABLE_BYTES = {
|
25
|
+
:invalid => :replace,
|
26
|
+
:undef => :replace,
|
27
|
+
:replace => REPLACE
|
28
|
+
}
|
29
|
+
ENCODE_NO_CONVERTER = {
|
30
|
+
:invalid => :replace,
|
31
|
+
:replace => REPLACE
|
32
|
+
}
|
33
|
+
|
34
|
+
def initialize(string, encoding=nil)
|
35
|
+
@encoding = encoding
|
36
|
+
@source_encoding = detect_source_encoding(string)
|
37
|
+
@string = matching_encoding(string)
|
38
|
+
end
|
39
|
+
attr_reader :source_encoding
|
40
|
+
|
41
|
+
delegated_methods = String.instance_methods.map(&:to_s) & %w[eql? lines == encoding empty?]
|
42
|
+
delegated_methods.each do |name|
|
43
|
+
define_method(name) { |*args, &block| @string.__send__(name, *args, &block) }
|
44
|
+
end
|
45
|
+
|
46
|
+
def <<(string)
|
47
|
+
@string << matching_encoding(string)
|
48
|
+
end
|
49
|
+
|
50
|
+
if Ruby.jruby?
|
51
|
+
def split(regex_or_string)
|
52
|
+
@string.split(matching_encoding(regex_or_string))
|
53
|
+
rescue ArgumentError
|
54
|
+
# JRuby raises an ArgumentError when splitting a source string that
|
55
|
+
# contains invalid bytes.
|
56
|
+
remove_invalid_bytes(@string).split regex_or_string
|
57
|
+
end
|
58
|
+
else
|
59
|
+
def split(regex_or_string)
|
60
|
+
@string.split(matching_encoding(regex_or_string))
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
def to_s
|
65
|
+
@string
|
66
|
+
end
|
67
|
+
alias :to_str :to_s
|
68
|
+
|
69
|
+
if String.method_defined?(:encoding)
|
70
|
+
|
71
|
+
private
|
72
|
+
|
73
|
+
# Encoding Exceptions:
|
74
|
+
#
|
75
|
+
# Raised by Encoding and String methods:
|
76
|
+
# Encoding::UndefinedConversionError:
|
77
|
+
# when a transcoding operation fails
|
78
|
+
# if the String contains characters invalid for the target encoding
|
79
|
+
# e.g. "\x80".encode('UTF-8','ASCII-8BIT')
|
80
|
+
# vs "\x80".encode('UTF-8','ASCII-8BIT', undef: :replace, replace: '<undef>')
|
81
|
+
# # => '<undef>'
|
82
|
+
# Encoding::CompatibilityError
|
83
|
+
# when Encoding.compatibile?(str1, str2) is nil
|
84
|
+
# e.g. utf_16le_emoji_string.split("\n")
|
85
|
+
# e.g. valid_unicode_string.encode(utf8_encoding) << ascii_string
|
86
|
+
# Encoding::InvalidByteSequenceError:
|
87
|
+
# when the string being transcoded contains a byte invalid for
|
88
|
+
# either the source or target encoding
|
89
|
+
# e.g. "\x80".encode('UTF-8','US-ASCII')
|
90
|
+
# vs "\x80".encode('UTF-8','US-ASCII', invalid: :replace, replace: '<byte>')
|
91
|
+
# # => '<byte>'
|
92
|
+
# ArgumentError
|
93
|
+
# when operating on a string with invalid bytes
|
94
|
+
# e.g."\x80".split("\n")
|
95
|
+
# TypeError
|
96
|
+
# when a symbol is passed as an encoding
|
97
|
+
# Encoding.find(:"UTF-8")
|
98
|
+
# when calling force_encoding on an object
|
99
|
+
# that doesn't respond to #to_str
|
100
|
+
#
|
101
|
+
# Raised by transcoding methods:
|
102
|
+
# Encoding::ConverterNotFoundError:
|
103
|
+
# when a named encoding does not correspond with a known converter
|
104
|
+
# e.g. 'abc'.force_encoding('UTF-8').encode('foo')
|
105
|
+
# or a converter path cannot be found
|
106
|
+
# e.g. "\x80".force_encoding('ASCII-8BIT').encode('Emacs-Mule')
|
107
|
+
#
|
108
|
+
# Raised by byte <-> char conversions
|
109
|
+
# RangeError: out of char range
|
110
|
+
# e.g. the UTF-16LE emoji: 128169.chr
|
111
|
+
def matching_encoding(string)
|
112
|
+
string = remove_invalid_bytes(string)
|
113
|
+
string.encode(@encoding)
|
114
|
+
rescue Encoding::UndefinedConversionError, Encoding::InvalidByteSequenceError
|
115
|
+
string.encode(@encoding, ENCODE_UNCONVERTABLE_BYTES)
|
116
|
+
rescue Encoding::ConverterNotFoundError
|
117
|
+
string.dup.force_encoding(@encoding).encode(ENCODE_NO_CONVERTER)
|
118
|
+
end
|
119
|
+
|
120
|
+
# Prevents raising ArgumentError
|
121
|
+
if String.method_defined?(:scrub)
|
122
|
+
# https://github.com/ruby/ruby/blob/eeb05e8c11/doc/NEWS-2.1.0#L120-L123
|
123
|
+
# https://github.com/ruby/ruby/blob/v2_1_0/string.c#L8242
|
124
|
+
# https://github.com/hsbt/string-scrub
|
125
|
+
# https://github.com/rubinius/rubinius/blob/v2.5.2/kernel/common/string.rb#L1913-L1972
|
126
|
+
def remove_invalid_bytes(string)
|
127
|
+
string.scrub(REPLACE)
|
128
|
+
end
|
129
|
+
else
|
130
|
+
# http://stackoverflow.com/a/8711118/879854
|
131
|
+
# Loop over chars in a string replacing chars
|
132
|
+
# with invalid encoding, which is a pretty good proxy
|
133
|
+
# for the invalid byte sequence that causes an ArgumentError
|
134
|
+
def remove_invalid_bytes(string)
|
135
|
+
string.chars.map do |char|
|
136
|
+
char.valid_encoding? ? char : REPLACE
|
137
|
+
end.join
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
def detect_source_encoding(string)
|
142
|
+
string.encoding
|
143
|
+
end
|
144
|
+
|
145
|
+
def self.pick_encoding(source_a, source_b)
|
146
|
+
Encoding.compatible?(source_a, source_b) || Encoding.default_external
|
147
|
+
end
|
148
|
+
else
|
149
|
+
|
150
|
+
def self.pick_encoding(_source_a, _source_b)
|
151
|
+
end
|
152
|
+
|
153
|
+
private
|
154
|
+
|
155
|
+
def matching_encoding(string)
|
156
|
+
string
|
157
|
+
end
|
158
|
+
|
159
|
+
def detect_source_encoding(_string)
|
160
|
+
US_ASCII
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
module RSpec
|
2
|
+
module Support
|
3
|
+
# Provides a means to fuzzy-match between two arbitrary objects.
|
4
|
+
# Understands array/hash nesting. Uses `===` or `==` to
|
5
|
+
# perform the matching.
|
6
|
+
module FuzzyMatcher
|
7
|
+
# @api private
|
8
|
+
def self.values_match?(expected, actual)
|
9
|
+
if Hash === actual
|
10
|
+
return hashes_match?(expected, actual) if Hash === expected
|
11
|
+
elsif Array === expected && Enumerable === actual && !(Struct === actual)
|
12
|
+
return arrays_match?(expected, actual.to_a)
|
13
|
+
end
|
14
|
+
|
15
|
+
return true if expected == actual
|
16
|
+
|
17
|
+
begin
|
18
|
+
expected === actual
|
19
|
+
rescue ArgumentError
|
20
|
+
# Some objects, like 0-arg lambdas on 1.9+, raise
|
21
|
+
# ArgumentError for `expected === actual`.
|
22
|
+
false
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
# @private
|
27
|
+
def self.arrays_match?(expected_list, actual_list)
|
28
|
+
return false if expected_list.size != actual_list.size
|
29
|
+
|
30
|
+
expected_list.zip(actual_list).all? do |expected, actual|
|
31
|
+
values_match?(expected, actual)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# @private
|
36
|
+
def self.hashes_match?(expected_hash, actual_hash)
|
37
|
+
return false if expected_hash.size != actual_hash.size
|
38
|
+
|
39
|
+
expected_hash.all? do |expected_key, expected_value|
|
40
|
+
actual_value = actual_hash.fetch(expected_key) { return false }
|
41
|
+
values_match?(expected_value, actual_value)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
private_class_method :arrays_match?, :hashes_match?
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
require 'diff/lcs'
|
2
|
+
require 'diff/lcs/hunk'
|
3
|
+
|
4
|
+
module RSpec
|
5
|
+
module Support
|
6
|
+
# @private
|
7
|
+
class HunkGenerator
|
8
|
+
def initialize(actual, expected)
|
9
|
+
@actual = actual
|
10
|
+
@expected = expected
|
11
|
+
end
|
12
|
+
|
13
|
+
def hunks
|
14
|
+
@file_length_difference = 0
|
15
|
+
@hunks ||= diffs.map do |piece|
|
16
|
+
build_hunk(piece)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def diffs
|
23
|
+
Diff::LCS.diff(expected_lines, actual_lines)
|
24
|
+
end
|
25
|
+
|
26
|
+
def expected_lines
|
27
|
+
@expected.split("\n").map! { |e| e.chomp }
|
28
|
+
end
|
29
|
+
|
30
|
+
def actual_lines
|
31
|
+
@actual.split("\n").map! { |e| e.chomp }
|
32
|
+
end
|
33
|
+
|
34
|
+
def build_hunk(piece)
|
35
|
+
Diff::LCS::Hunk.new(
|
36
|
+
expected_lines, actual_lines, piece, context_lines, @file_length_difference
|
37
|
+
).tap do |h|
|
38
|
+
@file_length_difference = h.file_length_difference
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
def context_lines
|
43
|
+
3
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.8.0/lib/rspec/support/matcher_definition.rb
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
module RSpec
|
2
|
+
module Support
|
3
|
+
# @private
|
4
|
+
def self.matcher_definitions
|
5
|
+
@matcher_definitions ||= []
|
6
|
+
end
|
7
|
+
|
8
|
+
# Used internally to break cyclic dependency between mocks, expectations,
|
9
|
+
# and support. We don't currently have a consistent implementation of our
|
10
|
+
# matchers, though we are considering changing that:
|
11
|
+
# https://github.com/rspec/rspec-mocks/issues/513
|
12
|
+
#
|
13
|
+
# @private
|
14
|
+
def self.register_matcher_definition(&block)
|
15
|
+
matcher_definitions << block
|
16
|
+
end
|
17
|
+
|
18
|
+
# Remove a previously registered matcher. Useful for cleaning up after
|
19
|
+
# yourself in specs.
|
20
|
+
#
|
21
|
+
# @private
|
22
|
+
def self.deregister_matcher_definition(&block)
|
23
|
+
matcher_definitions.delete(block)
|
24
|
+
end
|
25
|
+
|
26
|
+
# @private
|
27
|
+
def self.is_a_matcher?(object)
|
28
|
+
matcher_definitions.any? { |md| md.call(object) }
|
29
|
+
end
|
30
|
+
|
31
|
+
# @api private
|
32
|
+
#
|
33
|
+
# gives a string representation of an object for use in RSpec descriptions
|
34
|
+
def self.rspec_description_for_object(object)
|
35
|
+
if RSpec::Support.is_a_matcher?(object) && object.respond_to?(:description)
|
36
|
+
object.description
|
37
|
+
else
|
38
|
+
object
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,426 @@
|
|
1
|
+
require 'rspec/support'
|
2
|
+
RSpec::Support.require_rspec_support "ruby_features"
|
3
|
+
RSpec::Support.require_rspec_support "matcher_definition"
|
4
|
+
|
5
|
+
module RSpec
|
6
|
+
module Support
|
7
|
+
# Extracts info about the number of arguments and allowed/required
|
8
|
+
# keyword args of a given method.
|
9
|
+
#
|
10
|
+
# @private
|
11
|
+
class MethodSignature # rubocop:disable ClassLength
|
12
|
+
attr_reader :min_non_kw_args, :max_non_kw_args, :optional_kw_args, :required_kw_args
|
13
|
+
|
14
|
+
def initialize(method)
|
15
|
+
@method = method
|
16
|
+
@optional_kw_args = []
|
17
|
+
@required_kw_args = []
|
18
|
+
classify_parameters
|
19
|
+
end
|
20
|
+
|
21
|
+
def non_kw_args_arity_description
|
22
|
+
case max_non_kw_args
|
23
|
+
when min_non_kw_args then min_non_kw_args.to_s
|
24
|
+
when INFINITY then "#{min_non_kw_args} or more"
|
25
|
+
else "#{min_non_kw_args} to #{max_non_kw_args}"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def valid_non_kw_args?(positional_arg_count, optional_max_arg_count=positional_arg_count)
|
30
|
+
return true if positional_arg_count.nil?
|
31
|
+
|
32
|
+
min_non_kw_args <= positional_arg_count &&
|
33
|
+
optional_max_arg_count <= max_non_kw_args
|
34
|
+
end
|
35
|
+
|
36
|
+
def classify_arity(arity=@method.arity)
|
37
|
+
if arity < 0
|
38
|
+
# `~` inverts the one's complement and gives us the
|
39
|
+
# number of required args
|
40
|
+
@min_non_kw_args = ~arity
|
41
|
+
@max_non_kw_args = INFINITY
|
42
|
+
else
|
43
|
+
@min_non_kw_args = arity
|
44
|
+
@max_non_kw_args = arity
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
if RubyFeatures.optional_and_splat_args_supported?
|
49
|
+
def description
|
50
|
+
@description ||= begin
|
51
|
+
parts = []
|
52
|
+
|
53
|
+
unless non_kw_args_arity_description == "0"
|
54
|
+
parts << "arity of #{non_kw_args_arity_description}"
|
55
|
+
end
|
56
|
+
|
57
|
+
if @optional_kw_args.any?
|
58
|
+
parts << "optional keyword args (#{@optional_kw_args.map(&:inspect).join(", ")})"
|
59
|
+
end
|
60
|
+
|
61
|
+
if @required_kw_args.any?
|
62
|
+
parts << "required keyword args (#{@required_kw_args.map(&:inspect).join(", ")})"
|
63
|
+
end
|
64
|
+
|
65
|
+
parts << "any additional keyword args" if @allows_any_kw_args
|
66
|
+
|
67
|
+
parts.join(" and ")
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
def missing_kw_args_from(given_kw_args)
|
72
|
+
@required_kw_args - given_kw_args
|
73
|
+
end
|
74
|
+
|
75
|
+
def invalid_kw_args_from(given_kw_args)
|
76
|
+
return [] if @allows_any_kw_args
|
77
|
+
given_kw_args - @allowed_kw_args
|
78
|
+
end
|
79
|
+
|
80
|
+
def has_kw_args_in?(args)
|
81
|
+
Hash === args.last && could_contain_kw_args?(args)
|
82
|
+
end
|
83
|
+
|
84
|
+
# Without considering what the last arg is, could it
|
85
|
+
# contain keyword arguments?
|
86
|
+
def could_contain_kw_args?(args)
|
87
|
+
return false if args.count <= min_non_kw_args
|
88
|
+
@allows_any_kw_args || @allowed_kw_args.any?
|
89
|
+
end
|
90
|
+
|
91
|
+
def arbitrary_kw_args?
|
92
|
+
@allows_any_kw_args
|
93
|
+
end
|
94
|
+
|
95
|
+
def unlimited_args?
|
96
|
+
@max_non_kw_args == INFINITY
|
97
|
+
end
|
98
|
+
|
99
|
+
def classify_parameters
|
100
|
+
optional_non_kw_args = @min_non_kw_args = 0
|
101
|
+
@allows_any_kw_args = false
|
102
|
+
|
103
|
+
@method.parameters.each do |(type, name)|
|
104
|
+
case type
|
105
|
+
# def foo(a:)
|
106
|
+
when :keyreq then @required_kw_args << name
|
107
|
+
# def foo(a: 1)
|
108
|
+
when :key then @optional_kw_args << name
|
109
|
+
# def foo(**kw_args)
|
110
|
+
when :keyrest then @allows_any_kw_args = true
|
111
|
+
# def foo(a)
|
112
|
+
when :req then @min_non_kw_args += 1
|
113
|
+
# def foo(a = 1)
|
114
|
+
when :opt then optional_non_kw_args += 1
|
115
|
+
# def foo(*a)
|
116
|
+
when :rest then optional_non_kw_args = INFINITY
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
@max_non_kw_args = @min_non_kw_args + optional_non_kw_args
|
121
|
+
@allowed_kw_args = @required_kw_args + @optional_kw_args
|
122
|
+
end
|
123
|
+
else
|
124
|
+
def description
|
125
|
+
"arity of #{non_kw_args_arity_description}"
|
126
|
+
end
|
127
|
+
|
128
|
+
def missing_kw_args_from(_given_kw_args)
|
129
|
+
[]
|
130
|
+
end
|
131
|
+
|
132
|
+
def invalid_kw_args_from(_given_kw_args)
|
133
|
+
[]
|
134
|
+
end
|
135
|
+
|
136
|
+
def has_kw_args_in?(_args)
|
137
|
+
false
|
138
|
+
end
|
139
|
+
|
140
|
+
def could_contain_kw_args?(*)
|
141
|
+
false
|
142
|
+
end
|
143
|
+
|
144
|
+
def arbitrary_kw_args?
|
145
|
+
false
|
146
|
+
end
|
147
|
+
|
148
|
+
def unlimited_args?
|
149
|
+
false
|
150
|
+
end
|
151
|
+
|
152
|
+
alias_method :classify_parameters, :classify_arity
|
153
|
+
end
|
154
|
+
|
155
|
+
INFINITY = 1 / 0.0
|
156
|
+
end
|
157
|
+
|
158
|
+
if RSpec::Support::Ruby.jruby?
|
159
|
+
# JRuby has only partial support for UnboundMethod#parameters, so we fall back on using #arity
|
160
|
+
# https://github.com/jruby/jruby/issues/2816 and https://github.com/jruby/jruby/issues/2817
|
161
|
+
if RubyFeatures.optional_and_splat_args_supported? &&
|
162
|
+
Java::JavaLang::String.instance_method(:char_at).parameters == []
|
163
|
+
|
164
|
+
class MethodSignature < remove_const(:MethodSignature)
|
165
|
+
private
|
166
|
+
|
167
|
+
def classify_parameters
|
168
|
+
super
|
169
|
+
if (arity = @method.arity) != 0 && @method.parameters.empty?
|
170
|
+
classify_arity(arity)
|
171
|
+
end
|
172
|
+
end
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
# JRuby used to always report -1 arity for Java proxy methods.
|
177
|
+
# The workaround essentially makes use of Java's introspection to figure
|
178
|
+
# out matching methods (which could be more than one partly because Java
|
179
|
+
# supports multiple overloads, and partly because JRuby introduces
|
180
|
+
# aliases to make method names look more Rubyesque). If there is only a
|
181
|
+
# single match, we can use that methods arity directly instead of the
|
182
|
+
# default -1 arity.
|
183
|
+
#
|
184
|
+
# This workaround only works for Java proxy methods, and in order to
|
185
|
+
# support regular methods and blocks, we need to be careful about calling
|
186
|
+
# owner and java_class as they might not be available
|
187
|
+
if Java::JavaLang::String.instance_method(:char_at).arity == -1
|
188
|
+
class MethodSignature < remove_const(:MethodSignature)
|
189
|
+
private
|
190
|
+
|
191
|
+
def classify_parameters
|
192
|
+
super
|
193
|
+
return unless @method.arity == -1
|
194
|
+
return unless @method.respond_to?(:owner)
|
195
|
+
return unless @method.owner.respond_to?(:java_class)
|
196
|
+
java_instance_methods = @method.owner.java_class.java_instance_methods
|
197
|
+
compatible_overloads = java_instance_methods.select do |java_method|
|
198
|
+
@method == @method.owner.instance_method(java_method.name)
|
199
|
+
end
|
200
|
+
if compatible_overloads.size == 1
|
201
|
+
classify_arity(compatible_overloads.first.arity)
|
202
|
+
end
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
# Encapsulates expectations about the number of arguments and
|
209
|
+
# allowed/required keyword args of a given method.
|
210
|
+
#
|
211
|
+
# @api private
|
212
|
+
class MethodSignatureExpectation
|
213
|
+
def initialize
|
214
|
+
@min_count = nil
|
215
|
+
@max_count = nil
|
216
|
+
@keywords = []
|
217
|
+
|
218
|
+
@expect_unlimited_arguments = false
|
219
|
+
@expect_arbitrary_keywords = false
|
220
|
+
end
|
221
|
+
|
222
|
+
attr_reader :min_count, :max_count, :keywords
|
223
|
+
|
224
|
+
attr_accessor :expect_unlimited_arguments, :expect_arbitrary_keywords
|
225
|
+
|
226
|
+
def max_count=(number)
|
227
|
+
raise ArgumentError, 'must be a non-negative integer or nil' \
|
228
|
+
unless number.nil? || (number.is_a?(Integer) && number >= 0)
|
229
|
+
|
230
|
+
@max_count = number
|
231
|
+
end
|
232
|
+
|
233
|
+
def min_count=(number)
|
234
|
+
raise ArgumentError, 'must be a non-negative integer or nil' \
|
235
|
+
unless number.nil? || (number.is_a?(Integer) && number >= 0)
|
236
|
+
|
237
|
+
@min_count = number
|
238
|
+
end
|
239
|
+
|
240
|
+
def empty?
|
241
|
+
@min_count.nil? &&
|
242
|
+
@keywords.to_a.empty? &&
|
243
|
+
!@expect_arbitrary_keywords &&
|
244
|
+
!@expect_unlimited_arguments
|
245
|
+
end
|
246
|
+
|
247
|
+
def keywords=(values)
|
248
|
+
@keywords = values.to_a || []
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
# Deals with the slightly different semantics of block arguments.
|
253
|
+
# For methods, arguments are required unless a default value is provided.
|
254
|
+
# For blocks, arguments are optional, even if no default value is provided.
|
255
|
+
#
|
256
|
+
# However, we want to treat block args as required since you virtually
|
257
|
+
# always want to pass a value for each received argument and our
|
258
|
+
# `and_yield` has treated block args as required for many years.
|
259
|
+
#
|
260
|
+
# @api private
|
261
|
+
class BlockSignature < MethodSignature
|
262
|
+
if RubyFeatures.optional_and_splat_args_supported?
|
263
|
+
def classify_parameters
|
264
|
+
super
|
265
|
+
@min_non_kw_args = @max_non_kw_args unless @max_non_kw_args == INFINITY
|
266
|
+
end
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
270
|
+
# Abstract base class for signature verifiers.
|
271
|
+
#
|
272
|
+
# @api private
|
273
|
+
class MethodSignatureVerifier
|
274
|
+
attr_reader :non_kw_args, :kw_args, :min_non_kw_args, :max_non_kw_args
|
275
|
+
|
276
|
+
def initialize(signature, args=[])
|
277
|
+
@signature = signature
|
278
|
+
@non_kw_args, @kw_args = split_args(*args)
|
279
|
+
@min_non_kw_args = @max_non_kw_args = @non_kw_args
|
280
|
+
@arbitrary_kw_args = @unlimited_args = false
|
281
|
+
end
|
282
|
+
|
283
|
+
def with_expectation(expectation) # rubocop:disable MethodLength
|
284
|
+
return self unless MethodSignatureExpectation === expectation
|
285
|
+
|
286
|
+
if expectation.empty?
|
287
|
+
@min_non_kw_args = @max_non_kw_args = @non_kw_args = nil
|
288
|
+
@kw_args = []
|
289
|
+
else
|
290
|
+
@min_non_kw_args = @non_kw_args = expectation.min_count || 0
|
291
|
+
@max_non_kw_args = expectation.max_count || @min_non_kw_args
|
292
|
+
|
293
|
+
if RubyFeatures.optional_and_splat_args_supported?
|
294
|
+
@unlimited_args = expectation.expect_unlimited_arguments
|
295
|
+
else
|
296
|
+
@unlimited_args = false
|
297
|
+
end
|
298
|
+
|
299
|
+
if RubyFeatures.kw_args_supported?
|
300
|
+
@kw_args = expectation.keywords
|
301
|
+
@arbitrary_kw_args = expectation.expect_arbitrary_keywords
|
302
|
+
else
|
303
|
+
@kw_args = []
|
304
|
+
@arbitrary_kw_args = false
|
305
|
+
end
|
306
|
+
end
|
307
|
+
|
308
|
+
self
|
309
|
+
end
|
310
|
+
|
311
|
+
def valid?
|
312
|
+
missing_kw_args.empty? &&
|
313
|
+
invalid_kw_args.empty? &&
|
314
|
+
valid_non_kw_args? &&
|
315
|
+
arbitrary_kw_args? &&
|
316
|
+
unlimited_args?
|
317
|
+
end
|
318
|
+
|
319
|
+
def error_message
|
320
|
+
if missing_kw_args.any?
|
321
|
+
"Missing required keyword arguments: %s" % [
|
322
|
+
missing_kw_args.join(", ")
|
323
|
+
]
|
324
|
+
elsif invalid_kw_args.any?
|
325
|
+
"Invalid keyword arguments provided: %s" % [
|
326
|
+
invalid_kw_args.join(", ")
|
327
|
+
]
|
328
|
+
elsif !valid_non_kw_args?
|
329
|
+
"Wrong number of arguments. Expected %s, got %s." % [
|
330
|
+
@signature.non_kw_args_arity_description,
|
331
|
+
non_kw_args
|
332
|
+
]
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
336
|
+
private
|
337
|
+
|
338
|
+
def valid_non_kw_args?
|
339
|
+
@signature.valid_non_kw_args?(min_non_kw_args, max_non_kw_args)
|
340
|
+
end
|
341
|
+
|
342
|
+
def missing_kw_args
|
343
|
+
@signature.missing_kw_args_from(kw_args)
|
344
|
+
end
|
345
|
+
|
346
|
+
def invalid_kw_args
|
347
|
+
@signature.invalid_kw_args_from(kw_args)
|
348
|
+
end
|
349
|
+
|
350
|
+
def arbitrary_kw_args?
|
351
|
+
!@arbitrary_kw_args || @signature.arbitrary_kw_args?
|
352
|
+
end
|
353
|
+
|
354
|
+
def unlimited_args?
|
355
|
+
!@unlimited_args || @signature.unlimited_args?
|
356
|
+
end
|
357
|
+
|
358
|
+
def split_args(*args)
|
359
|
+
kw_args = if @signature.has_kw_args_in?(args)
|
360
|
+
args.pop.keys
|
361
|
+
else
|
362
|
+
[]
|
363
|
+
end
|
364
|
+
|
365
|
+
[args.length, kw_args]
|
366
|
+
end
|
367
|
+
end
|
368
|
+
|
369
|
+
# Figures out wether a given method can accept various arguments.
|
370
|
+
# Surprisingly non-trivial.
|
371
|
+
#
|
372
|
+
# @private
|
373
|
+
StrictSignatureVerifier = MethodSignatureVerifier
|
374
|
+
|
375
|
+
# Allows matchers to be used instead of providing keyword arguments. In
|
376
|
+
# practice, when this happens only the arity of the method is verified.
|
377
|
+
#
|
378
|
+
# @private
|
379
|
+
class LooseSignatureVerifier < MethodSignatureVerifier
|
380
|
+
private
|
381
|
+
|
382
|
+
def split_args(*args)
|
383
|
+
if RSpec::Support.is_a_matcher?(args.last) && @signature.could_contain_kw_args?(args)
|
384
|
+
args.pop
|
385
|
+
@signature = SignatureWithKeywordArgumentsMatcher.new(@signature)
|
386
|
+
end
|
387
|
+
|
388
|
+
super(*args)
|
389
|
+
end
|
390
|
+
|
391
|
+
# If a matcher is used in a signature in place of keyword arguments, all
|
392
|
+
# keyword argument validation needs to be skipped since the matcher is
|
393
|
+
# opaque.
|
394
|
+
#
|
395
|
+
# Instead, keyword arguments will be validated when the method is called
|
396
|
+
# and they are actually known.
|
397
|
+
#
|
398
|
+
# @private
|
399
|
+
class SignatureWithKeywordArgumentsMatcher
|
400
|
+
def initialize(signature)
|
401
|
+
@signature = signature
|
402
|
+
end
|
403
|
+
|
404
|
+
def missing_kw_args_from(_kw_args)
|
405
|
+
[]
|
406
|
+
end
|
407
|
+
|
408
|
+
def invalid_kw_args_from(_kw_args)
|
409
|
+
[]
|
410
|
+
end
|
411
|
+
|
412
|
+
def non_kw_args_arity_description
|
413
|
+
@signature.non_kw_args_arity_description
|
414
|
+
end
|
415
|
+
|
416
|
+
def valid_non_kw_args?(*args)
|
417
|
+
@signature.valid_non_kw_args?(*args)
|
418
|
+
end
|
419
|
+
|
420
|
+
def has_kw_args_in?(args)
|
421
|
+
@signature.has_kw_args_in?(args)
|
422
|
+
end
|
423
|
+
end
|
424
|
+
end
|
425
|
+
end
|
426
|
+
end
|