qiita_org 0.1.32 → 0.1.38
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -2
- data/Gemfile.lock +15 -15
- data/lib/qiita_org.rb +18 -36
- data/lib/qiita_org/access_qiita.rb +0 -2
- data/lib/qiita_org/all.rb +4 -4
- data/lib/qiita_org/base.rb +20 -0
- data/lib/qiita_org/config.rb +0 -2
- data/lib/qiita_org/error_message.rb +15 -10
- data/lib/qiita_org/get.rb +0 -4
- data/lib/qiita_org/get_multiple_files.rb +1 -4
- data/lib/qiita_org/get_template.rb +0 -33
- data/lib/qiita_org/list.rb +0 -5
- data/lib/qiita_org/md_converter_for_image.rb +1 -1
- data/lib/qiita_org/{file_open.rb → old_programs/file_open.rb} +0 -0
- data/lib/qiita_org/post.rb +12 -21
- data/lib/qiita_org/template.org +1 -1
- data/lib/qiita_org/upload.rb +13 -30
- data/lib/qiita_org/version.rb +1 -1
- data/tests/test.org +2 -1
- metadata +3 -2436
- data/.bandle/ruby/2.7.0/bin/htmldiff +0 -29
- data/.bandle/ruby/2.7.0/bin/ldiff +0 -29
- data/.bandle/ruby/2.7.0/bin/qiita_org +0 -27
- data/.bandle/ruby/2.7.0/bin/rake +0 -27
- data/.bandle/ruby/2.7.0/bin/rspec +0 -27
- data/.bandle/ruby/2.7.0/bin/thor +0 -27
- data/.bandle/ruby/2.7.0/cache/diff-lcs-1.4.4.gem +0 -0
- data/.bandle/ruby/2.7.0/cache/rake-12.3.3.gem +0 -0
- data/.bandle/ruby/2.7.0/cache/rspec-3.9.0.gem +0 -0
- data/.bandle/ruby/2.7.0/cache/rspec-core-3.9.2.gem +0 -0
- data/.bandle/ruby/2.7.0/cache/rspec-expectations-3.9.2.gem +0 -0
- data/.bandle/ruby/2.7.0/cache/rspec-mocks-3.9.1.gem +0 -0
- data/.bandle/ruby/2.7.0/cache/rspec-support-3.9.3.gem +0 -0
- data/.bandle/ruby/2.7.0/cache/thor-1.0.1.gem +0 -0
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/.rspec +0 -1
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/Code-of-Conduct.md +0 -74
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/Contributing.md +0 -118
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/History.md +0 -319
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/License.md +0 -39
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/Manifest.txt +0 -45
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/README.rdoc +0 -84
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/Rakefile +0 -74
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/autotest/discover.rb +0 -3
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/bin/htmldiff +0 -35
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/bin/ldiff +0 -9
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/docs/COPYING.txt +0 -339
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/docs/artistic.txt +0 -127
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff-lcs.rb +0 -3
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs.rb +0 -739
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/array.rb +0 -7
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/backports.rb +0 -9
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/block.rb +0 -37
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/callbacks.rb +0 -325
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/change.rb +0 -174
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/htmldiff.rb +0 -150
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/hunk.rb +0 -358
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/internals.rb +0 -304
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/ldiff.rb +0 -171
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/lib/diff/lcs/string.rb +0 -5
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/change_spec.rb +0 -89
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/diff_spec.rb +0 -51
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/aX +0 -1
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/bXaX +0 -1
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/ds1.csv +0 -50
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/ds2.csv +0 -51
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff +0 -4
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff-c +0 -7
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff-e +0 -3
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff-f +0 -3
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff-u +0 -5
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/hunk_spec.rb +0 -83
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/issues_spec.rb +0 -154
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/lcs_spec.rb +0 -56
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/ldiff_spec.rb +0 -87
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/patch_spec.rb +0 -416
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/sdiff_spec.rb +0 -214
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/spec_helper.rb +0 -375
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/traverse_balanced_spec.rb +0 -310
- data/.bandle/ruby/2.7.0/gems/diff-lcs-1.4.4/spec/traverse_sequences_spec.rb +0 -139
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/CONTRIBUTING.rdoc +0 -43
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/Gemfile +0 -3
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/History.rdoc +0 -2344
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/MIT-LICENSE +0 -21
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/README.rdoc +0 -156
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/Rakefile +0 -41
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/azure-pipelines.yml +0 -11
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/bin/bundle +0 -105
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/bin/console +0 -7
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/bin/rake +0 -29
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/bin/rdoc +0 -29
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/bin/rubocop +0 -29
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/bin/setup +0 -6
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/command_line_usage.rdoc +0 -158
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/example/Rakefile1 +0 -38
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/example/Rakefile2 +0 -35
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/example/a.c +0 -6
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/example/b.c +0 -6
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/example/main.c +0 -11
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/glossary.rdoc +0 -42
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/jamis.rb +0 -592
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/proto_rake.rdoc +0 -127
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/rake.1 +0 -156
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/rakefile.rdoc +0 -622
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/doc/rational.rdoc +0 -151
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/exe/rake +0 -27
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake.rb +0 -71
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/application.rb +0 -824
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/backtrace.rb +0 -24
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/clean.rb +0 -78
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/cloneable.rb +0 -17
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/cpu_counter.rb +0 -107
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/default_loader.rb +0 -15
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/dsl_definition.rb +0 -195
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/early_time.rb +0 -22
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/ext/core.rb +0 -26
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/ext/string.rb +0 -176
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_creation_task.rb +0 -25
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_list.rb +0 -435
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_task.rb +0 -54
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_utils.rb +0 -137
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/file_utils_ext.rb +0 -145
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/invocation_chain.rb +0 -57
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/invocation_exception_mixin.rb +0 -17
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/late_time.rb +0 -18
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/linked_list.rb +0 -112
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/loaders/makefile.rb +0 -54
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/multi_task.rb +0 -14
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/name_space.rb +0 -38
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/packagetask.rb +0 -207
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/phony.rb +0 -16
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/private_reader.rb +0 -21
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/promise.rb +0 -100
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/pseudo_status.rb +0 -30
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/rake_module.rb +0 -67
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/rake_test_loader.rb +0 -27
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/rule_recursion_overflow_error.rb +0 -20
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/scope.rb +0 -43
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/task.rb +0 -413
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/task_argument_error.rb +0 -8
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/task_arguments.rb +0 -109
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/task_manager.rb +0 -324
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/tasklib.rb +0 -12
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/testtask.rb +0 -224
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/thread_history_display.rb +0 -49
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/thread_pool.rb +0 -163
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/trace_output.rb +0 -23
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/version.rb +0 -10
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/lib/rake/win32.rb +0 -51
- data/.bandle/ruby/2.7.0/gems/rake-12.3.3/rake.gemspec +0 -42
- data/.bandle/ruby/2.7.0/gems/rspec-3.9.0/LICENSE.md +0 -27
- data/.bandle/ruby/2.7.0/gems/rspec-3.9.0/README.md +0 -43
- data/.bandle/ruby/2.7.0/gems/rspec-3.9.0/lib/rspec.rb +0 -3
- data/.bandle/ruby/2.7.0/gems/rspec-3.9.0/lib/rspec/version.rb +0 -5
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/.document +0 -5
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/.yardopts +0 -8
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/Changelog.md +0 -2291
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/LICENSE.md +0 -26
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/README.md +0 -384
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/exe/rspec +0 -4
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/autorun.rb +0 -3
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core.rb +0 -186
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/backtrace_formatter.rb +0 -65
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/coordinator.rb +0 -62
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/example_minimizer.rb +0 -173
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/fork_runner.rb +0 -135
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/server.rb +0 -61
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/shell_command.rb +0 -126
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/shell_runner.rb +0 -73
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/utilities.rb +0 -58
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/configuration.rb +0 -2363
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/configuration_options.rb +0 -233
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/did_you_mean.rb +0 -46
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/drb.rb +0 -113
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/dsl.rb +0 -98
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/example.rb +0 -656
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/example_group.rb +0 -900
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/example_status_persister.rb +0 -235
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/filter_manager.rb +0 -231
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/flat_map.rb +0 -20
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters.rb +0 -273
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/base_bisect_formatter.rb +0 -45
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/base_formatter.rb +0 -70
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/base_text_formatter.rb +0 -75
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/bisect_drb_formatter.rb +0 -29
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/bisect_progress_formatter.rb +0 -157
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/console_codes.rb +0 -68
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/deprecation_formatter.rb +0 -223
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/documentation_formatter.rb +0 -102
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/exception_presenter.rb +0 -511
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/failure_list_formatter.rb +0 -23
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/fallback_message_formatter.rb +0 -28
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/helpers.rb +0 -110
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/html_formatter.rb +0 -153
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/html_printer.rb +0 -414
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/html_snippet_extractor.rb +0 -120
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/json_formatter.rb +0 -102
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/profile_formatter.rb +0 -68
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/progress_formatter.rb +0 -29
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/protocol.rb +0 -182
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/snippet_extractor.rb +0 -134
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/syntax_highlighter.rb +0 -91
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/hooks.rb +0 -641
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/invocations.rb +0 -87
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/memoized_helpers.rb +0 -554
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/metadata.rb +0 -498
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/metadata_filter.rb +0 -255
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/minitest_assertions_adapter.rb +0 -31
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/flexmock.rb +0 -31
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/mocha.rb +0 -57
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/null.rb +0 -14
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/rr.rb +0 -31
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/rspec.rb +0 -32
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/notifications.rb +0 -521
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/option_parser.rb +0 -316
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/ordering.rb +0 -158
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/output_wrapper.rb +0 -29
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/pending.rb +0 -165
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/profiler.rb +0 -34
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/project_initializer.rb +0 -48
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/project_initializer/.rspec +0 -1
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/project_initializer/spec/spec_helper.rb +0 -100
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/rake_task.rb +0 -188
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/reporter.rb +0 -265
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/ruby_project.rb +0 -53
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/runner.rb +0 -204
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/sandbox.rb +0 -37
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/set.rb +0 -54
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/shared_context.rb +0 -55
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/shared_example_group.rb +0 -271
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/shell_escape.rb +0 -49
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/test_unit_assertions_adapter.rb +0 -30
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/version.rb +0 -9
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/warnings.rb +0 -40
- data/.bandle/ruby/2.7.0/gems/rspec-core-3.9.2/lib/rspec/core/world.rb +0 -276
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/.document +0 -5
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/.yardopts +0 -6
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/Changelog.md +0 -1191
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/LICENSE.md +0 -25
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/README.md +0 -320
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations.rb +0 -82
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/block_snippet_extractor.rb +0 -253
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/configuration.rb +0 -215
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/expectation_target.rb +0 -127
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/fail_with.rb +0 -39
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/failure_aggregator.rb +0 -194
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/handler.rb +0 -170
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/minitest_integration.rb +0 -58
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/syntax.rb +0 -132
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/version.rb +0 -8
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers.rb +0 -1038
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/aliased_matcher.rb +0 -116
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in.rb +0 -52
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/all.rb +0 -86
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/base_matcher.rb +0 -193
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be.rb +0 -288
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_between.rb +0 -77
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_instance_of.rb +0 -26
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_kind_of.rb +0 -20
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_within.rb +0 -72
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/change.rb +0 -428
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/compound.rb +0 -276
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/contain_exactly.rb +0 -302
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/cover.rb +0 -24
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/eq.rb +0 -40
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/eql.rb +0 -34
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/equal.rb +0 -81
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/exist.rb +0 -90
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/has.rb +0 -103
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/have_attributes.rb +0 -114
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/include.rb +0 -149
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/match.rb +0 -106
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/operators.rb +0 -128
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/output.rb +0 -200
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/raise_error.rb +0 -230
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/respond_to.rb +0 -199
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/satisfy.rb +0 -60
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/start_or_end_with.rb +0 -94
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/throw_symbol.rb +0 -132
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/yield.rb +0 -441
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/composable.rb +0 -171
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/dsl.rb +0 -540
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/english_phrasing.rb +0 -58
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +0 -82
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/fail_matchers.rb +0 -42
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/generated_descriptions.rb +0 -41
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/matcher_delegator.rb +0 -35
- data/.bandle/ruby/2.7.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/matcher_protocol.rb +0 -99
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/.document +0 -5
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/.yardopts +0 -6
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/Changelog.md +0 -1133
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/LICENSE.md +0 -25
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/README.md +0 -463
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks.rb +0 -130
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance.rb +0 -11
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/chain.rb +0 -111
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/error_generator.rb +0 -31
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb +0 -31
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expectation_chain.rb +0 -50
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/message_chains.rb +0 -83
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/proxy.rb +0 -116
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/recorder.rb +0 -294
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/stub_chain.rb +0 -51
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/stub_chain_chain.rb +0 -23
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/argument_list_matcher.rb +0 -100
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/argument_matchers.rb +0 -322
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/configuration.rb +0 -212
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/error_generator.rb +0 -369
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/example_methods.rb +0 -434
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/instance_method_stasher.rb +0 -146
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/marshal_extension.rb +0 -41
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/expectation_customization.rb +0 -20
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/have_received.rb +0 -134
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/receive.rb +0 -132
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/receive_message_chain.rb +0 -82
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/receive_messages.rb +0 -77
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/message_chain.rb +0 -87
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/message_expectation.rb +0 -751
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/method_double.rb +0 -287
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/method_reference.rb +0 -202
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/minitest_integration.rb +0 -68
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/mutate_const.rb +0 -339
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/object_reference.rb +0 -149
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/order_group.rb +0 -81
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/proxy.rb +0 -503
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/space.rb +0 -238
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/standalone.rb +0 -3
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/syntax.rb +0 -325
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/targets.rb +0 -124
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/test_double.rb +0 -171
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/verifying_double.rb +0 -129
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/verifying_message_expectation.rb +0 -54
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/verifying_proxy.rb +0 -220
- data/.bandle/ruby/2.7.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/version.rb +0 -9
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/Changelog.md +0 -302
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/LICENSE.md +0 -23
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/README.md +0 -40
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support.rb +0 -149
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/caller_filter.rb +0 -83
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/comparable_version.rb +0 -46
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/differ.rb +0 -215
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/directory_maker.rb +0 -63
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/encoded_string.rb +0 -161
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/fuzzy_matcher.rb +0 -48
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/hunk_generator.rb +0 -47
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/matcher_definition.rb +0 -42
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/method_signature_verifier.rb +0 -438
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/mutex.rb +0 -73
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/object_formatter.rb +0 -275
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/recursive_const_methods.rb +0 -76
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/reentrant_mutex.rb +0 -61
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/ruby_features.rb +0 -190
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/source.rb +0 -75
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/source/location.rb +0 -21
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/source/node.rb +0 -110
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/source/token.rb +0 -87
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec.rb +0 -81
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/deprecation_helpers.rb +0 -64
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/formatting_support.rb +0 -9
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/in_sub_process.rb +0 -69
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/library_wide_checks.rb +0 -150
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/shell_out.rb +0 -89
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/stderr_splitter.rb +0 -75
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/string_matcher.rb +0 -46
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/with_isolated_directory.rb +0 -13
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/with_isolated_stderr.rb +0 -13
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/version.rb +0 -7
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/warnings.rb +0 -39
- data/.bandle/ruby/2.7.0/gems/rspec-support-3.9.3/lib/rspec/support/with_keywords_when_needed.rb +0 -33
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/.document +0 -5
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/CHANGELOG.md +0 -220
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/CONTRIBUTING.md +0 -15
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/LICENSE.md +0 -20
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/README.md +0 -51
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/bin/thor +0 -6
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor.rb +0 -517
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/actions.rb +0 -336
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/actions/create_file.rb +0 -104
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/actions/create_link.rb +0 -61
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/actions/directory.rb +0 -108
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/actions/empty_directory.rb +0 -143
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/actions/file_manipulation.rb +0 -373
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/actions/inject_into_file.rb +0 -120
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/base.rb +0 -699
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/command.rb +0 -142
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/core_ext/hash_with_indifferent_access.rb +0 -97
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/error.rb +0 -110
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/group.rb +0 -281
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/invocation.rb +0 -178
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/line_editor.rb +0 -17
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/line_editor/basic.rb +0 -37
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/line_editor/readline.rb +0 -88
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/nested_context.rb +0 -29
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/parser.rb +0 -4
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/parser/argument.rb +0 -70
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/parser/arguments.rb +0 -175
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/parser/option.rb +0 -159
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/parser/options.rb +0 -236
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/rake_compat.rb +0 -72
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/runner.rb +0 -325
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/shell.rb +0 -81
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/shell/basic.rb +0 -491
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/shell/color.rb +0 -153
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/shell/html.rb +0 -126
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/util.rb +0 -284
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/lib/thor/version.rb +0 -3
- data/.bandle/ruby/2.7.0/gems/thor-1.0.1/thor.gemspec +0 -28
- data/.bandle/ruby/2.7.0/specifications/diff-lcs-1.4.4.gemspec +0 -50
- data/.bandle/ruby/2.7.0/specifications/rake-12.3.3.gemspec +0 -43
- data/.bandle/ruby/2.7.0/specifications/rspec-3.9.0.gemspec +0 -39
- data/.bandle/ruby/2.7.0/specifications/rspec-core-3.9.2.gemspec +0 -53
- data/.bandle/ruby/2.7.0/specifications/rspec-expectations-3.9.2.gemspec +0 -44
- data/.bandle/ruby/2.7.0/specifications/rspec-mocks-3.9.1.gemspec +0 -44
- data/.bandle/ruby/2.7.0/specifications/rspec-support-3.9.3.gemspec +0 -36
- data/.bandle/ruby/2.7.0/specifications/thor-1.0.1.gemspec +0 -34
- data/lib/qiita_org/hoge.txt +0 -3
@@ -1,142 +0,0 @@
|
|
1
|
-
class Thor
|
2
|
-
class Command < Struct.new(:name, :description, :long_description, :usage, :options, :ancestor_name)
|
3
|
-
FILE_REGEXP = /^#{Regexp.escape(File.dirname(__FILE__))}/
|
4
|
-
|
5
|
-
def initialize(name, description, long_description, usage, options = nil)
|
6
|
-
super(name.to_s, description, long_description, usage, options || {})
|
7
|
-
end
|
8
|
-
|
9
|
-
def initialize_copy(other) #:nodoc:
|
10
|
-
super(other)
|
11
|
-
self.options = other.options.dup if other.options
|
12
|
-
end
|
13
|
-
|
14
|
-
def hidden?
|
15
|
-
false
|
16
|
-
end
|
17
|
-
|
18
|
-
# By default, a command invokes a method in the thor class. You can change this
|
19
|
-
# implementation to create custom commands.
|
20
|
-
def run(instance, args = [])
|
21
|
-
arity = nil
|
22
|
-
|
23
|
-
if private_method?(instance)
|
24
|
-
instance.class.handle_no_command_error(name)
|
25
|
-
elsif public_method?(instance)
|
26
|
-
arity = instance.method(name).arity
|
27
|
-
instance.__send__(name, *args)
|
28
|
-
elsif local_method?(instance, :method_missing)
|
29
|
-
instance.__send__(:method_missing, name.to_sym, *args)
|
30
|
-
else
|
31
|
-
instance.class.handle_no_command_error(name)
|
32
|
-
end
|
33
|
-
rescue ArgumentError => e
|
34
|
-
handle_argument_error?(instance, e, caller) ? instance.class.handle_argument_error(self, e, args, arity) : (raise e)
|
35
|
-
rescue NoMethodError => e
|
36
|
-
handle_no_method_error?(instance, e, caller) ? instance.class.handle_no_command_error(name) : (raise e)
|
37
|
-
end
|
38
|
-
|
39
|
-
# Returns the formatted usage by injecting given required arguments
|
40
|
-
# and required options into the given usage.
|
41
|
-
def formatted_usage(klass, namespace = true, subcommand = false)
|
42
|
-
if ancestor_name
|
43
|
-
formatted = "#{ancestor_name} ".dup # add space
|
44
|
-
elsif namespace
|
45
|
-
namespace = klass.namespace
|
46
|
-
formatted = "#{namespace.gsub(/^(default)/, '')}:".dup
|
47
|
-
end
|
48
|
-
formatted ||= "#{klass.namespace.split(':').last} ".dup if subcommand
|
49
|
-
|
50
|
-
formatted ||= "".dup
|
51
|
-
|
52
|
-
Array(usage).map do |specific_usage|
|
53
|
-
formatted_specific_usage = formatted
|
54
|
-
|
55
|
-
formatted_specific_usage += required_arguments_for(klass, specific_usage)
|
56
|
-
|
57
|
-
# Add required options
|
58
|
-
formatted_specific_usage += " #{required_options}"
|
59
|
-
|
60
|
-
# Strip and go!
|
61
|
-
formatted_specific_usage.strip
|
62
|
-
end.join("\n")
|
63
|
-
end
|
64
|
-
|
65
|
-
protected
|
66
|
-
|
67
|
-
# Add usage with required arguments
|
68
|
-
def required_arguments_for(klass, usage)
|
69
|
-
if klass && !klass.arguments.empty?
|
70
|
-
usage.to_s.gsub(/^#{name}/) do |match|
|
71
|
-
match << " " << klass.arguments.map(&:usage).compact.join(" ")
|
72
|
-
end
|
73
|
-
else
|
74
|
-
usage.to_s
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
|
-
def not_debugging?(instance)
|
79
|
-
!(instance.class.respond_to?(:debugging) && instance.class.debugging)
|
80
|
-
end
|
81
|
-
|
82
|
-
def required_options
|
83
|
-
@required_options ||= options.map { |_, o| o.usage if o.required? }.compact.sort.join(" ")
|
84
|
-
end
|
85
|
-
|
86
|
-
# Given a target, checks if this class name is a public method.
|
87
|
-
def public_method?(instance) #:nodoc:
|
88
|
-
!(instance.public_methods & [name.to_s, name.to_sym]).empty?
|
89
|
-
end
|
90
|
-
|
91
|
-
def private_method?(instance)
|
92
|
-
!(instance.private_methods & [name.to_s, name.to_sym]).empty?
|
93
|
-
end
|
94
|
-
|
95
|
-
def local_method?(instance, name)
|
96
|
-
methods = instance.public_methods(false) + instance.private_methods(false) + instance.protected_methods(false)
|
97
|
-
!(methods & [name.to_s, name.to_sym]).empty?
|
98
|
-
end
|
99
|
-
|
100
|
-
def sans_backtrace(backtrace, caller) #:nodoc:
|
101
|
-
saned = backtrace.reject { |frame| frame =~ FILE_REGEXP || (frame =~ /\.java:/ && RUBY_PLATFORM =~ /java/) || (frame =~ %r{^kernel/} && RUBY_ENGINE =~ /rbx/) }
|
102
|
-
saned - caller
|
103
|
-
end
|
104
|
-
|
105
|
-
def handle_argument_error?(instance, error, caller)
|
106
|
-
not_debugging?(instance) && (error.message =~ /wrong number of arguments/ || error.message =~ /given \d*, expected \d*/) && begin
|
107
|
-
saned = sans_backtrace(error.backtrace, caller)
|
108
|
-
saned.empty? || saned.size == 1
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
def handle_no_method_error?(instance, error, caller)
|
113
|
-
not_debugging?(instance) &&
|
114
|
-
error.message =~ /^undefined method `#{name}' for #{Regexp.escape(instance.to_s)}$/
|
115
|
-
end
|
116
|
-
end
|
117
|
-
Task = Command
|
118
|
-
|
119
|
-
# A command that is hidden in help messages but still invocable.
|
120
|
-
class HiddenCommand < Command
|
121
|
-
def hidden?
|
122
|
-
true
|
123
|
-
end
|
124
|
-
end
|
125
|
-
HiddenTask = HiddenCommand
|
126
|
-
|
127
|
-
# A dynamic command that handles method missing scenarios.
|
128
|
-
class DynamicCommand < Command
|
129
|
-
def initialize(name, options = nil)
|
130
|
-
super(name.to_s, "A dynamically-generated command", name.to_s, name.to_s, options)
|
131
|
-
end
|
132
|
-
|
133
|
-
def run(instance, args = [])
|
134
|
-
if (instance.methods & [name.to_s, name.to_sym]).empty?
|
135
|
-
super
|
136
|
-
else
|
137
|
-
instance.class.handle_no_command_error(name)
|
138
|
-
end
|
139
|
-
end
|
140
|
-
end
|
141
|
-
DynamicTask = DynamicCommand
|
142
|
-
end
|
@@ -1,97 +0,0 @@
|
|
1
|
-
class Thor
|
2
|
-
module CoreExt #:nodoc:
|
3
|
-
# A hash with indifferent access and magic predicates.
|
4
|
-
#
|
5
|
-
# hash = Thor::CoreExt::HashWithIndifferentAccess.new 'foo' => 'bar', 'baz' => 'bee', 'force' => true
|
6
|
-
#
|
7
|
-
# hash[:foo] #=> 'bar'
|
8
|
-
# hash['foo'] #=> 'bar'
|
9
|
-
# hash.foo? #=> true
|
10
|
-
#
|
11
|
-
class HashWithIndifferentAccess < ::Hash #:nodoc:
|
12
|
-
def initialize(hash = {})
|
13
|
-
super()
|
14
|
-
hash.each do |key, value|
|
15
|
-
self[convert_key(key)] = value
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
def [](key)
|
20
|
-
super(convert_key(key))
|
21
|
-
end
|
22
|
-
|
23
|
-
def []=(key, value)
|
24
|
-
super(convert_key(key), value)
|
25
|
-
end
|
26
|
-
|
27
|
-
def delete(key)
|
28
|
-
super(convert_key(key))
|
29
|
-
end
|
30
|
-
|
31
|
-
def fetch(key, *args)
|
32
|
-
super(convert_key(key), *args)
|
33
|
-
end
|
34
|
-
|
35
|
-
def key?(key)
|
36
|
-
super(convert_key(key))
|
37
|
-
end
|
38
|
-
|
39
|
-
def values_at(*indices)
|
40
|
-
indices.map { |key| self[convert_key(key)] }
|
41
|
-
end
|
42
|
-
|
43
|
-
def merge(other)
|
44
|
-
dup.merge!(other)
|
45
|
-
end
|
46
|
-
|
47
|
-
def merge!(other)
|
48
|
-
other.each do |key, value|
|
49
|
-
self[convert_key(key)] = value
|
50
|
-
end
|
51
|
-
self
|
52
|
-
end
|
53
|
-
|
54
|
-
def reverse_merge(other)
|
55
|
-
self.class.new(other).merge(self)
|
56
|
-
end
|
57
|
-
|
58
|
-
def reverse_merge!(other_hash)
|
59
|
-
replace(reverse_merge(other_hash))
|
60
|
-
end
|
61
|
-
|
62
|
-
def replace(other_hash)
|
63
|
-
super(other_hash)
|
64
|
-
end
|
65
|
-
|
66
|
-
# Convert to a Hash with String keys.
|
67
|
-
def to_hash
|
68
|
-
Hash.new(default).merge!(self)
|
69
|
-
end
|
70
|
-
|
71
|
-
protected
|
72
|
-
|
73
|
-
def convert_key(key)
|
74
|
-
key.is_a?(Symbol) ? key.to_s : key
|
75
|
-
end
|
76
|
-
|
77
|
-
# Magic predicates. For instance:
|
78
|
-
#
|
79
|
-
# options.force? # => !!options['force']
|
80
|
-
# options.shebang # => "/usr/lib/local/ruby"
|
81
|
-
# options.test_framework?(:rspec) # => options[:test_framework] == :rspec
|
82
|
-
#
|
83
|
-
def method_missing(method, *args)
|
84
|
-
method = method.to_s
|
85
|
-
if method =~ /^(\w+)\?$/
|
86
|
-
if args.empty?
|
87
|
-
!!self[$1]
|
88
|
-
else
|
89
|
-
self[$1] == args.first
|
90
|
-
end
|
91
|
-
else
|
92
|
-
self[method]
|
93
|
-
end
|
94
|
-
end
|
95
|
-
end
|
96
|
-
end
|
97
|
-
end
|
@@ -1,110 +0,0 @@
|
|
1
|
-
class Thor
|
2
|
-
Correctable = if defined?(DidYouMean::SpellChecker) && defined?(DidYouMean::Correctable)
|
3
|
-
# In order to support versions of Ruby that don't have keyword
|
4
|
-
# arguments, we need our own spell checker class that doesn't take key
|
5
|
-
# words. Even though this code wouldn't be hit because of the check
|
6
|
-
# above, it's still necessary because the interpreter would otherwise be
|
7
|
-
# unable to parse the file.
|
8
|
-
class NoKwargSpellChecker < DidYouMean::SpellChecker # :nodoc:
|
9
|
-
def initialize(dictionary)
|
10
|
-
@dictionary = dictionary
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
DidYouMean::Correctable
|
15
|
-
end
|
16
|
-
|
17
|
-
# Thor::Error is raised when it's caused by wrong usage of thor classes. Those
|
18
|
-
# errors have their backtrace suppressed and are nicely shown to the user.
|
19
|
-
#
|
20
|
-
# Errors that are caused by the developer, like declaring a method which
|
21
|
-
# overwrites a thor keyword, SHOULD NOT raise a Thor::Error. This way, we
|
22
|
-
# ensure that developer errors are shown with full backtrace.
|
23
|
-
class Error < StandardError
|
24
|
-
end
|
25
|
-
|
26
|
-
# Raised when a command was not found.
|
27
|
-
class UndefinedCommandError < Error
|
28
|
-
class SpellChecker
|
29
|
-
attr_reader :error
|
30
|
-
|
31
|
-
def initialize(error)
|
32
|
-
@error = error
|
33
|
-
end
|
34
|
-
|
35
|
-
def corrections
|
36
|
-
@corrections ||= spell_checker.correct(error.command).map(&:inspect)
|
37
|
-
end
|
38
|
-
|
39
|
-
def spell_checker
|
40
|
-
NoKwargSpellChecker.new(error.all_commands)
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
attr_reader :command, :all_commands
|
45
|
-
|
46
|
-
def initialize(command, all_commands, namespace)
|
47
|
-
@command = command
|
48
|
-
@all_commands = all_commands
|
49
|
-
|
50
|
-
message = "Could not find command #{command.inspect}"
|
51
|
-
message = namespace ? "#{message} in #{namespace.inspect} namespace." : "#{message}."
|
52
|
-
|
53
|
-
super(message)
|
54
|
-
end
|
55
|
-
|
56
|
-
prepend Correctable if Correctable
|
57
|
-
end
|
58
|
-
UndefinedTaskError = UndefinedCommandError
|
59
|
-
|
60
|
-
class AmbiguousCommandError < Error
|
61
|
-
end
|
62
|
-
AmbiguousTaskError = AmbiguousCommandError
|
63
|
-
|
64
|
-
# Raised when a command was found, but not invoked properly.
|
65
|
-
class InvocationError < Error
|
66
|
-
end
|
67
|
-
|
68
|
-
class UnknownArgumentError < Error
|
69
|
-
class SpellChecker
|
70
|
-
attr_reader :error
|
71
|
-
|
72
|
-
def initialize(error)
|
73
|
-
@error = error
|
74
|
-
end
|
75
|
-
|
76
|
-
def corrections
|
77
|
-
@corrections ||=
|
78
|
-
error.unknown.flat_map { |unknown| spell_checker.correct(unknown) }.uniq.map(&:inspect)
|
79
|
-
end
|
80
|
-
|
81
|
-
def spell_checker
|
82
|
-
@spell_checker ||= NoKwargSpellChecker.new(error.switches)
|
83
|
-
end
|
84
|
-
end
|
85
|
-
|
86
|
-
attr_reader :switches, :unknown
|
87
|
-
|
88
|
-
def initialize(switches, unknown)
|
89
|
-
@switches = switches
|
90
|
-
@unknown = unknown
|
91
|
-
|
92
|
-
super("Unknown switches #{unknown.map(&:inspect).join(', ')}")
|
93
|
-
end
|
94
|
-
|
95
|
-
prepend Correctable if Correctable
|
96
|
-
end
|
97
|
-
|
98
|
-
class RequiredArgumentMissingError < InvocationError
|
99
|
-
end
|
100
|
-
|
101
|
-
class MalformattedArgumentError < InvocationError
|
102
|
-
end
|
103
|
-
|
104
|
-
if Correctable
|
105
|
-
DidYouMean::SPELL_CHECKERS.merge!(
|
106
|
-
'Thor::UndefinedCommandError' => UndefinedCommandError::SpellChecker,
|
107
|
-
'Thor::UnknownArgumentError' => UnknownArgumentError::SpellChecker
|
108
|
-
)
|
109
|
-
end
|
110
|
-
end
|
@@ -1,281 +0,0 @@
|
|
1
|
-
require_relative "base"
|
2
|
-
|
3
|
-
# Thor has a special class called Thor::Group. The main difference to Thor class
|
4
|
-
# is that it invokes all commands at once. It also include some methods that allows
|
5
|
-
# invocations to be done at the class method, which are not available to Thor
|
6
|
-
# commands.
|
7
|
-
class Thor::Group
|
8
|
-
class << self
|
9
|
-
# The description for this Thor::Group. If none is provided, but a source root
|
10
|
-
# exists, tries to find the USAGE one folder above it, otherwise searches
|
11
|
-
# in the superclass.
|
12
|
-
#
|
13
|
-
# ==== Parameters
|
14
|
-
# description<String>:: The description for this Thor::Group.
|
15
|
-
#
|
16
|
-
def desc(description = nil)
|
17
|
-
if description
|
18
|
-
@desc = description
|
19
|
-
else
|
20
|
-
@desc ||= from_superclass(:desc, nil)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
# Prints help information.
|
25
|
-
#
|
26
|
-
# ==== Options
|
27
|
-
# short:: When true, shows only usage.
|
28
|
-
#
|
29
|
-
def help(shell)
|
30
|
-
shell.say "Usage:"
|
31
|
-
shell.say " #{banner}\n"
|
32
|
-
shell.say
|
33
|
-
class_options_help(shell)
|
34
|
-
shell.say desc if desc
|
35
|
-
end
|
36
|
-
|
37
|
-
# Stores invocations for this class merging with superclass values.
|
38
|
-
#
|
39
|
-
def invocations #:nodoc:
|
40
|
-
@invocations ||= from_superclass(:invocations, {})
|
41
|
-
end
|
42
|
-
|
43
|
-
# Stores invocation blocks used on invoke_from_option.
|
44
|
-
#
|
45
|
-
def invocation_blocks #:nodoc:
|
46
|
-
@invocation_blocks ||= from_superclass(:invocation_blocks, {})
|
47
|
-
end
|
48
|
-
|
49
|
-
# Invoke the given namespace or class given. It adds an instance
|
50
|
-
# method that will invoke the klass and command. You can give a block to
|
51
|
-
# configure how it will be invoked.
|
52
|
-
#
|
53
|
-
# The namespace/class given will have its options showed on the help
|
54
|
-
# usage. Check invoke_from_option for more information.
|
55
|
-
#
|
56
|
-
def invoke(*names, &block)
|
57
|
-
options = names.last.is_a?(Hash) ? names.pop : {}
|
58
|
-
verbose = options.fetch(:verbose, true)
|
59
|
-
|
60
|
-
names.each do |name|
|
61
|
-
invocations[name] = false
|
62
|
-
invocation_blocks[name] = block if block_given?
|
63
|
-
|
64
|
-
class_eval <<-METHOD, __FILE__, __LINE__ + 1
|
65
|
-
def _invoke_#{name.to_s.gsub(/\W/, '_')}
|
66
|
-
klass, command = self.class.prepare_for_invocation(nil, #{name.inspect})
|
67
|
-
|
68
|
-
if klass
|
69
|
-
say_status :invoke, #{name.inspect}, #{verbose.inspect}
|
70
|
-
block = self.class.invocation_blocks[#{name.inspect}]
|
71
|
-
_invoke_for_class_method klass, command, &block
|
72
|
-
else
|
73
|
-
say_status :error, %(#{name.inspect} [not found]), :red
|
74
|
-
end
|
75
|
-
end
|
76
|
-
METHOD
|
77
|
-
end
|
78
|
-
end
|
79
|
-
|
80
|
-
# Invoke a thor class based on the value supplied by the user to the
|
81
|
-
# given option named "name". A class option must be created before this
|
82
|
-
# method is invoked for each name given.
|
83
|
-
#
|
84
|
-
# ==== Examples
|
85
|
-
#
|
86
|
-
# class GemGenerator < Thor::Group
|
87
|
-
# class_option :test_framework, :type => :string
|
88
|
-
# invoke_from_option :test_framework
|
89
|
-
# end
|
90
|
-
#
|
91
|
-
# ==== Boolean options
|
92
|
-
#
|
93
|
-
# In some cases, you want to invoke a thor class if some option is true or
|
94
|
-
# false. This is automatically handled by invoke_from_option. Then the
|
95
|
-
# option name is used to invoke the generator.
|
96
|
-
#
|
97
|
-
# ==== Preparing for invocation
|
98
|
-
#
|
99
|
-
# In some cases you want to customize how a specified hook is going to be
|
100
|
-
# invoked. You can do that by overwriting the class method
|
101
|
-
# prepare_for_invocation. The class method must necessarily return a klass
|
102
|
-
# and an optional command.
|
103
|
-
#
|
104
|
-
# ==== Custom invocations
|
105
|
-
#
|
106
|
-
# You can also supply a block to customize how the option is going to be
|
107
|
-
# invoked. The block receives two parameters, an instance of the current
|
108
|
-
# class and the klass to be invoked.
|
109
|
-
#
|
110
|
-
def invoke_from_option(*names, &block)
|
111
|
-
options = names.last.is_a?(Hash) ? names.pop : {}
|
112
|
-
verbose = options.fetch(:verbose, :white)
|
113
|
-
|
114
|
-
names.each do |name|
|
115
|
-
unless class_options.key?(name)
|
116
|
-
raise ArgumentError, "You have to define the option #{name.inspect} " \
|
117
|
-
"before setting invoke_from_option."
|
118
|
-
end
|
119
|
-
|
120
|
-
invocations[name] = true
|
121
|
-
invocation_blocks[name] = block if block_given?
|
122
|
-
|
123
|
-
class_eval <<-METHOD, __FILE__, __LINE__ + 1
|
124
|
-
def _invoke_from_option_#{name.to_s.gsub(/\W/, '_')}
|
125
|
-
return unless options[#{name.inspect}]
|
126
|
-
|
127
|
-
value = options[#{name.inspect}]
|
128
|
-
value = #{name.inspect} if TrueClass === value
|
129
|
-
klass, command = self.class.prepare_for_invocation(#{name.inspect}, value)
|
130
|
-
|
131
|
-
if klass
|
132
|
-
say_status :invoke, value, #{verbose.inspect}
|
133
|
-
block = self.class.invocation_blocks[#{name.inspect}]
|
134
|
-
_invoke_for_class_method klass, command, &block
|
135
|
-
else
|
136
|
-
say_status :error, %(\#{value} [not found]), :red
|
137
|
-
end
|
138
|
-
end
|
139
|
-
METHOD
|
140
|
-
end
|
141
|
-
end
|
142
|
-
|
143
|
-
# Remove a previously added invocation.
|
144
|
-
#
|
145
|
-
# ==== Examples
|
146
|
-
#
|
147
|
-
# remove_invocation :test_framework
|
148
|
-
#
|
149
|
-
def remove_invocation(*names)
|
150
|
-
names.each do |name|
|
151
|
-
remove_command(name)
|
152
|
-
remove_class_option(name)
|
153
|
-
invocations.delete(name)
|
154
|
-
invocation_blocks.delete(name)
|
155
|
-
end
|
156
|
-
end
|
157
|
-
|
158
|
-
# Overwrite class options help to allow invoked generators options to be
|
159
|
-
# shown recursively when invoking a generator.
|
160
|
-
#
|
161
|
-
def class_options_help(shell, groups = {}) #:nodoc:
|
162
|
-
get_options_from_invocations(groups, class_options) do |klass|
|
163
|
-
klass.send(:get_options_from_invocations, groups, class_options)
|
164
|
-
end
|
165
|
-
super(shell, groups)
|
166
|
-
end
|
167
|
-
|
168
|
-
# Get invocations array and merge options from invocations. Those
|
169
|
-
# options are added to group_options hash. Options that already exists
|
170
|
-
# in base_options are not added twice.
|
171
|
-
#
|
172
|
-
def get_options_from_invocations(group_options, base_options) #:nodoc: # rubocop:disable MethodLength
|
173
|
-
invocations.each do |name, from_option|
|
174
|
-
value = if from_option
|
175
|
-
option = class_options[name]
|
176
|
-
option.type == :boolean ? name : option.default
|
177
|
-
else
|
178
|
-
name
|
179
|
-
end
|
180
|
-
next unless value
|
181
|
-
|
182
|
-
klass, _ = prepare_for_invocation(name, value)
|
183
|
-
next unless klass && klass.respond_to?(:class_options)
|
184
|
-
|
185
|
-
value = value.to_s
|
186
|
-
human_name = value.respond_to?(:classify) ? value.classify : value
|
187
|
-
|
188
|
-
group_options[human_name] ||= []
|
189
|
-
group_options[human_name] += klass.class_options.values.select do |class_option|
|
190
|
-
base_options[class_option.name.to_sym].nil? && class_option.group.nil? &&
|
191
|
-
!group_options.values.flatten.any? { |i| i.name == class_option.name }
|
192
|
-
end
|
193
|
-
|
194
|
-
yield klass if block_given?
|
195
|
-
end
|
196
|
-
end
|
197
|
-
|
198
|
-
# Returns commands ready to be printed.
|
199
|
-
def printable_commands(*)
|
200
|
-
item = []
|
201
|
-
item << banner
|
202
|
-
item << (desc ? "# #{desc.gsub(/\s+/m, ' ')}" : "")
|
203
|
-
[item]
|
204
|
-
end
|
205
|
-
alias_method :printable_tasks, :printable_commands
|
206
|
-
|
207
|
-
def handle_argument_error(command, error, _args, arity) #:nodoc:
|
208
|
-
msg = "#{basename} #{command.name} takes #{arity} argument".dup
|
209
|
-
msg << "s" if arity > 1
|
210
|
-
msg << ", but it should not."
|
211
|
-
raise error, msg
|
212
|
-
end
|
213
|
-
|
214
|
-
protected
|
215
|
-
|
216
|
-
# The method responsible for dispatching given the args.
|
217
|
-
def dispatch(command, given_args, given_opts, config) #:nodoc:
|
218
|
-
if Thor::HELP_MAPPINGS.include?(given_args.first)
|
219
|
-
help(config[:shell])
|
220
|
-
return
|
221
|
-
end
|
222
|
-
|
223
|
-
args, opts = Thor::Options.split(given_args)
|
224
|
-
opts = given_opts || opts
|
225
|
-
|
226
|
-
instance = new(args, opts, config)
|
227
|
-
yield instance if block_given?
|
228
|
-
|
229
|
-
if command
|
230
|
-
instance.invoke_command(all_commands[command])
|
231
|
-
else
|
232
|
-
instance.invoke_all
|
233
|
-
end
|
234
|
-
end
|
235
|
-
|
236
|
-
# The banner for this class. You can customize it if you are invoking the
|
237
|
-
# thor class by another ways which is not the Thor::Runner.
|
238
|
-
def banner
|
239
|
-
"#{basename} #{self_command.formatted_usage(self, false)}"
|
240
|
-
end
|
241
|
-
|
242
|
-
# Represents the whole class as a command.
|
243
|
-
def self_command #:nodoc:
|
244
|
-
Thor::DynamicCommand.new(namespace, class_options)
|
245
|
-
end
|
246
|
-
alias_method :self_task, :self_command
|
247
|
-
|
248
|
-
def baseclass #:nodoc:
|
249
|
-
Thor::Group
|
250
|
-
end
|
251
|
-
|
252
|
-
def create_command(meth) #:nodoc:
|
253
|
-
commands[meth.to_s] = Thor::Command.new(meth, nil, nil, nil, nil)
|
254
|
-
true
|
255
|
-
end
|
256
|
-
alias_method :create_task, :create_command
|
257
|
-
end
|
258
|
-
|
259
|
-
include Thor::Base
|
260
|
-
|
261
|
-
protected
|
262
|
-
|
263
|
-
# Shortcut to invoke with padding and block handling. Use internally by
|
264
|
-
# invoke and invoke_from_option class methods.
|
265
|
-
def _invoke_for_class_method(klass, command = nil, *args, &block) #:nodoc:
|
266
|
-
with_padding do
|
267
|
-
if block
|
268
|
-
case block.arity
|
269
|
-
when 3
|
270
|
-
yield(self, klass, command)
|
271
|
-
when 2
|
272
|
-
yield(self, klass)
|
273
|
-
when 1
|
274
|
-
instance_exec(klass, &block)
|
275
|
-
end
|
276
|
-
else
|
277
|
-
invoke klass, command, *args
|
278
|
-
end
|
279
|
-
end
|
280
|
-
end
|
281
|
-
end
|