qiita_org 0.1.31 → 0.1.37
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 +26 -49
- data/lib/qiita_org/access_qiita.rb +0 -2
- data/lib/qiita_org/all.rb +4 -4
- data/lib/qiita_org/base.rb +98 -0
- data/lib/qiita_org/config.rb +1 -2
- data/lib/qiita_org/error_message.rb +15 -10
- data/lib/qiita_org/get.rb +3 -44
- data/lib/qiita_org/get_multiple_files.rb +2 -4
- data/lib/qiita_org/get_template.rb +1 -31
- data/lib/qiita_org/list.rb +3 -35
- data/lib/qiita_org/md_converter_for_image.rb +1 -1
- data/lib/qiita_org/{check_pc_os.rb → old_programs/check_pc_os.rb} +0 -0
- data/lib/qiita_org/{decide_option.rb → old_programs/decide_option.rb} +0 -0
- data/lib/qiita_org/{file_open.rb → old_programs/file_open.rb} +0 -0
- data/lib/qiita_org/{get_file_path.rb → old_programs/get_file_path.rb} +0 -0
- data/lib/qiita_org/{get_file_url.rb → old_programs/get_file_url.rb} +0 -0
- data/lib/qiita_org/{search_conf_path.rb → old_programs/search_conf_path.rb} +0 -0
- data/lib/qiita_org/{select_path.rb → old_programs/select_path.rb} +0 -0
- data/lib/qiita_org/{set_config.rb → old_programs/set_config.rb} +0 -0
- data/lib/qiita_org/{show_file_and_url.rb → old_programs/show_file_and_url.rb} +0 -0
- data/lib/qiita_org/post.rb +35 -34
- data/lib/qiita_org/template.org +1 -1
- data/lib/qiita_org/upload.rb +22 -32
- data/lib/qiita_org/version.rb +1 -1
- data/tests/test.org +2 -1
- data/tests/test2.org +1 -2
- metadata +12 -2444
- 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,106 +0,0 @@
|
|
1
|
-
module RSpec
|
2
|
-
module Matchers
|
3
|
-
module BuiltIn
|
4
|
-
# @api private
|
5
|
-
# Provides the implementation for `match`.
|
6
|
-
# Not intended to be instantiated directly.
|
7
|
-
class Match < BaseMatcher
|
8
|
-
def initialize(expected)
|
9
|
-
super(expected)
|
10
|
-
|
11
|
-
@expected_captures = nil
|
12
|
-
end
|
13
|
-
# @api private
|
14
|
-
# @return [String]
|
15
|
-
def description
|
16
|
-
if @expected_captures && @expected.match(actual)
|
17
|
-
"match #{surface_descriptions_in(expected).inspect} with captures #{surface_descriptions_in(@expected_captures).inspect}"
|
18
|
-
else
|
19
|
-
"match #{surface_descriptions_in(expected).inspect}"
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
# @api private
|
24
|
-
# @return [Boolean]
|
25
|
-
def diffable?
|
26
|
-
true
|
27
|
-
end
|
28
|
-
|
29
|
-
# Used to specify the captures we match against
|
30
|
-
# @return [self]
|
31
|
-
def with_captures(*captures)
|
32
|
-
@expected_captures = captures
|
33
|
-
self
|
34
|
-
end
|
35
|
-
|
36
|
-
private
|
37
|
-
|
38
|
-
def match(expected, actual)
|
39
|
-
return match_captures(expected, actual) if @expected_captures
|
40
|
-
return true if values_match?(expected, actual)
|
41
|
-
return false unless can_safely_call_match?(expected, actual)
|
42
|
-
actual.match(expected)
|
43
|
-
end
|
44
|
-
|
45
|
-
def can_safely_call_match?(expected, actual)
|
46
|
-
return false unless actual.respond_to?(:match)
|
47
|
-
|
48
|
-
!(RSpec::Matchers.is_a_matcher?(expected) &&
|
49
|
-
(String === actual || Regexp === actual))
|
50
|
-
end
|
51
|
-
|
52
|
-
def match_captures(expected, actual)
|
53
|
-
match = actual.match(expected)
|
54
|
-
if match
|
55
|
-
match = ReliableMatchData.new(match)
|
56
|
-
if match.names.empty?
|
57
|
-
values_match?(@expected_captures, match.captures)
|
58
|
-
else
|
59
|
-
expected_matcher = @expected_captures.last
|
60
|
-
values_match?(expected_matcher, Hash[match.names.zip(match.captures)]) ||
|
61
|
-
values_match?(expected_matcher, Hash[match.names.map(&:to_sym).zip(match.captures)]) ||
|
62
|
-
values_match?(@expected_captures, match.captures)
|
63
|
-
end
|
64
|
-
else
|
65
|
-
false
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
# @api private
|
71
|
-
# Used to wrap match data and make it reliable for 1.8.7
|
72
|
-
class ReliableMatchData
|
73
|
-
def initialize(match_data)
|
74
|
-
@match_data = match_data
|
75
|
-
end
|
76
|
-
|
77
|
-
if RUBY_VERSION == "1.8.7"
|
78
|
-
# @api private
|
79
|
-
# Returns match data names for named captures
|
80
|
-
# @return Array
|
81
|
-
def names
|
82
|
-
[]
|
83
|
-
end
|
84
|
-
else
|
85
|
-
# @api private
|
86
|
-
# Returns match data names for named captures
|
87
|
-
# @return Array
|
88
|
-
def names
|
89
|
-
match_data.names
|
90
|
-
end
|
91
|
-
end
|
92
|
-
|
93
|
-
# @api private
|
94
|
-
# returns an array of captures from the match data
|
95
|
-
# @return Array
|
96
|
-
def captures
|
97
|
-
match_data.captures
|
98
|
-
end
|
99
|
-
|
100
|
-
protected
|
101
|
-
|
102
|
-
attr_reader :match_data
|
103
|
-
end
|
104
|
-
end
|
105
|
-
end
|
106
|
-
end
|
data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/operators.rb
DELETED
@@ -1,128 +0,0 @@
|
|
1
|
-
require 'rspec/support'
|
2
|
-
|
3
|
-
module RSpec
|
4
|
-
module Matchers
|
5
|
-
module BuiltIn
|
6
|
-
# @api private
|
7
|
-
# Provides the implementation for operator matchers.
|
8
|
-
# Not intended to be instantiated directly.
|
9
|
-
# Only available for use with `should`.
|
10
|
-
class OperatorMatcher
|
11
|
-
class << self
|
12
|
-
# @private
|
13
|
-
def registry
|
14
|
-
@registry ||= {}
|
15
|
-
end
|
16
|
-
|
17
|
-
# @private
|
18
|
-
def register(klass, operator, matcher)
|
19
|
-
registry[klass] ||= {}
|
20
|
-
registry[klass][operator] = matcher
|
21
|
-
end
|
22
|
-
|
23
|
-
# @private
|
24
|
-
def unregister(klass, operator)
|
25
|
-
registry[klass] && registry[klass].delete(operator)
|
26
|
-
end
|
27
|
-
|
28
|
-
# @private
|
29
|
-
def get(klass, operator)
|
30
|
-
klass.ancestors.each do |ancestor|
|
31
|
-
matcher = registry[ancestor] && registry[ancestor][operator]
|
32
|
-
return matcher if matcher
|
33
|
-
end
|
34
|
-
|
35
|
-
nil
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
register Enumerable, '=~', BuiltIn::ContainExactly
|
40
|
-
|
41
|
-
def initialize(actual)
|
42
|
-
@actual = actual
|
43
|
-
end
|
44
|
-
|
45
|
-
# @private
|
46
|
-
def self.use_custom_matcher_or_delegate(operator)
|
47
|
-
define_method(operator) do |expected|
|
48
|
-
if !has_non_generic_implementation_of?(operator) && (matcher = OperatorMatcher.get(@actual.class, operator))
|
49
|
-
@actual.__send__(::RSpec::Matchers.last_expectation_handler.should_method, matcher.new(expected))
|
50
|
-
else
|
51
|
-
eval_match(@actual, operator, expected)
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
negative_operator = operator.sub(/^=/, '!')
|
56
|
-
if negative_operator != operator && respond_to?(negative_operator)
|
57
|
-
define_method(negative_operator) do |_expected|
|
58
|
-
opposite_should = ::RSpec::Matchers.last_expectation_handler.opposite_should_method
|
59
|
-
raise "RSpec does not support `#{::RSpec::Matchers.last_expectation_handler.should_method} #{negative_operator} expected`. " \
|
60
|
-
"Use `#{opposite_should} #{operator} expected` instead."
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
['==', '===', '=~', '>', '>=', '<', '<='].each do |operator|
|
66
|
-
use_custom_matcher_or_delegate operator
|
67
|
-
end
|
68
|
-
|
69
|
-
# @private
|
70
|
-
def fail_with_message(message)
|
71
|
-
RSpec::Expectations.fail_with(message, @expected, @actual)
|
72
|
-
end
|
73
|
-
|
74
|
-
# @api private
|
75
|
-
# @return [String]
|
76
|
-
def description
|
77
|
-
"#{@operator} #{RSpec::Support::ObjectFormatter.format(@expected)}"
|
78
|
-
end
|
79
|
-
|
80
|
-
private
|
81
|
-
|
82
|
-
def has_non_generic_implementation_of?(op)
|
83
|
-
Support.method_handle_for(@actual, op).owner != ::Kernel
|
84
|
-
rescue NameError
|
85
|
-
false
|
86
|
-
end
|
87
|
-
|
88
|
-
def eval_match(actual, operator, expected)
|
89
|
-
::RSpec::Matchers.last_matcher = self
|
90
|
-
@operator, @expected = operator, expected
|
91
|
-
__delegate_operator(actual, operator, expected)
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
# @private
|
96
|
-
# Handles operator matcher for `should`.
|
97
|
-
class PositiveOperatorMatcher < OperatorMatcher
|
98
|
-
def __delegate_operator(actual, operator, expected)
|
99
|
-
if actual.__send__(operator, expected)
|
100
|
-
true
|
101
|
-
else
|
102
|
-
expected_formatted = RSpec::Support::ObjectFormatter.format(expected)
|
103
|
-
actual_formatted = RSpec::Support::ObjectFormatter.format(actual)
|
104
|
-
|
105
|
-
if ['==', '===', '=~'].include?(operator)
|
106
|
-
fail_with_message("expected: #{expected_formatted}\n got: #{actual_formatted} (using #{operator})")
|
107
|
-
else
|
108
|
-
fail_with_message("expected: #{operator} #{expected_formatted}\n got: #{operator.gsub(/./, ' ')} #{actual_formatted}")
|
109
|
-
end
|
110
|
-
end
|
111
|
-
end
|
112
|
-
end
|
113
|
-
|
114
|
-
# @private
|
115
|
-
# Handles operator matcher for `should_not`.
|
116
|
-
class NegativeOperatorMatcher < OperatorMatcher
|
117
|
-
def __delegate_operator(actual, operator, expected)
|
118
|
-
return false unless actual.__send__(operator, expected)
|
119
|
-
|
120
|
-
expected_formatted = RSpec::Support::ObjectFormatter.format(expected)
|
121
|
-
actual_formatted = RSpec::Support::ObjectFormatter.format(actual)
|
122
|
-
|
123
|
-
fail_with_message("expected not: #{operator} #{expected_formatted}\n got: #{operator.gsub(/./, ' ')} #{actual_formatted}")
|
124
|
-
end
|
125
|
-
end
|
126
|
-
end
|
127
|
-
end
|
128
|
-
end
|
@@ -1,200 +0,0 @@
|
|
1
|
-
require 'stringio'
|
2
|
-
|
3
|
-
module RSpec
|
4
|
-
module Matchers
|
5
|
-
module BuiltIn
|
6
|
-
# @api private
|
7
|
-
# Provides the implementation for `output`.
|
8
|
-
# Not intended to be instantiated directly.
|
9
|
-
class Output < BaseMatcher
|
10
|
-
def initialize(expected)
|
11
|
-
@expected = expected
|
12
|
-
@actual = ""
|
13
|
-
@block = nil
|
14
|
-
@stream_capturer = NullCapture
|
15
|
-
end
|
16
|
-
|
17
|
-
def matches?(block)
|
18
|
-
@block = block
|
19
|
-
return false unless Proc === block
|
20
|
-
@actual = @stream_capturer.capture(block)
|
21
|
-
@expected ? values_match?(@expected, @actual) : captured?
|
22
|
-
end
|
23
|
-
|
24
|
-
def does_not_match?(block)
|
25
|
-
!matches?(block) && Proc === block
|
26
|
-
end
|
27
|
-
|
28
|
-
# @api public
|
29
|
-
# Tells the matcher to match against stdout.
|
30
|
-
# Works only when the main Ruby process prints to stdout
|
31
|
-
def to_stdout
|
32
|
-
@stream_capturer = CaptureStdout
|
33
|
-
self
|
34
|
-
end
|
35
|
-
|
36
|
-
# @api public
|
37
|
-
# Tells the matcher to match against stderr.
|
38
|
-
# Works only when the main Ruby process prints to stderr
|
39
|
-
def to_stderr
|
40
|
-
@stream_capturer = CaptureStderr
|
41
|
-
self
|
42
|
-
end
|
43
|
-
|
44
|
-
# @api public
|
45
|
-
# Tells the matcher to match against stdout.
|
46
|
-
# Works when subprocesses print to stdout as well.
|
47
|
-
# This is significantly (~30x) slower than `to_stdout`
|
48
|
-
def to_stdout_from_any_process
|
49
|
-
@stream_capturer = CaptureStreamToTempfile.new("stdout", $stdout)
|
50
|
-
self
|
51
|
-
end
|
52
|
-
|
53
|
-
# @api public
|
54
|
-
# Tells the matcher to match against stderr.
|
55
|
-
# Works when subprocesses print to stderr as well.
|
56
|
-
# This is significantly (~30x) slower than `to_stderr`
|
57
|
-
def to_stderr_from_any_process
|
58
|
-
@stream_capturer = CaptureStreamToTempfile.new("stderr", $stderr)
|
59
|
-
self
|
60
|
-
end
|
61
|
-
|
62
|
-
# @api private
|
63
|
-
# @return [String]
|
64
|
-
def failure_message
|
65
|
-
"expected block to #{description}, but #{positive_failure_reason}"
|
66
|
-
end
|
67
|
-
|
68
|
-
# @api private
|
69
|
-
# @return [String]
|
70
|
-
def failure_message_when_negated
|
71
|
-
"expected block to not #{description}, but #{negative_failure_reason}"
|
72
|
-
end
|
73
|
-
|
74
|
-
# @api private
|
75
|
-
# @return [String]
|
76
|
-
def description
|
77
|
-
if @expected
|
78
|
-
"output #{description_of @expected} to #{@stream_capturer.name}"
|
79
|
-
else
|
80
|
-
"output to #{@stream_capturer.name}"
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
# @api private
|
85
|
-
# @return [Boolean]
|
86
|
-
def diffable?
|
87
|
-
true
|
88
|
-
end
|
89
|
-
|
90
|
-
# @api private
|
91
|
-
# Indicates this matcher matches against a block.
|
92
|
-
# @return [True]
|
93
|
-
def supports_block_expectations?
|
94
|
-
true
|
95
|
-
end
|
96
|
-
|
97
|
-
private
|
98
|
-
|
99
|
-
def captured?
|
100
|
-
@actual.length > 0
|
101
|
-
end
|
102
|
-
|
103
|
-
def positive_failure_reason
|
104
|
-
return "was not a block" unless Proc === @block
|
105
|
-
return "output #{actual_output_description}" if @expected
|
106
|
-
"did not"
|
107
|
-
end
|
108
|
-
|
109
|
-
def negative_failure_reason
|
110
|
-
return "was not a block" unless Proc === @block
|
111
|
-
"output #{actual_output_description}"
|
112
|
-
end
|
113
|
-
|
114
|
-
def actual_output_description
|
115
|
-
return "nothing" unless captured?
|
116
|
-
actual_formatted
|
117
|
-
end
|
118
|
-
end
|
119
|
-
|
120
|
-
# @private
|
121
|
-
module NullCapture
|
122
|
-
def self.name
|
123
|
-
"some stream"
|
124
|
-
end
|
125
|
-
|
126
|
-
def self.capture(_block)
|
127
|
-
raise "You must chain `to_stdout` or `to_stderr` off of the `output(...)` matcher."
|
128
|
-
end
|
129
|
-
end
|
130
|
-
|
131
|
-
# @private
|
132
|
-
module CaptureStdout
|
133
|
-
def self.name
|
134
|
-
'stdout'
|
135
|
-
end
|
136
|
-
|
137
|
-
def self.capture(block)
|
138
|
-
captured_stream = StringIO.new
|
139
|
-
|
140
|
-
original_stream = $stdout
|
141
|
-
$stdout = captured_stream
|
142
|
-
|
143
|
-
block.call
|
144
|
-
|
145
|
-
captured_stream.string
|
146
|
-
ensure
|
147
|
-
$stdout = original_stream
|
148
|
-
end
|
149
|
-
end
|
150
|
-
|
151
|
-
# @private
|
152
|
-
module CaptureStderr
|
153
|
-
def self.name
|
154
|
-
'stderr'
|
155
|
-
end
|
156
|
-
|
157
|
-
def self.capture(block)
|
158
|
-
captured_stream = StringIO.new
|
159
|
-
|
160
|
-
original_stream = $stderr
|
161
|
-
$stderr = captured_stream
|
162
|
-
|
163
|
-
block.call
|
164
|
-
|
165
|
-
captured_stream.string
|
166
|
-
ensure
|
167
|
-
$stderr = original_stream
|
168
|
-
end
|
169
|
-
end
|
170
|
-
|
171
|
-
# @private
|
172
|
-
class CaptureStreamToTempfile < Struct.new(:name, :stream)
|
173
|
-
def capture(block)
|
174
|
-
# We delay loading tempfile until it is actually needed because
|
175
|
-
# we want to minimize stdlibs loaded so that users who use a
|
176
|
-
# portion of the stdlib can't have passing specs while forgetting
|
177
|
-
# to load it themselves. `CaptureStreamToTempfile` is rarely used
|
178
|
-
# and `tempfile` pulls in a bunch of things (delegate, tmpdir,
|
179
|
-
# thread, fileutils, etc), so it's worth delaying it until this point.
|
180
|
-
require 'tempfile'
|
181
|
-
|
182
|
-
original_stream = stream.clone
|
183
|
-
captured_stream = Tempfile.new(name)
|
184
|
-
|
185
|
-
begin
|
186
|
-
captured_stream.sync = true
|
187
|
-
stream.reopen(captured_stream)
|
188
|
-
block.call
|
189
|
-
captured_stream.rewind
|
190
|
-
captured_stream.read
|
191
|
-
ensure
|
192
|
-
stream.reopen(original_stream)
|
193
|
-
captured_stream.close
|
194
|
-
captured_stream.unlink
|
195
|
-
end
|
196
|
-
end
|
197
|
-
end
|
198
|
-
end
|
199
|
-
end
|
200
|
-
end
|
data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/raise_error.rb
DELETED
@@ -1,230 +0,0 @@
|
|
1
|
-
module RSpec
|
2
|
-
module Matchers
|
3
|
-
module BuiltIn
|
4
|
-
# @api private
|
5
|
-
# Provides the implementation for `raise_error`.
|
6
|
-
# Not intended to be instantiated directly.
|
7
|
-
# rubocop:disable ClassLength
|
8
|
-
# rubocop:disable RescueException
|
9
|
-
class RaiseError
|
10
|
-
include Composable
|
11
|
-
|
12
|
-
def initialize(expected_error_or_message=nil, expected_message=nil, &block)
|
13
|
-
@block = block
|
14
|
-
@actual_error = nil
|
15
|
-
@warn_about_bare_error = expected_error_or_message.nil?
|
16
|
-
|
17
|
-
case expected_error_or_message
|
18
|
-
when nil
|
19
|
-
@expected_error = Exception
|
20
|
-
@expected_message = expected_message
|
21
|
-
when String
|
22
|
-
@expected_error = Exception
|
23
|
-
@expected_message = expected_error_or_message
|
24
|
-
else
|
25
|
-
@expected_error = expected_error_or_message
|
26
|
-
@expected_message = expected_message
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
# @api public
|
31
|
-
# Specifies the expected error message.
|
32
|
-
def with_message(expected_message)
|
33
|
-
raise_message_already_set if @expected_message
|
34
|
-
@warn_about_bare_error = false
|
35
|
-
@expected_message = expected_message
|
36
|
-
self
|
37
|
-
end
|
38
|
-
|
39
|
-
# rubocop:disable MethodLength
|
40
|
-
# @private
|
41
|
-
def matches?(given_proc, negative_expectation=false, &block)
|
42
|
-
@given_proc = given_proc
|
43
|
-
@block ||= block
|
44
|
-
@raised_expected_error = false
|
45
|
-
@with_expected_message = false
|
46
|
-
@eval_block = false
|
47
|
-
@eval_block_passed = false
|
48
|
-
|
49
|
-
return false unless Proc === given_proc
|
50
|
-
|
51
|
-
begin
|
52
|
-
given_proc.call
|
53
|
-
rescue Exception => @actual_error
|
54
|
-
if values_match?(@expected_error, @actual_error) ||
|
55
|
-
values_match?(@expected_error, @actual_error.message)
|
56
|
-
@raised_expected_error = true
|
57
|
-
@with_expected_message = verify_message
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
|
-
warn_about_bare_error if warning_about_bare_error && !negative_expectation
|
62
|
-
eval_block if !negative_expectation && ready_to_eval_block?
|
63
|
-
|
64
|
-
expectation_matched?
|
65
|
-
end
|
66
|
-
# rubocop:enable MethodLength
|
67
|
-
|
68
|
-
# @private
|
69
|
-
def does_not_match?(given_proc)
|
70
|
-
warn_for_false_positives
|
71
|
-
!matches?(given_proc, :negative_expectation) && Proc === given_proc
|
72
|
-
end
|
73
|
-
|
74
|
-
# @private
|
75
|
-
def supports_block_expectations?
|
76
|
-
true
|
77
|
-
end
|
78
|
-
|
79
|
-
def expects_call_stack_jump?
|
80
|
-
true
|
81
|
-
end
|
82
|
-
|
83
|
-
# @api private
|
84
|
-
# @return [String]
|
85
|
-
def failure_message
|
86
|
-
@eval_block ? @actual_error.message : "expected #{expected_error}#{given_error}"
|
87
|
-
end
|
88
|
-
|
89
|
-
# @api private
|
90
|
-
# @return [String]
|
91
|
-
def failure_message_when_negated
|
92
|
-
"expected no #{expected_error}#{given_error}"
|
93
|
-
end
|
94
|
-
|
95
|
-
# @api private
|
96
|
-
# @return [String]
|
97
|
-
def description
|
98
|
-
"raise #{expected_error}"
|
99
|
-
end
|
100
|
-
|
101
|
-
private
|
102
|
-
|
103
|
-
def expectation_matched?
|
104
|
-
error_and_message_match? && block_matches?
|
105
|
-
end
|
106
|
-
|
107
|
-
def error_and_message_match?
|
108
|
-
@raised_expected_error && @with_expected_message
|
109
|
-
end
|
110
|
-
|
111
|
-
def block_matches?
|
112
|
-
@eval_block ? @eval_block_passed : true
|
113
|
-
end
|
114
|
-
|
115
|
-
def ready_to_eval_block?
|
116
|
-
@raised_expected_error && @with_expected_message && @block
|
117
|
-
end
|
118
|
-
|
119
|
-
def eval_block
|
120
|
-
@eval_block = true
|
121
|
-
begin
|
122
|
-
@block[@actual_error]
|
123
|
-
@eval_block_passed = true
|
124
|
-
rescue Exception => err
|
125
|
-
@actual_error = err
|
126
|
-
end
|
127
|
-
end
|
128
|
-
|
129
|
-
def verify_message
|
130
|
-
return true if @expected_message.nil?
|
131
|
-
values_match?(@expected_message, @actual_error.message.to_s)
|
132
|
-
end
|
133
|
-
|
134
|
-
def warn_for_false_positives
|
135
|
-
expression = if expecting_specific_exception? && @expected_message
|
136
|
-
"`expect { }.not_to raise_error(SpecificErrorClass, message)`"
|
137
|
-
elsif expecting_specific_exception?
|
138
|
-
"`expect { }.not_to raise_error(SpecificErrorClass)`"
|
139
|
-
elsif @expected_message
|
140
|
-
"`expect { }.not_to raise_error(message)`"
|
141
|
-
end
|
142
|
-
|
143
|
-
return unless expression
|
144
|
-
|
145
|
-
warn_about_negative_false_positive expression
|
146
|
-
end
|
147
|
-
|
148
|
-
def handle_warning(message)
|
149
|
-
RSpec::Expectations.configuration.false_positives_handler.call(message)
|
150
|
-
end
|
151
|
-
|
152
|
-
def warning_about_bare_error
|
153
|
-
@warn_about_bare_error && @block.nil?
|
154
|
-
end
|
155
|
-
|
156
|
-
def warn_about_bare_error
|
157
|
-
handle_warning("Using the `raise_error` matcher without providing a specific " \
|
158
|
-
"error or message risks false positives, since `raise_error` " \
|
159
|
-
"will match when Ruby raises a `NoMethodError`, `NameError` or " \
|
160
|
-
"`ArgumentError`, potentially allowing the expectation to pass " \
|
161
|
-
"without even executing the method you are intending to call. " \
|
162
|
-
"#{warning}"\
|
163
|
-
"Instead consider providing a specific error class or message. " \
|
164
|
-
"This message can be suppressed by setting: " \
|
165
|
-
"`RSpec::Expectations.configuration.on_potential_false" \
|
166
|
-
"_positives = :nothing`")
|
167
|
-
end
|
168
|
-
|
169
|
-
def warn_about_negative_false_positive(expression)
|
170
|
-
handle_warning("Using #{expression} risks false positives, since literally " \
|
171
|
-
"any other error would cause the expectation to pass, " \
|
172
|
-
"including those raised by Ruby (e.g. NoMethodError, NameError " \
|
173
|
-
"and ArgumentError), meaning the code you are intending to test " \
|
174
|
-
"may not even get reached. Instead consider using " \
|
175
|
-
"`expect { }.not_to raise_error` or `expect { }.to raise_error" \
|
176
|
-
"(DifferentSpecificErrorClass)`. This message can be suppressed by " \
|
177
|
-
"setting: `RSpec::Expectations.configuration.on_potential_false" \
|
178
|
-
"_positives = :nothing`")
|
179
|
-
end
|
180
|
-
|
181
|
-
def expected_error
|
182
|
-
case @expected_message
|
183
|
-
when nil
|
184
|
-
if RSpec::Support.is_a_matcher?(@expected_error)
|
185
|
-
"Exception with #{description_of(@expected_error)}"
|
186
|
-
else
|
187
|
-
description_of(@expected_error)
|
188
|
-
end
|
189
|
-
when Regexp
|
190
|
-
"#{@expected_error} with message matching #{description_of(@expected_message)}"
|
191
|
-
else
|
192
|
-
"#{@expected_error} with #{description_of(@expected_message)}"
|
193
|
-
end
|
194
|
-
end
|
195
|
-
|
196
|
-
def format_backtrace(backtrace)
|
197
|
-
formatter = Matchers.configuration.backtrace_formatter
|
198
|
-
formatter.format_backtrace(backtrace)
|
199
|
-
end
|
200
|
-
|
201
|
-
def given_error
|
202
|
-
return " but was not given a block" unless Proc === @given_proc
|
203
|
-
return " but nothing was raised" unless @actual_error
|
204
|
-
|
205
|
-
backtrace = format_backtrace(@actual_error.backtrace)
|
206
|
-
[
|
207
|
-
", got #{description_of(@actual_error)} with backtrace:",
|
208
|
-
*backtrace
|
209
|
-
].join("\n # ")
|
210
|
-
end
|
211
|
-
|
212
|
-
def expecting_specific_exception?
|
213
|
-
@expected_error != Exception
|
214
|
-
end
|
215
|
-
|
216
|
-
def raise_message_already_set
|
217
|
-
raise "`expect { }.to raise_error(message).with_message(message)` is not valid. " \
|
218
|
-
'The matcher only allows the expected message to be specified once'
|
219
|
-
end
|
220
|
-
|
221
|
-
def warning
|
222
|
-
warning = "Actual error raised was #{description_of(@actual_error)}. "
|
223
|
-
warning if @actual_error
|
224
|
-
end
|
225
|
-
end
|
226
|
-
# rubocop:enable RescueException
|
227
|
-
# rubocop:enable ClassLength
|
228
|
-
end
|
229
|
-
end
|
230
|
-
end
|