qiita_org 0.1.32 → 0.1.38
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -2
- data/Gemfile.lock +15 -15
- data/lib/qiita_org.rb +18 -36
- data/lib/qiita_org/access_qiita.rb +0 -2
- data/lib/qiita_org/all.rb +4 -4
- data/lib/qiita_org/base.rb +20 -0
- data/lib/qiita_org/config.rb +0 -2
- data/lib/qiita_org/error_message.rb +15 -10
- data/lib/qiita_org/get.rb +0 -4
- data/lib/qiita_org/get_multiple_files.rb +1 -4
- data/lib/qiita_org/get_template.rb +0 -33
- data/lib/qiita_org/list.rb +0 -5
- data/lib/qiita_org/md_converter_for_image.rb +1 -1
- data/lib/qiita_org/{file_open.rb → old_programs/file_open.rb} +0 -0
- data/lib/qiita_org/post.rb +12 -21
- data/lib/qiita_org/template.org +1 -1
- data/lib/qiita_org/upload.rb +13 -30
- data/lib/qiita_org/version.rb +1 -1
- data/tests/test.org +2 -1
- metadata +3 -2436
- data/.bandle/ruby/2.7.0/bin/htmldiff +0 -29
- data/.bandle/ruby/2.7.0/bin/ldiff +0 -29
- data/.bandle/ruby/2.7.0/bin/qiita_org +0 -27
- data/.bandle/ruby/2.7.0/bin/rake +0 -27
- data/.bandle/ruby/2.7.0/bin/rspec +0 -27
- data/.bandle/ruby/2.7.0/bin/thor +0 -27
- data/.bandle/ruby/2.7.0/cache/diff-lcs-1.4.4.gem +0 -0
- data/.bandle/ruby/2.7.0/cache/rake-12.3.3.gem +0 -0
- data/.bandle/ruby/2.7.0/cache/rspec-3.9.0.gem +0 -0
- data/.bandle/ruby/2.7.0/cache/rspec-core-3.9.2.gem +0 -0
- data/.bandle/ruby/2.7.0/cache/rspec-expectations-3.9.2.gem +0 -0
- data/.bandle/ruby/2.7.0/cache/rspec-mocks-3.9.1.gem +0 -0
- data/.bandle/ruby/2.7.0/cache/rspec-support-3.9.3.gem +0 -0
- data/.bandle/ruby/2.7.0/cache/thor-1.0.1.gem +0 -0
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/.rspec +0 -1
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/Code-of-Conduct.md +0 -74
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/Contributing.md +0 -118
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/History.md +0 -319
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/License.md +0 -39
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/Manifest.txt +0 -45
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/README.rdoc +0 -84
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/Rakefile +0 -74
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/autotest/discover.rb +0 -3
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/bin/htmldiff +0 -35
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/bin/ldiff +0 -9
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/docs/COPYING.txt +0 -339
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/docs/artistic.txt +0 -127
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff-lcs.rb +0 -3
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs.rb +0 -739
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/array.rb +0 -7
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/backports.rb +0 -9
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/block.rb +0 -37
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/callbacks.rb +0 -325
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/change.rb +0 -174
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/htmldiff.rb +0 -150
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/hunk.rb +0 -358
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/internals.rb +0 -304
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/ldiff.rb +0 -171
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/string.rb +0 -5
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/change_spec.rb +0 -89
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/diff_spec.rb +0 -51
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/aX +0 -1
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/bXaX +0 -1
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/ds1.csv +0 -50
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/ds2.csv +0 -51
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff +0 -4
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff-c +0 -7
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff-e +0 -3
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff-f +0 -3
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff-u +0 -5
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/hunk_spec.rb +0 -83
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/issues_spec.rb +0 -154
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/lcs_spec.rb +0 -56
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/ldiff_spec.rb +0 -87
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/patch_spec.rb +0 -416
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/sdiff_spec.rb +0 -214
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/spec_helper.rb +0 -375
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/traverse_balanced_spec.rb +0 -310
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/traverse_sequences_spec.rb +0 -139
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/CONTRIBUTING.rdoc +0 -43
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/Gemfile +0 -3
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/History.rdoc +0 -2344
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/MIT-LICENSE +0 -21
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/README.rdoc +0 -156
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/Rakefile +0 -41
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/azure-pipelines.yml +0 -11
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/bin/bundle +0 -105
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/bin/console +0 -7
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/bin/rake +0 -29
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/bin/rdoc +0 -29
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/bin/rubocop +0 -29
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/bin/setup +0 -6
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/command_line_usage.rdoc +0 -158
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/example/Rakefile1 +0 -38
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/example/Rakefile2 +0 -35
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/example/a.c +0 -6
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/example/b.c +0 -6
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/example/main.c +0 -11
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/glossary.rdoc +0 -42
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/jamis.rb +0 -592
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/proto_rake.rdoc +0 -127
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/rake.1 +0 -156
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/rakefile.rdoc +0 -622
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/rational.rdoc +0 -151
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/exe/rake +0 -27
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake.rb +0 -71
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/application.rb +0 -824
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/backtrace.rb +0 -24
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/clean.rb +0 -78
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/cloneable.rb +0 -17
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/cpu_counter.rb +0 -107
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/default_loader.rb +0 -15
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/dsl_definition.rb +0 -195
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/early_time.rb +0 -22
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/ext/core.rb +0 -26
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/ext/string.rb +0 -176
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_creation_task.rb +0 -25
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_list.rb +0 -435
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_task.rb +0 -54
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_utils.rb +0 -137
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_utils_ext.rb +0 -145
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/invocation_chain.rb +0 -57
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/invocation_exception_mixin.rb +0 -17
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/late_time.rb +0 -18
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/linked_list.rb +0 -112
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/loaders/makefile.rb +0 -54
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/multi_task.rb +0 -14
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/name_space.rb +0 -38
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/packagetask.rb +0 -207
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/phony.rb +0 -16
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/private_reader.rb +0 -21
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/promise.rb +0 -100
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/pseudo_status.rb +0 -30
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/rake_module.rb +0 -67
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/rake_test_loader.rb +0 -27
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/rule_recursion_overflow_error.rb +0 -20
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/scope.rb +0 -43
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/task.rb +0 -413
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/task_argument_error.rb +0 -8
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/task_arguments.rb +0 -109
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/task_manager.rb +0 -324
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/tasklib.rb +0 -12
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/testtask.rb +0 -224
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/thread_history_display.rb +0 -49
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/thread_pool.rb +0 -163
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/trace_output.rb +0 -23
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/version.rb +0 -10
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/win32.rb +0 -51
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/rake.gemspec +0 -42
- data/.bandle/ruby/2.7.0/gems/rspec-3.9.0/LICENSE.md +0 -27
- data/.bandle/ruby/2.7.0/gems/rspec-3.9.0/README.md +0 -43
- data/.bandle/ruby/2.7.0/gems/rspec-3.9.0/lib/rspec.rb +0 -3
- data/.bandle/ruby/2.7.0/gems/rspec-3.9.0/lib/rspec/version.rb +0 -5
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/.document +0 -5
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/.yardopts +0 -8
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/Changelog.md +0 -2291
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/LICENSE.md +0 -26
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/README.md +0 -384
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/exe/rspec +0 -4
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/autorun.rb +0 -3
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core.rb +0 -186
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/backtrace_formatter.rb +0 -65
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/coordinator.rb +0 -62
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/example_minimizer.rb +0 -173
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/fork_runner.rb +0 -135
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/server.rb +0 -61
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/shell_command.rb +0 -126
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/shell_runner.rb +0 -73
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/utilities.rb +0 -58
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/configuration.rb +0 -2363
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/configuration_options.rb +0 -233
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/did_you_mean.rb +0 -46
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/drb.rb +0 -113
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/dsl.rb +0 -98
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/example.rb +0 -656
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/example_group.rb +0 -900
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/example_status_persister.rb +0 -235
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/filter_manager.rb +0 -231
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/flat_map.rb +0 -20
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters.rb +0 -273
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/base_bisect_formatter.rb +0 -45
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/base_formatter.rb +0 -70
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/base_text_formatter.rb +0 -75
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/bisect_drb_formatter.rb +0 -29
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/bisect_progress_formatter.rb +0 -157
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/console_codes.rb +0 -68
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/deprecation_formatter.rb +0 -223
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/documentation_formatter.rb +0 -102
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/exception_presenter.rb +0 -511
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/failure_list_formatter.rb +0 -23
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/fallback_message_formatter.rb +0 -28
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/helpers.rb +0 -110
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/html_formatter.rb +0 -153
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/html_printer.rb +0 -414
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/html_snippet_extractor.rb +0 -120
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/json_formatter.rb +0 -102
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/profile_formatter.rb +0 -68
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/progress_formatter.rb +0 -29
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/protocol.rb +0 -182
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/snippet_extractor.rb +0 -134
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/syntax_highlighter.rb +0 -91
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/hooks.rb +0 -641
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/invocations.rb +0 -87
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/memoized_helpers.rb +0 -554
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/metadata.rb +0 -498
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/metadata_filter.rb +0 -255
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/minitest_assertions_adapter.rb +0 -31
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/flexmock.rb +0 -31
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/mocha.rb +0 -57
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/null.rb +0 -14
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/rr.rb +0 -31
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/rspec.rb +0 -32
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/notifications.rb +0 -521
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/option_parser.rb +0 -316
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/ordering.rb +0 -158
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/output_wrapper.rb +0 -29
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/pending.rb +0 -165
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/profiler.rb +0 -34
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/project_initializer.rb +0 -48
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/project_initializer/.rspec +0 -1
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/project_initializer/spec/spec_helper.rb +0 -100
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/rake_task.rb +0 -188
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/reporter.rb +0 -265
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/ruby_project.rb +0 -53
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/runner.rb +0 -204
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/sandbox.rb +0 -37
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/set.rb +0 -54
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/shared_context.rb +0 -55
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/shared_example_group.rb +0 -271
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/shell_escape.rb +0 -49
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/test_unit_assertions_adapter.rb +0 -30
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/version.rb +0 -9
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/warnings.rb +0 -40
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/world.rb +0 -276
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/.document +0 -5
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/.yardopts +0 -6
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/Changelog.md +0 -1191
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/LICENSE.md +0 -25
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/README.md +0 -320
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations.rb +0 -82
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/block_snippet_extractor.rb +0 -253
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/configuration.rb +0 -215
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/expectation_target.rb +0 -127
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/fail_with.rb +0 -39
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/failure_aggregator.rb +0 -194
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/handler.rb +0 -170
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/minitest_integration.rb +0 -58
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/syntax.rb +0 -132
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/version.rb +0 -8
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers.rb +0 -1038
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/aliased_matcher.rb +0 -116
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in.rb +0 -52
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/all.rb +0 -86
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/base_matcher.rb +0 -193
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be.rb +0 -288
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_between.rb +0 -77
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_instance_of.rb +0 -26
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_kind_of.rb +0 -20
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_within.rb +0 -72
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/change.rb +0 -428
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/compound.rb +0 -276
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/contain_exactly.rb +0 -302
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/cover.rb +0 -24
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/eq.rb +0 -40
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/eql.rb +0 -34
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/equal.rb +0 -81
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/exist.rb +0 -90
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/has.rb +0 -103
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/have_attributes.rb +0 -114
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/include.rb +0 -149
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/match.rb +0 -106
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/operators.rb +0 -128
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/output.rb +0 -200
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/raise_error.rb +0 -230
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/respond_to.rb +0 -199
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/satisfy.rb +0 -60
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/start_or_end_with.rb +0 -94
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/throw_symbol.rb +0 -132
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/yield.rb +0 -441
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/composable.rb +0 -171
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/dsl.rb +0 -540
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/english_phrasing.rb +0 -58
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +0 -82
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/fail_matchers.rb +0 -42
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/generated_descriptions.rb +0 -41
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/matcher_delegator.rb +0 -35
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/matcher_protocol.rb +0 -99
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/.document +0 -5
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/.yardopts +0 -6
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/Changelog.md +0 -1133
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/LICENSE.md +0 -25
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/README.md +0 -463
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks.rb +0 -130
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance.rb +0 -11
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/chain.rb +0 -111
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/error_generator.rb +0 -31
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb +0 -31
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expectation_chain.rb +0 -50
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/message_chains.rb +0 -83
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/proxy.rb +0 -116
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/recorder.rb +0 -294
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/stub_chain.rb +0 -51
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/stub_chain_chain.rb +0 -23
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/argument_list_matcher.rb +0 -100
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/argument_matchers.rb +0 -322
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/configuration.rb +0 -212
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/error_generator.rb +0 -369
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/example_methods.rb +0 -434
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/instance_method_stasher.rb +0 -146
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/marshal_extension.rb +0 -41
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/expectation_customization.rb +0 -20
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/have_received.rb +0 -134
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/receive.rb +0 -132
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/receive_message_chain.rb +0 -82
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/receive_messages.rb +0 -77
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/message_chain.rb +0 -87
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/message_expectation.rb +0 -751
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/method_double.rb +0 -287
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/method_reference.rb +0 -202
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/minitest_integration.rb +0 -68
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/mutate_const.rb +0 -339
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/object_reference.rb +0 -149
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/order_group.rb +0 -81
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/proxy.rb +0 -503
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/space.rb +0 -238
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/standalone.rb +0 -3
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/syntax.rb +0 -325
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/targets.rb +0 -124
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/test_double.rb +0 -171
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/verifying_double.rb +0 -129
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/verifying_message_expectation.rb +0 -54
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/verifying_proxy.rb +0 -220
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/version.rb +0 -9
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/Changelog.md +0 -302
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/LICENSE.md +0 -23
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/README.md +0 -40
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support.rb +0 -149
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/caller_filter.rb +0 -83
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/comparable_version.rb +0 -46
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/differ.rb +0 -215
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/directory_maker.rb +0 -63
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/encoded_string.rb +0 -161
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/fuzzy_matcher.rb +0 -48
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/hunk_generator.rb +0 -47
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/matcher_definition.rb +0 -42
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/method_signature_verifier.rb +0 -438
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/mutex.rb +0 -73
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/object_formatter.rb +0 -275
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/recursive_const_methods.rb +0 -76
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/reentrant_mutex.rb +0 -61
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/ruby_features.rb +0 -190
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/source.rb +0 -75
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/source/location.rb +0 -21
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/source/node.rb +0 -110
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/source/token.rb +0 -87
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec.rb +0 -81
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/deprecation_helpers.rb +0 -64
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/formatting_support.rb +0 -9
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/in_sub_process.rb +0 -69
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/library_wide_checks.rb +0 -150
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/shell_out.rb +0 -89
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/stderr_splitter.rb +0 -75
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/string_matcher.rb +0 -46
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/with_isolated_directory.rb +0 -13
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/with_isolated_stderr.rb +0 -13
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/version.rb +0 -7
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/warnings.rb +0 -39
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/with_keywords_when_needed.rb +0 -33
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/.document +0 -5
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/CHANGELOG.md +0 -220
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/CONTRIBUTING.md +0 -15
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/LICENSE.md +0 -20
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/README.md +0 -51
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/bin/thor +0 -6
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor.rb +0 -517
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/actions.rb +0 -336
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/actions/create_file.rb +0 -104
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/actions/create_link.rb +0 -61
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/actions/directory.rb +0 -108
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/actions/empty_directory.rb +0 -143
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/actions/file_manipulation.rb +0 -373
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/actions/inject_into_file.rb +0 -120
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/base.rb +0 -699
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/command.rb +0 -142
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/core_ext/hash_with_indifferent_access.rb +0 -97
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/error.rb +0 -110
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/group.rb +0 -281
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/invocation.rb +0 -178
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/line_editor.rb +0 -17
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/line_editor/basic.rb +0 -37
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/line_editor/readline.rb +0 -88
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/nested_context.rb +0 -29
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/parser.rb +0 -4
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/parser/argument.rb +0 -70
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/parser/arguments.rb +0 -175
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/parser/option.rb +0 -159
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/parser/options.rb +0 -236
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/rake_compat.rb +0 -72
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/runner.rb +0 -325
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/shell.rb +0 -81
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/shell/basic.rb +0 -491
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/shell/color.rb +0 -153
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/shell/html.rb +0 -126
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/util.rb +0 -284
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/version.rb +0 -3
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/thor.gemspec +0 -28
- data/.bandle/ruby/2.7.0/specifications/diff-lcs-1.4.4.gemspec +0 -50
- data/.bandle/ruby/2.7.0/specifications/rake-12.3.3.gemspec +0 -43
- data/.bandle/ruby/2.7.0/specifications/rspec-3.9.0.gemspec +0 -39
- data/.bandle/ruby/2.7.0/specifications/rspec-core-3.9.2.gemspec +0 -53
- data/.bandle/ruby/2.7.0/specifications/rspec-expectations-3.9.2.gemspec +0 -44
- data/.bandle/ruby/2.7.0/specifications/rspec-mocks-3.9.1.gemspec +0 -44
- data/.bandle/ruby/2.7.0/specifications/rspec-support-3.9.3.gemspec +0 -36
- data/.bandle/ruby/2.7.0/specifications/thor-1.0.1.gemspec +0 -34
- data/lib/qiita_org/hoge.txt +0 -3
@@ -1,441 +0,0 @@
|
|
1
|
-
RSpec::Support.require_rspec_support 'method_signature_verifier'
|
2
|
-
|
3
|
-
module RSpec
|
4
|
-
module Matchers
|
5
|
-
module BuiltIn
|
6
|
-
# @private
|
7
|
-
# Object that is yielded to `expect` when one of the
|
8
|
-
# yield matchers is used. Provides information about
|
9
|
-
# the yield behavior of the object-under-test.
|
10
|
-
class YieldProbe
|
11
|
-
def self.probe(block, &callback)
|
12
|
-
probe = new(block, &callback)
|
13
|
-
return probe unless probe.has_block?
|
14
|
-
probe.probe
|
15
|
-
end
|
16
|
-
|
17
|
-
attr_accessor :num_yields, :yielded_args
|
18
|
-
|
19
|
-
def initialize(block, &callback)
|
20
|
-
@block = block
|
21
|
-
@callback = callback || Proc.new {}
|
22
|
-
@used = false
|
23
|
-
self.num_yields = 0
|
24
|
-
self.yielded_args = []
|
25
|
-
end
|
26
|
-
|
27
|
-
def has_block?
|
28
|
-
Proc === @block
|
29
|
-
end
|
30
|
-
|
31
|
-
def probe
|
32
|
-
assert_valid_expect_block!
|
33
|
-
@block.call(self)
|
34
|
-
assert_used!
|
35
|
-
self
|
36
|
-
end
|
37
|
-
|
38
|
-
def to_proc
|
39
|
-
@used = true
|
40
|
-
|
41
|
-
probe = self
|
42
|
-
callback = @callback
|
43
|
-
Proc.new do |*args|
|
44
|
-
probe.num_yields += 1
|
45
|
-
probe.yielded_args << args
|
46
|
-
callback.call(*args)
|
47
|
-
nil # to indicate the block does not return a meaningful value
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
def single_yield_args
|
52
|
-
yielded_args.first
|
53
|
-
end
|
54
|
-
|
55
|
-
def yielded_once?(matcher_name)
|
56
|
-
case num_yields
|
57
|
-
when 1 then true
|
58
|
-
when 0 then false
|
59
|
-
else
|
60
|
-
raise "The #{matcher_name} matcher is not designed to be used with a " \
|
61
|
-
'method that yields multiple times. Use the yield_successive_args ' \
|
62
|
-
'matcher for that case.'
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
def assert_used!
|
67
|
-
return if @used
|
68
|
-
raise 'You must pass the argument yielded to your expect block on ' \
|
69
|
-
'to the method-under-test as a block. It acts as a probe that ' \
|
70
|
-
'allows the matcher to detect whether or not the method-under-test ' \
|
71
|
-
'yields, and, if so, how many times, and what the yielded arguments ' \
|
72
|
-
'are.'
|
73
|
-
end
|
74
|
-
|
75
|
-
if RUBY_VERSION.to_f > 1.8
|
76
|
-
def assert_valid_expect_block!
|
77
|
-
block_signature = RSpec::Support::BlockSignature.new(@block)
|
78
|
-
return if RSpec::Support::StrictSignatureVerifier.new(block_signature, [self]).valid?
|
79
|
-
raise 'Your expect block must accept an argument to be used with this ' \
|
80
|
-
'matcher. Pass the argument as a block on to the method you are testing.'
|
81
|
-
end
|
82
|
-
else
|
83
|
-
# :nocov:
|
84
|
-
# On 1.8.7, `lambda { }.arity` and `lambda { |*a| }.arity` both return -1,
|
85
|
-
# so we can't distinguish between accepting no args and an arg splat.
|
86
|
-
# It's OK to skip, this, though; it just provides a nice error message
|
87
|
-
# when the user forgets to accept an arg in their block. They'll still get
|
88
|
-
# the `assert_used!` error message from above, which is sufficient.
|
89
|
-
def assert_valid_expect_block!
|
90
|
-
# nothing to do
|
91
|
-
end
|
92
|
-
# :nocov:
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
|
-
# @api private
|
97
|
-
# Provides the implementation for `yield_control`.
|
98
|
-
# Not intended to be instantiated directly.
|
99
|
-
class YieldControl < BaseMatcher
|
100
|
-
def initialize
|
101
|
-
@expectation_type = @expected_yields_count = nil
|
102
|
-
end
|
103
|
-
|
104
|
-
# @api public
|
105
|
-
# Specifies that the method is expected to yield once.
|
106
|
-
def once
|
107
|
-
exactly(1)
|
108
|
-
self
|
109
|
-
end
|
110
|
-
|
111
|
-
# @api public
|
112
|
-
# Specifies that the method is expected to yield twice.
|
113
|
-
def twice
|
114
|
-
exactly(2)
|
115
|
-
self
|
116
|
-
end
|
117
|
-
|
118
|
-
# @api public
|
119
|
-
# Specifies that the method is expected to yield thrice.
|
120
|
-
def thrice
|
121
|
-
exactly(3)
|
122
|
-
self
|
123
|
-
end
|
124
|
-
|
125
|
-
# @api public
|
126
|
-
# Specifies that the method is expected to yield the given number of times.
|
127
|
-
def exactly(number)
|
128
|
-
set_expected_yields_count(:==, number)
|
129
|
-
self
|
130
|
-
end
|
131
|
-
|
132
|
-
# @api public
|
133
|
-
# Specifies the maximum number of times the method is expected to yield
|
134
|
-
def at_most(number)
|
135
|
-
set_expected_yields_count(:<=, number)
|
136
|
-
self
|
137
|
-
end
|
138
|
-
|
139
|
-
# @api public
|
140
|
-
# Specifies the minimum number of times the method is expected to yield
|
141
|
-
def at_least(number)
|
142
|
-
set_expected_yields_count(:>=, number)
|
143
|
-
self
|
144
|
-
end
|
145
|
-
|
146
|
-
# @api public
|
147
|
-
# No-op. Provides syntactic sugar.
|
148
|
-
def times
|
149
|
-
self
|
150
|
-
end
|
151
|
-
|
152
|
-
# @private
|
153
|
-
def matches?(block)
|
154
|
-
@probe = YieldProbe.probe(block)
|
155
|
-
return false unless @probe.has_block?
|
156
|
-
return @probe.num_yields > 0 unless @expectation_type
|
157
|
-
@probe.num_yields.__send__(@expectation_type, @expected_yields_count)
|
158
|
-
end
|
159
|
-
|
160
|
-
# @private
|
161
|
-
def does_not_match?(block)
|
162
|
-
!matches?(block) && @probe.has_block?
|
163
|
-
end
|
164
|
-
|
165
|
-
# @api private
|
166
|
-
# @return [String]
|
167
|
-
def failure_message
|
168
|
-
'expected given block to yield control' + failure_reason
|
169
|
-
end
|
170
|
-
|
171
|
-
# @api private
|
172
|
-
# @return [String]
|
173
|
-
def failure_message_when_negated
|
174
|
-
'expected given block not to yield control' + failure_reason
|
175
|
-
end
|
176
|
-
|
177
|
-
# @private
|
178
|
-
def supports_block_expectations?
|
179
|
-
true
|
180
|
-
end
|
181
|
-
|
182
|
-
private
|
183
|
-
|
184
|
-
def set_expected_yields_count(relativity, n)
|
185
|
-
raise "Multiple count constraints are not supported" if @expectation_type
|
186
|
-
|
187
|
-
@expectation_type = relativity
|
188
|
-
@expected_yields_count = count_constraint_to_number(n)
|
189
|
-
end
|
190
|
-
|
191
|
-
def count_constraint_to_number(n)
|
192
|
-
case n
|
193
|
-
when Numeric then n
|
194
|
-
when :once then 1
|
195
|
-
when :twice then 2
|
196
|
-
when :thrice then 3
|
197
|
-
else
|
198
|
-
raise ArgumentError, "Expected a number, :once, :twice or :thrice," \
|
199
|
-
" but got #{n}"
|
200
|
-
end
|
201
|
-
end
|
202
|
-
|
203
|
-
def failure_reason
|
204
|
-
return ' but was not a block' unless @probe.has_block?
|
205
|
-
"#{human_readable_expectation_type}#{human_readable_count(@expected_yields_count)}" \
|
206
|
-
" but yielded#{human_readable_count(@probe.num_yields)}"
|
207
|
-
end
|
208
|
-
|
209
|
-
def human_readable_expectation_type
|
210
|
-
case @expectation_type
|
211
|
-
when :<= then ' at most'
|
212
|
-
when :>= then ' at least'
|
213
|
-
else ''
|
214
|
-
end
|
215
|
-
end
|
216
|
-
|
217
|
-
def human_readable_count(count)
|
218
|
-
case count
|
219
|
-
when nil then ''
|
220
|
-
when 1 then ' once'
|
221
|
-
when 2 then ' twice'
|
222
|
-
else " #{count} times"
|
223
|
-
end
|
224
|
-
end
|
225
|
-
end
|
226
|
-
|
227
|
-
# @api private
|
228
|
-
# Provides the implementation for `yield_with_no_args`.
|
229
|
-
# Not intended to be instantiated directly.
|
230
|
-
class YieldWithNoArgs < BaseMatcher
|
231
|
-
# @private
|
232
|
-
def matches?(block)
|
233
|
-
@probe = YieldProbe.probe(block)
|
234
|
-
return false unless @probe.has_block?
|
235
|
-
@probe.yielded_once?(:yield_with_no_args) && @probe.single_yield_args.empty?
|
236
|
-
end
|
237
|
-
|
238
|
-
# @private
|
239
|
-
def does_not_match?(block)
|
240
|
-
!matches?(block) && @probe.has_block?
|
241
|
-
end
|
242
|
-
|
243
|
-
# @private
|
244
|
-
def failure_message
|
245
|
-
"expected given block to yield with no arguments, but #{positive_failure_reason}"
|
246
|
-
end
|
247
|
-
|
248
|
-
# @private
|
249
|
-
def failure_message_when_negated
|
250
|
-
"expected given block not to yield with no arguments, but #{negative_failure_reason}"
|
251
|
-
end
|
252
|
-
|
253
|
-
# @private
|
254
|
-
def supports_block_expectations?
|
255
|
-
true
|
256
|
-
end
|
257
|
-
|
258
|
-
private
|
259
|
-
|
260
|
-
def positive_failure_reason
|
261
|
-
return 'was not a block' unless @probe.has_block?
|
262
|
-
return 'did not yield' if @probe.num_yields.zero?
|
263
|
-
"yielded with arguments: #{description_of @probe.single_yield_args}"
|
264
|
-
end
|
265
|
-
|
266
|
-
def negative_failure_reason
|
267
|
-
return 'was not a block' unless @probe.has_block?
|
268
|
-
'did'
|
269
|
-
end
|
270
|
-
end
|
271
|
-
|
272
|
-
# @api private
|
273
|
-
# Provides the implementation for `yield_with_args`.
|
274
|
-
# Not intended to be instantiated directly.
|
275
|
-
class YieldWithArgs < BaseMatcher
|
276
|
-
def initialize(*args)
|
277
|
-
@expected = args
|
278
|
-
end
|
279
|
-
|
280
|
-
# @private
|
281
|
-
def matches?(block)
|
282
|
-
@args_matched_when_yielded = true
|
283
|
-
@probe = YieldProbe.new(block) do
|
284
|
-
@actual = @probe.single_yield_args
|
285
|
-
@actual_formatted = actual_formatted
|
286
|
-
@args_matched_when_yielded &&= args_currently_match?
|
287
|
-
end
|
288
|
-
return false unless @probe.has_block?
|
289
|
-
@probe.probe
|
290
|
-
@probe.yielded_once?(:yield_with_args) && @args_matched_when_yielded
|
291
|
-
end
|
292
|
-
|
293
|
-
# @private
|
294
|
-
def does_not_match?(block)
|
295
|
-
!matches?(block) && @probe.has_block?
|
296
|
-
end
|
297
|
-
|
298
|
-
# @private
|
299
|
-
def failure_message
|
300
|
-
"expected given block to yield with arguments, but #{positive_failure_reason}"
|
301
|
-
end
|
302
|
-
|
303
|
-
# @private
|
304
|
-
def failure_message_when_negated
|
305
|
-
"expected given block not to yield with arguments, but #{negative_failure_reason}"
|
306
|
-
end
|
307
|
-
|
308
|
-
# @private
|
309
|
-
def description
|
310
|
-
desc = 'yield with args'
|
311
|
-
desc = "#{desc}(#{expected_arg_description})" unless @expected.empty?
|
312
|
-
desc
|
313
|
-
end
|
314
|
-
|
315
|
-
# @private
|
316
|
-
def supports_block_expectations?
|
317
|
-
true
|
318
|
-
end
|
319
|
-
|
320
|
-
private
|
321
|
-
|
322
|
-
def positive_failure_reason
|
323
|
-
return 'was not a block' unless @probe.has_block?
|
324
|
-
return 'did not yield' if @probe.num_yields.zero?
|
325
|
-
@positive_args_failure
|
326
|
-
end
|
327
|
-
|
328
|
-
def expected_arg_description
|
329
|
-
@expected.map { |e| description_of e }.join(', ')
|
330
|
-
end
|
331
|
-
|
332
|
-
def negative_failure_reason
|
333
|
-
if !@probe.has_block?
|
334
|
-
'was not a block'
|
335
|
-
elsif @args_matched_when_yielded && !@expected.empty?
|
336
|
-
'yielded with expected arguments' \
|
337
|
-
"\nexpected not: #{surface_descriptions_in(@expected).inspect}" \
|
338
|
-
"\n got: #{@actual_formatted}"
|
339
|
-
else
|
340
|
-
'did'
|
341
|
-
end
|
342
|
-
end
|
343
|
-
|
344
|
-
def args_currently_match?
|
345
|
-
if @expected.empty? # expect {...}.to yield_with_args
|
346
|
-
@positive_args_failure = 'yielded with no arguments' if @actual.empty?
|
347
|
-
return !@actual.empty?
|
348
|
-
end
|
349
|
-
|
350
|
-
unless (match = all_args_match?)
|
351
|
-
@positive_args_failure = 'yielded with unexpected arguments' \
|
352
|
-
"\nexpected: #{surface_descriptions_in(@expected).inspect}" \
|
353
|
-
"\n got: #{@actual_formatted}"
|
354
|
-
end
|
355
|
-
|
356
|
-
match
|
357
|
-
end
|
358
|
-
|
359
|
-
def all_args_match?
|
360
|
-
values_match?(@expected, @actual)
|
361
|
-
end
|
362
|
-
end
|
363
|
-
|
364
|
-
# @api private
|
365
|
-
# Provides the implementation for `yield_successive_args`.
|
366
|
-
# Not intended to be instantiated directly.
|
367
|
-
class YieldSuccessiveArgs < BaseMatcher
|
368
|
-
def initialize(*args)
|
369
|
-
@expected = args
|
370
|
-
end
|
371
|
-
|
372
|
-
# @private
|
373
|
-
def matches?(block)
|
374
|
-
@actual_formatted = []
|
375
|
-
@actual = []
|
376
|
-
args_matched_when_yielded = true
|
377
|
-
yield_count = 0
|
378
|
-
|
379
|
-
@probe = YieldProbe.probe(block) do |*arg_array|
|
380
|
-
arg_or_args = arg_array.size == 1 ? arg_array.first : arg_array
|
381
|
-
@actual_formatted << RSpec::Support::ObjectFormatter.format(arg_or_args)
|
382
|
-
@actual << arg_or_args
|
383
|
-
args_matched_when_yielded &&= values_match?(@expected[yield_count], arg_or_args)
|
384
|
-
yield_count += 1
|
385
|
-
end
|
386
|
-
|
387
|
-
return false unless @probe.has_block?
|
388
|
-
args_matched_when_yielded && yield_count == @expected.length
|
389
|
-
end
|
390
|
-
|
391
|
-
def does_not_match?(block)
|
392
|
-
!matches?(block) && @probe.has_block?
|
393
|
-
end
|
394
|
-
|
395
|
-
# @private
|
396
|
-
def failure_message
|
397
|
-
'expected given block to yield successively with arguments, ' \
|
398
|
-
"but #{positive_failure_reason}"
|
399
|
-
end
|
400
|
-
|
401
|
-
# @private
|
402
|
-
def failure_message_when_negated
|
403
|
-
'expected given block not to yield successively with arguments, ' \
|
404
|
-
"but #{negative_failure_reason}"
|
405
|
-
end
|
406
|
-
|
407
|
-
# @private
|
408
|
-
def description
|
409
|
-
"yield successive args(#{expected_arg_description})"
|
410
|
-
end
|
411
|
-
|
412
|
-
# @private
|
413
|
-
def supports_block_expectations?
|
414
|
-
true
|
415
|
-
end
|
416
|
-
|
417
|
-
private
|
418
|
-
|
419
|
-
def expected_arg_description
|
420
|
-
@expected.map { |e| description_of e }.join(', ')
|
421
|
-
end
|
422
|
-
|
423
|
-
def positive_failure_reason
|
424
|
-
return 'was not a block' unless @probe.has_block?
|
425
|
-
|
426
|
-
'yielded with unexpected arguments' \
|
427
|
-
"\nexpected: #{surface_descriptions_in(@expected).inspect}" \
|
428
|
-
"\n got: [#{@actual_formatted.join(", ")}]"
|
429
|
-
end
|
430
|
-
|
431
|
-
def negative_failure_reason
|
432
|
-
return 'was not a block' unless @probe.has_block?
|
433
|
-
|
434
|
-
'yielded with expected arguments' \
|
435
|
-
"\nexpected not: #{surface_descriptions_in(@expected).inspect}" \
|
436
|
-
"\n got: [#{@actual_formatted.join(", ")}]"
|
437
|
-
end
|
438
|
-
end
|
439
|
-
end
|
440
|
-
end
|
441
|
-
end
|
@@ -1,171 +0,0 @@
|
|
1
|
-
RSpec::Support.require_rspec_support "fuzzy_matcher"
|
2
|
-
|
3
|
-
module RSpec
|
4
|
-
module Matchers
|
5
|
-
# Mixin designed to support the composable matcher features
|
6
|
-
# of RSpec 3+. Mix it into your custom matcher classes to
|
7
|
-
# allow them to be used in a composable fashion.
|
8
|
-
#
|
9
|
-
# @api public
|
10
|
-
module Composable
|
11
|
-
# Creates a compound `and` expectation. The matcher will
|
12
|
-
# only pass if both sub-matchers pass.
|
13
|
-
# This can be chained together to form an arbitrarily long
|
14
|
-
# chain of matchers.
|
15
|
-
#
|
16
|
-
# @example
|
17
|
-
# expect(alphabet).to start_with("a").and end_with("z")
|
18
|
-
# expect(alphabet).to start_with("a") & end_with("z")
|
19
|
-
#
|
20
|
-
# @note The negative form (`expect(...).not_to matcher.and other`)
|
21
|
-
# is not supported at this time.
|
22
|
-
def and(matcher)
|
23
|
-
BuiltIn::Compound::And.new self, matcher
|
24
|
-
end
|
25
|
-
alias & and
|
26
|
-
|
27
|
-
# Creates a compound `or` expectation. The matcher will
|
28
|
-
# pass if either sub-matcher passes.
|
29
|
-
# This can be chained together to form an arbitrarily long
|
30
|
-
# chain of matchers.
|
31
|
-
#
|
32
|
-
# @example
|
33
|
-
# expect(stoplight.color).to eq("red").or eq("green").or eq("yellow")
|
34
|
-
# expect(stoplight.color).to eq("red") | eq("green") | eq("yellow")
|
35
|
-
#
|
36
|
-
# @note The negative form (`expect(...).not_to matcher.or other`)
|
37
|
-
# is not supported at this time.
|
38
|
-
def or(matcher)
|
39
|
-
BuiltIn::Compound::Or.new self, matcher
|
40
|
-
end
|
41
|
-
alias | or
|
42
|
-
|
43
|
-
# Delegates to `#matches?`. Allows matchers to be used in composable
|
44
|
-
# fashion and also supports using matchers in case statements.
|
45
|
-
def ===(value)
|
46
|
-
matches?(value)
|
47
|
-
end
|
48
|
-
|
49
|
-
private
|
50
|
-
|
51
|
-
# This provides a generic way to fuzzy-match an expected value against
|
52
|
-
# an actual value. It understands nested data structures (e.g. hashes
|
53
|
-
# and arrays) and is able to match against a matcher being used as
|
54
|
-
# the expected value or within the expected value at any level of
|
55
|
-
# nesting.
|
56
|
-
#
|
57
|
-
# Within a custom matcher you are encouraged to use this whenever your
|
58
|
-
# matcher needs to match two values, unless it needs more precise semantics.
|
59
|
-
# For example, the `eq` matcher _does not_ use this as it is meant to
|
60
|
-
# use `==` (and only `==`) for matching.
|
61
|
-
#
|
62
|
-
# @param expected [Object] what is expected
|
63
|
-
# @param actual [Object] the actual value
|
64
|
-
#
|
65
|
-
# @!visibility public
|
66
|
-
def values_match?(expected, actual)
|
67
|
-
expected = with_matchers_cloned(expected)
|
68
|
-
Support::FuzzyMatcher.values_match?(expected, actual)
|
69
|
-
end
|
70
|
-
|
71
|
-
# Returns the description of the given object in a way that is
|
72
|
-
# aware of composed matchers. If the object is a matcher with
|
73
|
-
# a `description` method, returns the description; otherwise
|
74
|
-
# returns `object.inspect`.
|
75
|
-
#
|
76
|
-
# You are encouraged to use this in your custom matcher's
|
77
|
-
# `description`, `failure_message` or
|
78
|
-
# `failure_message_when_negated` implementation if you are
|
79
|
-
# supporting matcher arguments.
|
80
|
-
#
|
81
|
-
# @!visibility public
|
82
|
-
def description_of(object)
|
83
|
-
RSpec::Support::ObjectFormatter.format(object)
|
84
|
-
end
|
85
|
-
|
86
|
-
# Transforms the given data structue (typically a hash or array)
|
87
|
-
# into a new data structure that, when `#inspect` is called on it,
|
88
|
-
# will provide descriptions of any contained matchers rather than
|
89
|
-
# the normal `#inspect` output.
|
90
|
-
#
|
91
|
-
# You are encouraged to use this in your custom matcher's
|
92
|
-
# `description`, `failure_message` or
|
93
|
-
# `failure_message_when_negated` implementation if you are
|
94
|
-
# supporting any arguments which may be a data structure
|
95
|
-
# containing matchers.
|
96
|
-
#
|
97
|
-
# @!visibility public
|
98
|
-
def surface_descriptions_in(item)
|
99
|
-
if Matchers.is_a_describable_matcher?(item)
|
100
|
-
DescribableItem.new(item)
|
101
|
-
elsif Hash === item
|
102
|
-
Hash[surface_descriptions_in(item.to_a)]
|
103
|
-
elsif Struct === item || unreadable_io?(item)
|
104
|
-
RSpec::Support::ObjectFormatter.format(item)
|
105
|
-
elsif should_enumerate?(item)
|
106
|
-
item.map { |subitem| surface_descriptions_in(subitem) }
|
107
|
-
else
|
108
|
-
item
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
# @private
|
113
|
-
# Historically, a single matcher instance was only checked
|
114
|
-
# against a single value. Given that the matcher was only
|
115
|
-
# used once, it's been common to memoize some intermediate
|
116
|
-
# calculation that is derived from the `actual` value in
|
117
|
-
# order to reuse that intermediate result in the failure
|
118
|
-
# message.
|
119
|
-
#
|
120
|
-
# This can cause a problem when using such a matcher as an
|
121
|
-
# argument to another matcher in a composed matcher expression,
|
122
|
-
# since the matcher instance may be checked against multiple
|
123
|
-
# values and produce invalid results due to the memoization.
|
124
|
-
#
|
125
|
-
# To deal with this, we clone any matchers in `expected` via
|
126
|
-
# this method when using `values_match?`, so that any memoization
|
127
|
-
# does not "leak" between checks.
|
128
|
-
def with_matchers_cloned(object)
|
129
|
-
if Matchers.is_a_matcher?(object)
|
130
|
-
object.clone
|
131
|
-
elsif Hash === object
|
132
|
-
Hash[with_matchers_cloned(object.to_a)]
|
133
|
-
elsif should_enumerate?(object)
|
134
|
-
object.map { |subobject| with_matchers_cloned(subobject) }
|
135
|
-
else
|
136
|
-
object
|
137
|
-
end
|
138
|
-
end
|
139
|
-
|
140
|
-
# @api private
|
141
|
-
# We should enumerate arrays as long as they are not recursive.
|
142
|
-
def should_enumerate?(item)
|
143
|
-
Array === item && item.none? { |subitem| subitem.equal?(item) }
|
144
|
-
end
|
145
|
-
|
146
|
-
# @api private
|
147
|
-
def unreadable_io?(object)
|
148
|
-
return false unless IO === object
|
149
|
-
object.each {} # STDOUT is enumerable but raises an error
|
150
|
-
false
|
151
|
-
rescue IOError
|
152
|
-
true
|
153
|
-
end
|
154
|
-
module_function :surface_descriptions_in, :should_enumerate?, :unreadable_io?
|
155
|
-
|
156
|
-
# Wraps an item in order to surface its `description` via `inspect`.
|
157
|
-
# @api private
|
158
|
-
DescribableItem = Struct.new(:item) do
|
159
|
-
# Inspectable version of the item description
|
160
|
-
def inspect
|
161
|
-
"(#{item.description})"
|
162
|
-
end
|
163
|
-
|
164
|
-
# A pretty printed version of the item description.
|
165
|
-
def pretty_print(pp)
|
166
|
-
pp.text "(#{item.description})"
|
167
|
-
end
|
168
|
-
end
|
169
|
-
end
|
170
|
-
end
|
171
|
-
end
|