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
data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/documentation_formatter.rb
DELETED
@@ -1,102 +0,0 @@
|
|
1
|
-
RSpec::Support.require_rspec_core "formatters/base_text_formatter"
|
2
|
-
RSpec::Support.require_rspec_core "formatters/console_codes"
|
3
|
-
|
4
|
-
module RSpec
|
5
|
-
module Core
|
6
|
-
module Formatters
|
7
|
-
# @private
|
8
|
-
class DocumentationFormatter < BaseTextFormatter
|
9
|
-
Formatters.register self, :example_started, :example_group_started, :example_group_finished,
|
10
|
-
:example_passed, :example_pending, :example_failed
|
11
|
-
|
12
|
-
def initialize(output)
|
13
|
-
super
|
14
|
-
@group_level = 0
|
15
|
-
|
16
|
-
@example_running = false
|
17
|
-
@messages = []
|
18
|
-
end
|
19
|
-
|
20
|
-
def example_started(_notification)
|
21
|
-
@example_running = true
|
22
|
-
end
|
23
|
-
|
24
|
-
def example_group_started(notification)
|
25
|
-
output.puts if @group_level == 0
|
26
|
-
output.puts "#{current_indentation}#{notification.group.description.strip}"
|
27
|
-
|
28
|
-
@group_level += 1
|
29
|
-
end
|
30
|
-
|
31
|
-
def example_group_finished(_notification)
|
32
|
-
@group_level -= 1 if @group_level > 0
|
33
|
-
end
|
34
|
-
|
35
|
-
def example_passed(passed)
|
36
|
-
output.puts passed_output(passed.example)
|
37
|
-
|
38
|
-
flush_messages
|
39
|
-
@example_running = false
|
40
|
-
end
|
41
|
-
|
42
|
-
def example_pending(pending)
|
43
|
-
output.puts pending_output(pending.example,
|
44
|
-
pending.example.execution_result.pending_message)
|
45
|
-
|
46
|
-
flush_messages
|
47
|
-
@example_running = false
|
48
|
-
end
|
49
|
-
|
50
|
-
def example_failed(failure)
|
51
|
-
output.puts failure_output(failure.example)
|
52
|
-
|
53
|
-
flush_messages
|
54
|
-
@example_running = false
|
55
|
-
end
|
56
|
-
|
57
|
-
def message(notification)
|
58
|
-
if @example_running
|
59
|
-
@messages << notification.message
|
60
|
-
else
|
61
|
-
output.puts "#{current_indentation}#{notification.message}"
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
private
|
66
|
-
|
67
|
-
def flush_messages
|
68
|
-
@messages.each do |message|
|
69
|
-
output.puts "#{current_indentation(1)}#{message}"
|
70
|
-
end
|
71
|
-
|
72
|
-
@messages.clear
|
73
|
-
end
|
74
|
-
|
75
|
-
def passed_output(example)
|
76
|
-
ConsoleCodes.wrap("#{current_indentation}#{example.description.strip}", :success)
|
77
|
-
end
|
78
|
-
|
79
|
-
def pending_output(example, message)
|
80
|
-
ConsoleCodes.wrap("#{current_indentation}#{example.description.strip} " \
|
81
|
-
"(PENDING: #{message})",
|
82
|
-
:pending)
|
83
|
-
end
|
84
|
-
|
85
|
-
def failure_output(example)
|
86
|
-
ConsoleCodes.wrap("#{current_indentation}#{example.description.strip} " \
|
87
|
-
"(FAILED - #{next_failure_index})",
|
88
|
-
:failure)
|
89
|
-
end
|
90
|
-
|
91
|
-
def next_failure_index
|
92
|
-
@next_failure_index ||= 0
|
93
|
-
@next_failure_index += 1
|
94
|
-
end
|
95
|
-
|
96
|
-
def current_indentation(offset=0)
|
97
|
-
' ' * (@group_level + offset)
|
98
|
-
end
|
99
|
-
end
|
100
|
-
end
|
101
|
-
end
|
102
|
-
end
|
data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/exception_presenter.rb
DELETED
@@ -1,511 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
RSpec::Support.require_rspec_core "formatters/console_codes"
|
3
|
-
RSpec::Support.require_rspec_core "formatters/snippet_extractor"
|
4
|
-
RSpec::Support.require_rspec_core 'formatters/syntax_highlighter'
|
5
|
-
RSpec::Support.require_rspec_support "encoded_string"
|
6
|
-
|
7
|
-
module RSpec
|
8
|
-
module Core
|
9
|
-
module Formatters
|
10
|
-
# @private
|
11
|
-
class ExceptionPresenter
|
12
|
-
attr_reader :exception, :example, :description, :message_color,
|
13
|
-
:detail_formatter, :extra_detail_formatter, :backtrace_formatter
|
14
|
-
private :message_color, :detail_formatter, :extra_detail_formatter, :backtrace_formatter
|
15
|
-
|
16
|
-
def initialize(exception, example, options={})
|
17
|
-
@exception = exception
|
18
|
-
@example = example
|
19
|
-
@message_color = options.fetch(:message_color) { RSpec.configuration.failure_color }
|
20
|
-
@description = options.fetch(:description) { example.full_description }
|
21
|
-
@detail_formatter = options.fetch(:detail_formatter) { Proc.new {} }
|
22
|
-
@extra_detail_formatter = options.fetch(:extra_detail_formatter) { Proc.new {} }
|
23
|
-
@backtrace_formatter = options.fetch(:backtrace_formatter) { RSpec.configuration.backtrace_formatter }
|
24
|
-
@indentation = options.fetch(:indentation, 2)
|
25
|
-
@skip_shared_group_trace = options.fetch(:skip_shared_group_trace, false)
|
26
|
-
@failure_lines = options[:failure_lines]
|
27
|
-
end
|
28
|
-
|
29
|
-
def message_lines
|
30
|
-
add_shared_group_lines(failure_lines, Notifications::NullColorizer)
|
31
|
-
end
|
32
|
-
|
33
|
-
def colorized_message_lines(colorizer=::RSpec::Core::Formatters::ConsoleCodes)
|
34
|
-
add_shared_group_lines(failure_lines, colorizer).map do |line|
|
35
|
-
colorizer.wrap line, message_color
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
def formatted_backtrace(exception=@exception)
|
40
|
-
backtrace_formatter.format_backtrace(exception.backtrace, example.metadata) +
|
41
|
-
formatted_cause(exception)
|
42
|
-
end
|
43
|
-
|
44
|
-
if RSpec::Support::RubyFeatures.supports_exception_cause?
|
45
|
-
def formatted_cause(exception)
|
46
|
-
last_cause = final_exception(exception, [exception])
|
47
|
-
cause = []
|
48
|
-
|
49
|
-
if exception.cause
|
50
|
-
cause << '------------------'
|
51
|
-
cause << '--- Caused by: ---'
|
52
|
-
cause << "#{exception_class_name(last_cause)}:" unless exception_class_name(last_cause) =~ /RSpec/
|
53
|
-
|
54
|
-
encoded_string(last_cause.message.to_s).split("\n").each do |line|
|
55
|
-
cause << " #{line}"
|
56
|
-
end
|
57
|
-
|
58
|
-
unless last_cause.backtrace.empty?
|
59
|
-
cause << (" #{backtrace_formatter.format_backtrace(last_cause.backtrace, example.metadata).first}")
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
cause
|
64
|
-
end
|
65
|
-
else
|
66
|
-
# :nocov:
|
67
|
-
def formatted_cause(_)
|
68
|
-
[]
|
69
|
-
end
|
70
|
-
# :nocov:
|
71
|
-
end
|
72
|
-
|
73
|
-
def colorized_formatted_backtrace(colorizer=::RSpec::Core::Formatters::ConsoleCodes)
|
74
|
-
formatted_backtrace.map do |backtrace_info|
|
75
|
-
colorizer.wrap "# #{backtrace_info}", RSpec.configuration.detail_color
|
76
|
-
end
|
77
|
-
end
|
78
|
-
|
79
|
-
def fully_formatted(failure_number, colorizer=::RSpec::Core::Formatters::ConsoleCodes)
|
80
|
-
lines = fully_formatted_lines(failure_number, colorizer)
|
81
|
-
lines.join("\n") << "\n"
|
82
|
-
end
|
83
|
-
|
84
|
-
def fully_formatted_lines(failure_number, colorizer)
|
85
|
-
lines = [
|
86
|
-
encoded_description(description),
|
87
|
-
detail_formatter.call(example, colorizer),
|
88
|
-
formatted_message_and_backtrace(colorizer),
|
89
|
-
extra_detail_formatter.call(failure_number, colorizer),
|
90
|
-
].compact.flatten
|
91
|
-
|
92
|
-
lines = indent_lines(lines, failure_number)
|
93
|
-
lines.unshift("")
|
94
|
-
lines
|
95
|
-
end
|
96
|
-
|
97
|
-
private
|
98
|
-
|
99
|
-
def final_exception(exception, previous=[])
|
100
|
-
cause = exception.cause
|
101
|
-
|
102
|
-
if cause && Exception === cause && !previous.include?(cause)
|
103
|
-
previous << cause
|
104
|
-
final_exception(cause, previous)
|
105
|
-
else
|
106
|
-
exception
|
107
|
-
end
|
108
|
-
end
|
109
|
-
|
110
|
-
if String.method_defined?(:encoding)
|
111
|
-
def encoding_of(string)
|
112
|
-
string.encoding
|
113
|
-
end
|
114
|
-
|
115
|
-
def encoded_string(string)
|
116
|
-
RSpec::Support::EncodedString.new(string, Encoding.default_external)
|
117
|
-
end
|
118
|
-
else # for 1.8.7
|
119
|
-
# :nocov:
|
120
|
-
def encoding_of(_string)
|
121
|
-
end
|
122
|
-
|
123
|
-
def encoded_string(string)
|
124
|
-
RSpec::Support::EncodedString.new(string)
|
125
|
-
end
|
126
|
-
# :nocov:
|
127
|
-
end
|
128
|
-
|
129
|
-
def indent_lines(lines, failure_number)
|
130
|
-
alignment_basis = ' ' * @indentation
|
131
|
-
alignment_basis << "#{failure_number}) " if failure_number
|
132
|
-
indentation = ' ' * alignment_basis.length
|
133
|
-
|
134
|
-
lines.each_with_index.map do |line, index|
|
135
|
-
if index == 0
|
136
|
-
"#{alignment_basis}#{line}"
|
137
|
-
elsif line.empty?
|
138
|
-
line
|
139
|
-
else
|
140
|
-
"#{indentation}#{line}"
|
141
|
-
end
|
142
|
-
end
|
143
|
-
end
|
144
|
-
|
145
|
-
def exception_class_name(exception=@exception)
|
146
|
-
name = exception.class.name.to_s
|
147
|
-
name = "(anonymous error class)" if name == ''
|
148
|
-
name
|
149
|
-
end
|
150
|
-
|
151
|
-
def failure_lines
|
152
|
-
@failure_lines ||= [].tap do |lines|
|
153
|
-
lines.concat(failure_slash_error_lines)
|
154
|
-
|
155
|
-
sections = [failure_slash_error_lines, exception_lines]
|
156
|
-
if sections.any? { |section| section.size > 1 } && !exception_lines.first.empty?
|
157
|
-
lines << ''
|
158
|
-
end
|
159
|
-
|
160
|
-
lines.concat(exception_lines)
|
161
|
-
lines.concat(extra_failure_lines)
|
162
|
-
end
|
163
|
-
end
|
164
|
-
|
165
|
-
def failure_slash_error_lines
|
166
|
-
lines = read_failed_lines
|
167
|
-
if lines.count == 1
|
168
|
-
lines[0] = "Failure/Error: #{lines[0].strip}"
|
169
|
-
else
|
170
|
-
least_indentation = SnippetExtractor.least_indentation_from(lines)
|
171
|
-
lines = lines.map { |line| line.sub(/^#{least_indentation}/, ' ') }
|
172
|
-
lines.unshift('Failure/Error:')
|
173
|
-
end
|
174
|
-
lines
|
175
|
-
end
|
176
|
-
|
177
|
-
def exception_lines
|
178
|
-
lines = []
|
179
|
-
lines << "#{exception_class_name}:" unless exception_class_name =~ /RSpec/
|
180
|
-
encoded_string(exception.message.to_s).split("\n").each do |line|
|
181
|
-
lines << (line.empty? ? line : " #{line}")
|
182
|
-
end
|
183
|
-
lines
|
184
|
-
end
|
185
|
-
|
186
|
-
def extra_failure_lines
|
187
|
-
@extra_failure_lines ||= begin
|
188
|
-
lines = Array(example.metadata[:extra_failure_lines])
|
189
|
-
unless lines.empty?
|
190
|
-
lines.unshift('')
|
191
|
-
lines.push('')
|
192
|
-
end
|
193
|
-
lines
|
194
|
-
end
|
195
|
-
end
|
196
|
-
|
197
|
-
def add_shared_group_lines(lines, colorizer)
|
198
|
-
return lines if @skip_shared_group_trace
|
199
|
-
|
200
|
-
example.metadata[:shared_group_inclusion_backtrace].each do |frame|
|
201
|
-
lines << colorizer.wrap(frame.description, RSpec.configuration.default_color)
|
202
|
-
end
|
203
|
-
|
204
|
-
lines
|
205
|
-
end
|
206
|
-
|
207
|
-
def read_failed_lines
|
208
|
-
matching_line = find_failed_line
|
209
|
-
unless matching_line
|
210
|
-
return ["Unable to find matching line from backtrace"]
|
211
|
-
end
|
212
|
-
|
213
|
-
file_and_line_number = matching_line.match(/(.+?):(\d+)(|:\d+)/)
|
214
|
-
|
215
|
-
unless file_and_line_number
|
216
|
-
return ["Unable to infer file and line number from backtrace"]
|
217
|
-
end
|
218
|
-
|
219
|
-
file_path, line_number = file_and_line_number[1..2]
|
220
|
-
max_line_count = RSpec.configuration.max_displayed_failure_line_count
|
221
|
-
lines = SnippetExtractor.extract_expression_lines_at(file_path, line_number.to_i, max_line_count)
|
222
|
-
RSpec.world.syntax_highlighter.highlight(lines)
|
223
|
-
rescue SnippetExtractor::NoSuchFileError
|
224
|
-
["Unable to find #{file_path} to read failed line"]
|
225
|
-
rescue SnippetExtractor::NoSuchLineError
|
226
|
-
["Unable to find matching line in #{file_path}"]
|
227
|
-
rescue SecurityError
|
228
|
-
["Unable to read failed line"]
|
229
|
-
end
|
230
|
-
|
231
|
-
def find_failed_line
|
232
|
-
line_regex = RSpec.configuration.in_project_source_dir_regex
|
233
|
-
loaded_spec_files = RSpec.configuration.loaded_spec_files
|
234
|
-
|
235
|
-
exception_backtrace.find do |line|
|
236
|
-
next unless (line_path = line[/(.+?):(\d+)(|:\d+)/, 1])
|
237
|
-
path = File.expand_path(line_path)
|
238
|
-
loaded_spec_files.include?(path) || path =~ line_regex
|
239
|
-
end || exception_backtrace.first
|
240
|
-
end
|
241
|
-
|
242
|
-
def formatted_message_and_backtrace(colorizer)
|
243
|
-
lines = colorized_message_lines(colorizer) + colorized_formatted_backtrace(colorizer)
|
244
|
-
encoding = encoding_of("")
|
245
|
-
lines.map do |line|
|
246
|
-
RSpec::Support::EncodedString.new(line, encoding)
|
247
|
-
end
|
248
|
-
end
|
249
|
-
|
250
|
-
if String.method_defined?(:encoding)
|
251
|
-
def encoded_description(description)
|
252
|
-
return if description.nil?
|
253
|
-
encoded_string(description)
|
254
|
-
end
|
255
|
-
else # for 1.8.7
|
256
|
-
def encoded_description(description)
|
257
|
-
description
|
258
|
-
end
|
259
|
-
end
|
260
|
-
|
261
|
-
def exception_backtrace
|
262
|
-
exception.backtrace || []
|
263
|
-
end
|
264
|
-
|
265
|
-
# @private
|
266
|
-
# Configuring the `ExceptionPresenter` with the right set of options to handle
|
267
|
-
# pending vs failed vs skipped and aggregated (or not) failures is not simple.
|
268
|
-
# This class takes care of building an appropriate `ExceptionPresenter` for the
|
269
|
-
# provided example.
|
270
|
-
class Factory
|
271
|
-
def build
|
272
|
-
ExceptionPresenter.new(@exception, @example, options)
|
273
|
-
end
|
274
|
-
|
275
|
-
private
|
276
|
-
|
277
|
-
def initialize(example)
|
278
|
-
@example = example
|
279
|
-
@execution_result = example.execution_result
|
280
|
-
@exception = if @execution_result.status == :pending
|
281
|
-
@execution_result.pending_exception
|
282
|
-
else
|
283
|
-
@execution_result.exception
|
284
|
-
end
|
285
|
-
end
|
286
|
-
|
287
|
-
def options
|
288
|
-
with_multiple_error_options_as_needed(@exception, pending_options || {})
|
289
|
-
end
|
290
|
-
|
291
|
-
def pending_options
|
292
|
-
if @execution_result.pending_fixed?
|
293
|
-
{
|
294
|
-
:description => "#{@example.full_description} FIXED",
|
295
|
-
:message_color => RSpec.configuration.fixed_color,
|
296
|
-
:failure_lines => [
|
297
|
-
"Expected pending '#{@execution_result.pending_message}' to fail. No error was raised."
|
298
|
-
]
|
299
|
-
}
|
300
|
-
elsif @execution_result.status == :pending
|
301
|
-
{
|
302
|
-
:message_color => RSpec.configuration.pending_color,
|
303
|
-
:detail_formatter => PENDING_DETAIL_FORMATTER
|
304
|
-
}
|
305
|
-
end
|
306
|
-
end
|
307
|
-
|
308
|
-
def with_multiple_error_options_as_needed(exception, options)
|
309
|
-
return options unless multiple_exceptions_error?(exception)
|
310
|
-
|
311
|
-
options = options.merge(
|
312
|
-
:failure_lines => [],
|
313
|
-
:extra_detail_formatter => sub_failure_list_formatter(exception, options[:message_color]),
|
314
|
-
:detail_formatter => multiple_exception_summarizer(exception,
|
315
|
-
options[:detail_formatter],
|
316
|
-
options[:message_color])
|
317
|
-
)
|
318
|
-
|
319
|
-
return options unless exception.aggregation_metadata[:hide_backtrace]
|
320
|
-
options[:backtrace_formatter] = EmptyBacktraceFormatter
|
321
|
-
options
|
322
|
-
end
|
323
|
-
|
324
|
-
def multiple_exceptions_error?(exception)
|
325
|
-
MultipleExceptionError::InterfaceTag === exception
|
326
|
-
end
|
327
|
-
|
328
|
-
def multiple_exception_summarizer(exception, prior_detail_formatter, color)
|
329
|
-
lambda do |example, colorizer|
|
330
|
-
summary = if exception.aggregation_metadata[:hide_backtrace]
|
331
|
-
# Since the backtrace is hidden, the subfailures will come
|
332
|
-
# immediately after this, and using `:` will read well.
|
333
|
-
"Got #{exception.exception_count_description}:"
|
334
|
-
else
|
335
|
-
# The backtrace comes after this, so using a `:` doesn't make sense
|
336
|
-
# since the failures may be many lines below.
|
337
|
-
"#{exception.summary}."
|
338
|
-
end
|
339
|
-
|
340
|
-
summary = colorizer.wrap(summary, color || RSpec.configuration.failure_color)
|
341
|
-
return summary unless prior_detail_formatter
|
342
|
-
[
|
343
|
-
prior_detail_formatter.call(example, colorizer),
|
344
|
-
summary
|
345
|
-
]
|
346
|
-
end
|
347
|
-
end
|
348
|
-
|
349
|
-
def sub_failure_list_formatter(exception, message_color)
|
350
|
-
common_backtrace_truncater = CommonBacktraceTruncater.new(exception)
|
351
|
-
|
352
|
-
lambda do |failure_number, colorizer|
|
353
|
-
FlatMap.flat_map(exception.all_exceptions.each_with_index) do |failure, index|
|
354
|
-
options = with_multiple_error_options_as_needed(
|
355
|
-
failure,
|
356
|
-
:description => nil,
|
357
|
-
:indentation => 0,
|
358
|
-
:message_color => message_color || RSpec.configuration.failure_color,
|
359
|
-
:skip_shared_group_trace => true
|
360
|
-
)
|
361
|
-
|
362
|
-
failure = common_backtrace_truncater.with_truncated_backtrace(failure)
|
363
|
-
presenter = ExceptionPresenter.new(failure, @example, options)
|
364
|
-
presenter.fully_formatted_lines(
|
365
|
-
"#{failure_number ? "#{failure_number}." : ''}#{index + 1}",
|
366
|
-
colorizer
|
367
|
-
)
|
368
|
-
end
|
369
|
-
end
|
370
|
-
end
|
371
|
-
|
372
|
-
# @private
|
373
|
-
# Used to prevent a confusing backtrace from showing up from the `aggregate_failures`
|
374
|
-
# block declared for `:aggregate_failures` metadata.
|
375
|
-
module EmptyBacktraceFormatter
|
376
|
-
def self.format_backtrace(*)
|
377
|
-
[]
|
378
|
-
end
|
379
|
-
end
|
380
|
-
|
381
|
-
# @private
|
382
|
-
class CommonBacktraceTruncater
|
383
|
-
def initialize(parent)
|
384
|
-
@parent = parent
|
385
|
-
end
|
386
|
-
|
387
|
-
def with_truncated_backtrace(child)
|
388
|
-
child_bt = child.backtrace
|
389
|
-
parent_bt = @parent.backtrace
|
390
|
-
return child if child_bt.nil? || child_bt.empty? || parent_bt.nil?
|
391
|
-
|
392
|
-
index_before_first_common_frame = -1.downto(-child_bt.size).find do |index|
|
393
|
-
parent_bt[index] != child_bt[index]
|
394
|
-
end
|
395
|
-
|
396
|
-
return child if index_before_first_common_frame.nil?
|
397
|
-
return child if index_before_first_common_frame == -1
|
398
|
-
|
399
|
-
child = child.dup
|
400
|
-
child.set_backtrace(child_bt[0..index_before_first_common_frame])
|
401
|
-
child
|
402
|
-
end
|
403
|
-
end
|
404
|
-
end
|
405
|
-
|
406
|
-
# @private
|
407
|
-
PENDING_DETAIL_FORMATTER = Proc.new do |example, colorizer|
|
408
|
-
colorizer.wrap("# #{example.execution_result.pending_message}", :detail)
|
409
|
-
end
|
410
|
-
end
|
411
|
-
end
|
412
|
-
|
413
|
-
# Provides a single exception instance that provides access to
|
414
|
-
# multiple sub-exceptions. This is used in situations where a single
|
415
|
-
# individual spec has multiple exceptions, such as one in the `it` block
|
416
|
-
# and one in an `after` block.
|
417
|
-
class MultipleExceptionError < StandardError
|
418
|
-
# @private
|
419
|
-
# Used so there is a common module in the ancestor chain of this class
|
420
|
-
# and `RSpec::Expectations::MultipleExpectationsNotMetError`, which allows
|
421
|
-
# code to detect exceptions that are instances of either, without first
|
422
|
-
# checking to see if rspec-expectations is loaded.
|
423
|
-
module InterfaceTag
|
424
|
-
# Appends the provided exception to the list.
|
425
|
-
# @param exception [Exception] Exception to append to the list.
|
426
|
-
# @private
|
427
|
-
def add(exception)
|
428
|
-
# `PendingExampleFixedError` can be assigned to an example that initially has no
|
429
|
-
# failures, but when the `aggregate_failures` around hook completes, it notifies of
|
430
|
-
# a failure. If we do not ignore `PendingExampleFixedError` it would be surfaced to
|
431
|
-
# the user as part of a multiple exception error, which is undesirable. While it's
|
432
|
-
# pretty weird we handle this here, it's the best solution I've been able to come
|
433
|
-
# up with, and `PendingExampleFixedError` always represents the _lack_ of any exception
|
434
|
-
# so clearly when we are transitioning to a `MultipleExceptionError`, it makes sense to
|
435
|
-
# ignore it.
|
436
|
-
return if Pending::PendingExampleFixedError === exception
|
437
|
-
|
438
|
-
return if exception == self
|
439
|
-
|
440
|
-
all_exceptions << exception
|
441
|
-
|
442
|
-
if exception.class.name =~ /RSpec/
|
443
|
-
failures << exception
|
444
|
-
else
|
445
|
-
other_errors << exception
|
446
|
-
end
|
447
|
-
end
|
448
|
-
|
449
|
-
# Provides a way to force `ex` to be something that satisfies the multiple
|
450
|
-
# exception error interface. If it already satisfies it, it will be returned;
|
451
|
-
# otherwise it will wrap it in a `MultipleExceptionError`.
|
452
|
-
# @private
|
453
|
-
def self.for(ex)
|
454
|
-
return ex if self === ex
|
455
|
-
MultipleExceptionError.new(ex)
|
456
|
-
end
|
457
|
-
end
|
458
|
-
|
459
|
-
include InterfaceTag
|
460
|
-
|
461
|
-
# @return [Array<Exception>] The list of failures.
|
462
|
-
attr_reader :failures
|
463
|
-
|
464
|
-
# @return [Array<Exception>] The list of other errors.
|
465
|
-
attr_reader :other_errors
|
466
|
-
|
467
|
-
# @return [Array<Exception>] The list of failures and other exceptions, combined.
|
468
|
-
attr_reader :all_exceptions
|
469
|
-
|
470
|
-
# @return [Hash] Metadata used by RSpec for formatting purposes.
|
471
|
-
attr_reader :aggregation_metadata
|
472
|
-
|
473
|
-
# @return [nil] Provided only for interface compatibility with
|
474
|
-
# `RSpec::Expectations::MultipleExpectationsNotMetError`.
|
475
|
-
attr_reader :aggregation_block_label
|
476
|
-
|
477
|
-
# @param exceptions [Array<Exception>] The initial list of exceptions.
|
478
|
-
def initialize(*exceptions)
|
479
|
-
super()
|
480
|
-
|
481
|
-
@failures = []
|
482
|
-
@other_errors = []
|
483
|
-
@all_exceptions = []
|
484
|
-
@aggregation_metadata = { :hide_backtrace => true }
|
485
|
-
@aggregation_block_label = nil
|
486
|
-
|
487
|
-
exceptions.each { |e| add e }
|
488
|
-
end
|
489
|
-
|
490
|
-
# @return [String] Combines all the exception messages into a single string.
|
491
|
-
# @note RSpec does not actually use this -- instead it formats each exception
|
492
|
-
# individually.
|
493
|
-
def message
|
494
|
-
all_exceptions.map(&:message).join("\n\n")
|
495
|
-
end
|
496
|
-
|
497
|
-
# @return [String] A summary of the failure, including the block label and a count of failures.
|
498
|
-
def summary
|
499
|
-
"Got #{exception_count_description}"
|
500
|
-
end
|
501
|
-
|
502
|
-
# return [String] A description of the failure/error counts.
|
503
|
-
def exception_count_description
|
504
|
-
failure_count = Formatters::Helpers.pluralize(failures.size, "failure")
|
505
|
-
return failure_count if other_errors.empty?
|
506
|
-
error_count = Formatters::Helpers.pluralize(other_errors.size, "other error")
|
507
|
-
"#{failure_count} and #{error_count}"
|
508
|
-
end
|
509
|
-
end
|
510
|
-
end
|
511
|
-
end
|