qiita_org 0.1.35 → 0.1.41
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/post.rb +64 -5
- data/lib/qiita_org/template.org +1 -1
- data/lib/qiita_org/version.rb +1 -1
- data/tests/tags_test.org +16 -0
- data/tests/tags_test2.org +16 -0
- metadata +4 -2430
- 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
@@ -1,15 +0,0 @@
|
|
1
|
-
Pull Requests
|
2
|
-
-------------
|
3
|
-
Here are some reasons why a pull request may not be merged:
|
4
|
-
|
5
|
-
1. It hasn’t been reviewed.
|
6
|
-
2. It doesn’t include specs for new functionality.
|
7
|
-
3. It doesn’t include documentation for new functionality.
|
8
|
-
4. It changes behavior without changing the relevant documentation, comments, or specs.
|
9
|
-
5. It changes behavior of an existing public API, breaking backward compatibility.
|
10
|
-
6. It breaks the tests on a supported platform.
|
11
|
-
7. It doesn’t merge cleanly (requiring Git rebasing and conflict resolution).
|
12
|
-
|
13
|
-
If you would like to help in this process, you can start by evaluating open pull requests against the criteria above. For example, if a pull request does not include specs for new functionality, you can add a comment like: “If you would like this feature to be added to Thor, please add specs to ensure that it does not break in the future.” This will help move a pull request closer to being merged.
|
14
|
-
|
15
|
-
Include this emoji in the top of your ticket to signal to us that you read this file: 🌈
|
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) 2008 Yehuda Katz, Eric Hodel, et al.
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -1,51 +0,0 @@
|
|
1
|
-
Thor
|
2
|
-
====
|
3
|
-
|
4
|
-
[![Gem Version](http://img.shields.io/gem/v/thor.svg)][gem]
|
5
|
-
[![Build Status](http://img.shields.io/travis/erikhuda/thor.svg)][travis]
|
6
|
-
[![Code Climate](http://img.shields.io/codeclimate/github/erikhuda/thor.svg)][codeclimate]
|
7
|
-
[![Coverage Status](http://img.shields.io/coveralls/erikhuda/thor.svg)][coveralls]
|
8
|
-
|
9
|
-
[gem]: https://rubygems.org/gems/thor
|
10
|
-
[travis]: http://travis-ci.org/erikhuda/thor
|
11
|
-
[codeclimate]: https://codeclimate.com/github/erikhuda/thor
|
12
|
-
[coveralls]: https://coveralls.io/r/erikhuda/thor
|
13
|
-
|
14
|
-
Description
|
15
|
-
-----------
|
16
|
-
Thor is a simple and efficient tool for building self-documenting command line
|
17
|
-
utilities. It removes the pain of parsing command line options, writing
|
18
|
-
"USAGE:" banners, and can also be used as an alternative to the [Rake][rake]
|
19
|
-
build tool. The syntax is Rake-like, so it should be familiar to most Rake
|
20
|
-
users.
|
21
|
-
|
22
|
-
Please note: Thor, by design, is a system tool created to allow seamless file and url
|
23
|
-
access, which should not receive application user input. It relies on [open-uri][open-uri],
|
24
|
-
which combined with application user input would provide a command injection attack
|
25
|
-
vector.
|
26
|
-
|
27
|
-
[rake]: https://github.com/ruby/rake
|
28
|
-
[open-uri]: https://ruby-doc.org/stdlib-2.5.1/libdoc/open-uri/rdoc/index.html
|
29
|
-
|
30
|
-
Installation
|
31
|
-
------------
|
32
|
-
gem install thor
|
33
|
-
|
34
|
-
Usage and documentation
|
35
|
-
-----------------------
|
36
|
-
Please see the [wiki][] for basic usage and other documentation on using Thor. You can also checkout the [official homepage][homepage].
|
37
|
-
|
38
|
-
[wiki]: https://github.com/erikhuda/thor/wiki
|
39
|
-
[homepage]: http://whatisthor.com/
|
40
|
-
|
41
|
-
Contributing
|
42
|
-
------------
|
43
|
-
If you would like to help, please read the [CONTRIBUTING][] file for suggestions.
|
44
|
-
|
45
|
-
[contributing]: CONTRIBUTING.md
|
46
|
-
|
47
|
-
License
|
48
|
-
-------
|
49
|
-
Released under the MIT License. See the [LICENSE][] file for further details.
|
50
|
-
|
51
|
-
[license]: LICENSE.md
|
@@ -1,517 +0,0 @@
|
|
1
|
-
require "set"
|
2
|
-
require_relative "thor/base"
|
3
|
-
|
4
|
-
class Thor
|
5
|
-
class << self
|
6
|
-
# Allows for custom "Command" package naming.
|
7
|
-
#
|
8
|
-
# === Parameters
|
9
|
-
# name<String>
|
10
|
-
# options<Hash>
|
11
|
-
#
|
12
|
-
def package_name(name, _ = {})
|
13
|
-
@package_name = name.nil? || name == "" ? nil : name
|
14
|
-
end
|
15
|
-
|
16
|
-
# Sets the default command when thor is executed without an explicit command to be called.
|
17
|
-
#
|
18
|
-
# ==== Parameters
|
19
|
-
# meth<Symbol>:: name of the default command
|
20
|
-
#
|
21
|
-
def default_command(meth = nil)
|
22
|
-
if meth
|
23
|
-
@default_command = meth == :none ? "help" : meth.to_s
|
24
|
-
else
|
25
|
-
@default_command ||= from_superclass(:default_command, "help")
|
26
|
-
end
|
27
|
-
end
|
28
|
-
alias_method :default_task, :default_command
|
29
|
-
|
30
|
-
# Registers another Thor subclass as a command.
|
31
|
-
#
|
32
|
-
# ==== Parameters
|
33
|
-
# klass<Class>:: Thor subclass to register
|
34
|
-
# command<String>:: Subcommand name to use
|
35
|
-
# usage<String>:: Short usage for the subcommand
|
36
|
-
# description<String>:: Description for the subcommand
|
37
|
-
def register(klass, subcommand_name, usage, description, options = {})
|
38
|
-
if klass <= Thor::Group
|
39
|
-
desc usage, description, options
|
40
|
-
define_method(subcommand_name) { |*args| invoke(klass, args) }
|
41
|
-
else
|
42
|
-
desc usage, description, options
|
43
|
-
subcommand subcommand_name, klass
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
# Defines the usage and the description of the next command.
|
48
|
-
#
|
49
|
-
# ==== Parameters
|
50
|
-
# usage<String>
|
51
|
-
# description<String>
|
52
|
-
# options<String>
|
53
|
-
#
|
54
|
-
def desc(usage, description, options = {})
|
55
|
-
if options[:for]
|
56
|
-
command = find_and_refresh_command(options[:for])
|
57
|
-
command.usage = usage if usage
|
58
|
-
command.description = description if description
|
59
|
-
else
|
60
|
-
@usage = usage
|
61
|
-
@desc = description
|
62
|
-
@hide = options[:hide] || false
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
# Defines the long description of the next command.
|
67
|
-
#
|
68
|
-
# ==== Parameters
|
69
|
-
# long description<String>
|
70
|
-
#
|
71
|
-
def long_desc(long_description, options = {})
|
72
|
-
if options[:for]
|
73
|
-
command = find_and_refresh_command(options[:for])
|
74
|
-
command.long_description = long_description if long_description
|
75
|
-
else
|
76
|
-
@long_desc = long_description
|
77
|
-
end
|
78
|
-
end
|
79
|
-
|
80
|
-
# Maps an input to a command. If you define:
|
81
|
-
#
|
82
|
-
# map "-T" => "list"
|
83
|
-
#
|
84
|
-
# Running:
|
85
|
-
#
|
86
|
-
# thor -T
|
87
|
-
#
|
88
|
-
# Will invoke the list command.
|
89
|
-
#
|
90
|
-
# ==== Parameters
|
91
|
-
# Hash[String|Array => Symbol]:: Maps the string or the strings in the array to the given command.
|
92
|
-
#
|
93
|
-
def map(mappings = nil, **kw)
|
94
|
-
@map ||= from_superclass(:map, {})
|
95
|
-
|
96
|
-
if mappings && !kw.empty?
|
97
|
-
mappings = kw.merge!(mappings)
|
98
|
-
else
|
99
|
-
mappings ||= kw
|
100
|
-
end
|
101
|
-
if mappings
|
102
|
-
mappings.each do |key, value|
|
103
|
-
if key.respond_to?(:each)
|
104
|
-
key.each { |subkey| @map[subkey] = value }
|
105
|
-
else
|
106
|
-
@map[key] = value
|
107
|
-
end
|
108
|
-
end
|
109
|
-
end
|
110
|
-
|
111
|
-
@map
|
112
|
-
end
|
113
|
-
|
114
|
-
# Declares the options for the next command to be declared.
|
115
|
-
#
|
116
|
-
# ==== Parameters
|
117
|
-
# Hash[Symbol => Object]:: The hash key is the name of the option and the value
|
118
|
-
# is the type of the option. Can be :string, :array, :hash, :boolean, :numeric
|
119
|
-
# or :required (string). If you give a value, the type of the value is used.
|
120
|
-
#
|
121
|
-
def method_options(options = nil)
|
122
|
-
@method_options ||= {}
|
123
|
-
build_options(options, @method_options) if options
|
124
|
-
@method_options
|
125
|
-
end
|
126
|
-
|
127
|
-
alias_method :options, :method_options
|
128
|
-
|
129
|
-
# Adds an option to the set of method options. If :for is given as option,
|
130
|
-
# it allows you to change the options from a previous defined command.
|
131
|
-
#
|
132
|
-
# def previous_command
|
133
|
-
# # magic
|
134
|
-
# end
|
135
|
-
#
|
136
|
-
# method_option :foo => :bar, :for => :previous_command
|
137
|
-
#
|
138
|
-
# def next_command
|
139
|
-
# # magic
|
140
|
-
# end
|
141
|
-
#
|
142
|
-
# ==== Parameters
|
143
|
-
# name<Symbol>:: The name of the argument.
|
144
|
-
# options<Hash>:: Described below.
|
145
|
-
#
|
146
|
-
# ==== Options
|
147
|
-
# :desc - Description for the argument.
|
148
|
-
# :required - If the argument is required or not.
|
149
|
-
# :default - Default value for this argument. It cannot be required and have default values.
|
150
|
-
# :aliases - Aliases for this option.
|
151
|
-
# :type - The type of the argument, can be :string, :hash, :array, :numeric or :boolean.
|
152
|
-
# :banner - String to show on usage notes.
|
153
|
-
# :hide - If you want to hide this option from the help.
|
154
|
-
#
|
155
|
-
def method_option(name, options = {})
|
156
|
-
scope = if options[:for]
|
157
|
-
find_and_refresh_command(options[:for]).options
|
158
|
-
else
|
159
|
-
method_options
|
160
|
-
end
|
161
|
-
|
162
|
-
build_option(name, options, scope)
|
163
|
-
end
|
164
|
-
alias_method :option, :method_option
|
165
|
-
|
166
|
-
# Prints help information for the given command.
|
167
|
-
#
|
168
|
-
# ==== Parameters
|
169
|
-
# shell<Thor::Shell>
|
170
|
-
# command_name<String>
|
171
|
-
#
|
172
|
-
def command_help(shell, command_name)
|
173
|
-
meth = normalize_command_name(command_name)
|
174
|
-
command = all_commands[meth]
|
175
|
-
handle_no_command_error(meth) unless command
|
176
|
-
|
177
|
-
shell.say "Usage:"
|
178
|
-
shell.say " #{banner(command).split("\n").join("\n ")}"
|
179
|
-
shell.say
|
180
|
-
class_options_help(shell, nil => command.options.values)
|
181
|
-
if command.long_description
|
182
|
-
shell.say "Description:"
|
183
|
-
shell.print_wrapped(command.long_description, :indent => 2)
|
184
|
-
else
|
185
|
-
shell.say command.description
|
186
|
-
end
|
187
|
-
end
|
188
|
-
alias_method :task_help, :command_help
|
189
|
-
|
190
|
-
# Prints help information for this class.
|
191
|
-
#
|
192
|
-
# ==== Parameters
|
193
|
-
# shell<Thor::Shell>
|
194
|
-
#
|
195
|
-
def help(shell, subcommand = false)
|
196
|
-
list = printable_commands(true, subcommand)
|
197
|
-
Thor::Util.thor_classes_in(self).each do |klass|
|
198
|
-
list += klass.printable_commands(false)
|
199
|
-
end
|
200
|
-
list.sort! { |a, b| a[0] <=> b[0] }
|
201
|
-
|
202
|
-
if defined?(@package_name) && @package_name
|
203
|
-
shell.say "#{@package_name} commands:"
|
204
|
-
else
|
205
|
-
shell.say "Commands:"
|
206
|
-
end
|
207
|
-
|
208
|
-
shell.print_table(list, :indent => 2, :truncate => true)
|
209
|
-
shell.say
|
210
|
-
class_options_help(shell)
|
211
|
-
end
|
212
|
-
|
213
|
-
# Returns commands ready to be printed.
|
214
|
-
def printable_commands(all = true, subcommand = false)
|
215
|
-
(all ? all_commands : commands).map do |_, command|
|
216
|
-
next if command.hidden?
|
217
|
-
item = []
|
218
|
-
item << banner(command, false, subcommand)
|
219
|
-
item << (command.description ? "# #{command.description.gsub(/\s+/m, ' ')}" : "")
|
220
|
-
item
|
221
|
-
end.compact
|
222
|
-
end
|
223
|
-
alias_method :printable_tasks, :printable_commands
|
224
|
-
|
225
|
-
def subcommands
|
226
|
-
@subcommands ||= from_superclass(:subcommands, [])
|
227
|
-
end
|
228
|
-
alias_method :subtasks, :subcommands
|
229
|
-
|
230
|
-
def subcommand_classes
|
231
|
-
@subcommand_classes ||= {}
|
232
|
-
end
|
233
|
-
|
234
|
-
def subcommand(subcommand, subcommand_class)
|
235
|
-
subcommands << subcommand.to_s
|
236
|
-
subcommand_class.subcommand_help subcommand
|
237
|
-
subcommand_classes[subcommand.to_s] = subcommand_class
|
238
|
-
|
239
|
-
define_method(subcommand) do |*args|
|
240
|
-
args, opts = Thor::Arguments.split(args)
|
241
|
-
invoke_args = [args, opts, {:invoked_via_subcommand => true, :class_options => options}]
|
242
|
-
invoke_args.unshift "help" if opts.delete("--help") || opts.delete("-h")
|
243
|
-
invoke subcommand_class, *invoke_args
|
244
|
-
end
|
245
|
-
subcommand_class.commands.each do |_meth, command|
|
246
|
-
command.ancestor_name = subcommand
|
247
|
-
end
|
248
|
-
end
|
249
|
-
alias_method :subtask, :subcommand
|
250
|
-
|
251
|
-
# Extend check unknown options to accept a hash of conditions.
|
252
|
-
#
|
253
|
-
# === Parameters
|
254
|
-
# options<Hash>: A hash containing :only and/or :except keys
|
255
|
-
def check_unknown_options!(options = {})
|
256
|
-
@check_unknown_options ||= {}
|
257
|
-
options.each do |key, value|
|
258
|
-
if value
|
259
|
-
@check_unknown_options[key] = Array(value)
|
260
|
-
else
|
261
|
-
@check_unknown_options.delete(key)
|
262
|
-
end
|
263
|
-
end
|
264
|
-
@check_unknown_options
|
265
|
-
end
|
266
|
-
|
267
|
-
# Overwrite check_unknown_options? to take subcommands and options into account.
|
268
|
-
def check_unknown_options?(config) #:nodoc:
|
269
|
-
options = check_unknown_options
|
270
|
-
return false unless options
|
271
|
-
|
272
|
-
command = config[:current_command]
|
273
|
-
return true unless command
|
274
|
-
|
275
|
-
name = command.name
|
276
|
-
|
277
|
-
if subcommands.include?(name)
|
278
|
-
false
|
279
|
-
elsif options[:except]
|
280
|
-
!options[:except].include?(name.to_sym)
|
281
|
-
elsif options[:only]
|
282
|
-
options[:only].include?(name.to_sym)
|
283
|
-
else
|
284
|
-
true
|
285
|
-
end
|
286
|
-
end
|
287
|
-
|
288
|
-
# Stop parsing of options as soon as an unknown option or a regular
|
289
|
-
# argument is encountered. All remaining arguments are passed to the command.
|
290
|
-
# This is useful if you have a command that can receive arbitrary additional
|
291
|
-
# options, and where those additional options should not be handled by
|
292
|
-
# Thor.
|
293
|
-
#
|
294
|
-
# ==== Example
|
295
|
-
#
|
296
|
-
# To better understand how this is useful, let's consider a command that calls
|
297
|
-
# an external command. A user may want to pass arbitrary options and
|
298
|
-
# arguments to that command. The command itself also accepts some options,
|
299
|
-
# which should be handled by Thor.
|
300
|
-
#
|
301
|
-
# class_option "verbose", :type => :boolean
|
302
|
-
# stop_on_unknown_option! :exec
|
303
|
-
# check_unknown_options! :except => :exec
|
304
|
-
#
|
305
|
-
# desc "exec", "Run a shell command"
|
306
|
-
# def exec(*args)
|
307
|
-
# puts "diagnostic output" if options[:verbose]
|
308
|
-
# Kernel.exec(*args)
|
309
|
-
# end
|
310
|
-
#
|
311
|
-
# Here +exec+ can be called with +--verbose+ to get diagnostic output,
|
312
|
-
# e.g.:
|
313
|
-
#
|
314
|
-
# $ thor exec --verbose echo foo
|
315
|
-
# diagnostic output
|
316
|
-
# foo
|
317
|
-
#
|
318
|
-
# But if +--verbose+ is given after +echo+, it is passed to +echo+ instead:
|
319
|
-
#
|
320
|
-
# $ thor exec echo --verbose foo
|
321
|
-
# --verbose foo
|
322
|
-
#
|
323
|
-
# ==== Parameters
|
324
|
-
# Symbol ...:: A list of commands that should be affected.
|
325
|
-
def stop_on_unknown_option!(*command_names)
|
326
|
-
stop_on_unknown_option.merge(command_names)
|
327
|
-
end
|
328
|
-
|
329
|
-
def stop_on_unknown_option?(command) #:nodoc:
|
330
|
-
command && stop_on_unknown_option.include?(command.name.to_sym)
|
331
|
-
end
|
332
|
-
|
333
|
-
# Disable the check for required options for the given commands.
|
334
|
-
# This is useful if you have a command that does not need the required options
|
335
|
-
# to work, like help.
|
336
|
-
#
|
337
|
-
# ==== Parameters
|
338
|
-
# Symbol ...:: A list of commands that should be affected.
|
339
|
-
def disable_required_check!(*command_names)
|
340
|
-
disable_required_check.merge(command_names)
|
341
|
-
end
|
342
|
-
|
343
|
-
def disable_required_check?(command) #:nodoc:
|
344
|
-
command && disable_required_check.include?(command.name.to_sym)
|
345
|
-
end
|
346
|
-
|
347
|
-
protected
|
348
|
-
|
349
|
-
def stop_on_unknown_option #:nodoc:
|
350
|
-
@stop_on_unknown_option ||= Set.new
|
351
|
-
end
|
352
|
-
|
353
|
-
# help command has the required check disabled by default.
|
354
|
-
def disable_required_check #:nodoc:
|
355
|
-
@disable_required_check ||= Set.new([:help])
|
356
|
-
end
|
357
|
-
|
358
|
-
# The method responsible for dispatching given the args.
|
359
|
-
def dispatch(meth, given_args, given_opts, config) #:nodoc: # rubocop:disable MethodLength
|
360
|
-
meth ||= retrieve_command_name(given_args)
|
361
|
-
command = all_commands[normalize_command_name(meth)]
|
362
|
-
|
363
|
-
if !command && config[:invoked_via_subcommand]
|
364
|
-
# We're a subcommand and our first argument didn't match any of our
|
365
|
-
# commands. So we put it back and call our default command.
|
366
|
-
given_args.unshift(meth)
|
367
|
-
command = all_commands[normalize_command_name(default_command)]
|
368
|
-
end
|
369
|
-
|
370
|
-
if command
|
371
|
-
args, opts = Thor::Options.split(given_args)
|
372
|
-
if stop_on_unknown_option?(command) && !args.empty?
|
373
|
-
# given_args starts with a non-option, so we treat everything as
|
374
|
-
# ordinary arguments
|
375
|
-
args.concat opts
|
376
|
-
opts.clear
|
377
|
-
end
|
378
|
-
else
|
379
|
-
args = given_args
|
380
|
-
opts = nil
|
381
|
-
command = dynamic_command_class.new(meth)
|
382
|
-
end
|
383
|
-
|
384
|
-
opts = given_opts || opts || []
|
385
|
-
config[:current_command] = command
|
386
|
-
config[:command_options] = command.options
|
387
|
-
|
388
|
-
instance = new(args, opts, config)
|
389
|
-
yield instance if block_given?
|
390
|
-
args = instance.args
|
391
|
-
trailing = args[Range.new(arguments.size, -1)]
|
392
|
-
instance.invoke_command(command, trailing || [])
|
393
|
-
end
|
394
|
-
|
395
|
-
# The banner for this class. You can customize it if you are invoking the
|
396
|
-
# thor class by another ways which is not the Thor::Runner. It receives
|
397
|
-
# the command that is going to be invoked and a boolean which indicates if
|
398
|
-
# the namespace should be displayed as arguments.
|
399
|
-
#
|
400
|
-
def banner(command, namespace = nil, subcommand = false)
|
401
|
-
$thor_runner ||= false
|
402
|
-
command.formatted_usage(self, $thor_runner, subcommand).split("\n").map do |formatted_usage|
|
403
|
-
"#{basename} #{formatted_usage}"
|
404
|
-
end.join("\n")
|
405
|
-
end
|
406
|
-
|
407
|
-
def baseclass #:nodoc:
|
408
|
-
Thor
|
409
|
-
end
|
410
|
-
|
411
|
-
def dynamic_command_class #:nodoc:
|
412
|
-
Thor::DynamicCommand
|
413
|
-
end
|
414
|
-
|
415
|
-
def create_command(meth) #:nodoc:
|
416
|
-
@usage ||= nil
|
417
|
-
@desc ||= nil
|
418
|
-
@long_desc ||= nil
|
419
|
-
@hide ||= nil
|
420
|
-
|
421
|
-
if @usage && @desc
|
422
|
-
base_class = @hide ? Thor::HiddenCommand : Thor::Command
|
423
|
-
commands[meth] = base_class.new(meth, @desc, @long_desc, @usage, method_options)
|
424
|
-
@usage, @desc, @long_desc, @method_options, @hide = nil
|
425
|
-
true
|
426
|
-
elsif all_commands[meth] || meth == "method_missing"
|
427
|
-
true
|
428
|
-
else
|
429
|
-
puts "[WARNING] Attempted to create command #{meth.inspect} without usage or description. " \
|
430
|
-
"Call desc if you want this method to be available as command or declare it inside a " \
|
431
|
-
"no_commands{} block. Invoked from #{caller[1].inspect}."
|
432
|
-
false
|
433
|
-
end
|
434
|
-
end
|
435
|
-
alias_method :create_task, :create_command
|
436
|
-
|
437
|
-
def initialize_added #:nodoc:
|
438
|
-
class_options.merge!(method_options)
|
439
|
-
@method_options = nil
|
440
|
-
end
|
441
|
-
|
442
|
-
# Retrieve the command name from given args.
|
443
|
-
def retrieve_command_name(args) #:nodoc:
|
444
|
-
meth = args.first.to_s unless args.empty?
|
445
|
-
args.shift if meth && (map[meth] || meth !~ /^\-/)
|
446
|
-
end
|
447
|
-
alias_method :retrieve_task_name, :retrieve_command_name
|
448
|
-
|
449
|
-
# receives a (possibly nil) command name and returns a name that is in
|
450
|
-
# the commands hash. In addition to normalizing aliases, this logic
|
451
|
-
# will determine if a shortened command is an unambiguous substring of
|
452
|
-
# a command or alias.
|
453
|
-
#
|
454
|
-
# +normalize_command_name+ also converts names like +animal-prison+
|
455
|
-
# into +animal_prison+.
|
456
|
-
def normalize_command_name(meth) #:nodoc:
|
457
|
-
return default_command.to_s.tr("-", "_") unless meth
|
458
|
-
|
459
|
-
possibilities = find_command_possibilities(meth)
|
460
|
-
raise AmbiguousTaskError, "Ambiguous command #{meth} matches [#{possibilities.join(', ')}]" if possibilities.size > 1
|
461
|
-
|
462
|
-
if possibilities.empty?
|
463
|
-
meth ||= default_command
|
464
|
-
elsif map[meth]
|
465
|
-
meth = map[meth]
|
466
|
-
else
|
467
|
-
meth = possibilities.first
|
468
|
-
end
|
469
|
-
|
470
|
-
meth.to_s.tr("-", "_") # treat foo-bar as foo_bar
|
471
|
-
end
|
472
|
-
alias_method :normalize_task_name, :normalize_command_name
|
473
|
-
|
474
|
-
# this is the logic that takes the command name passed in by the user
|
475
|
-
# and determines whether it is an unambiguous substrings of a command or
|
476
|
-
# alias name.
|
477
|
-
def find_command_possibilities(meth)
|
478
|
-
len = meth.to_s.length
|
479
|
-
possibilities = all_commands.merge(map).keys.select { |n| meth == n[0, len] }.sort
|
480
|
-
unique_possibilities = possibilities.map { |k| map[k] || k }.uniq
|
481
|
-
|
482
|
-
if possibilities.include?(meth)
|
483
|
-
[meth]
|
484
|
-
elsif unique_possibilities.size == 1
|
485
|
-
unique_possibilities
|
486
|
-
else
|
487
|
-
possibilities
|
488
|
-
end
|
489
|
-
end
|
490
|
-
alias_method :find_task_possibilities, :find_command_possibilities
|
491
|
-
|
492
|
-
def subcommand_help(cmd)
|
493
|
-
desc "help [COMMAND]", "Describe subcommands or one specific subcommand"
|
494
|
-
class_eval "
|
495
|
-
def help(command = nil, subcommand = true); super; end
|
496
|
-
"
|
497
|
-
end
|
498
|
-
alias_method :subtask_help, :subcommand_help
|
499
|
-
end
|
500
|
-
|
501
|
-
include Thor::Base
|
502
|
-
|
503
|
-
map HELP_MAPPINGS => :help
|
504
|
-
|
505
|
-
desc "help [COMMAND]", "Describe available commands or one specific command"
|
506
|
-
def help(command = nil, subcommand = false)
|
507
|
-
if command
|
508
|
-
if self.class.subcommands.include? command
|
509
|
-
self.class.subcommand_classes[command].help(shell, true)
|
510
|
-
else
|
511
|
-
self.class.command_help(shell, command)
|
512
|
-
end
|
513
|
-
else
|
514
|
-
self.class.help(shell, subcommand)
|
515
|
-
end
|
516
|
-
end
|
517
|
-
end
|