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,37 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# A block is an operation removing, adding, or changing a group of items.
|
4
|
-
# Basically, this is just a list of changes, where each change adds or
|
5
|
-
# deletes a single item. Used by bin/ldiff.
|
6
|
-
class Diff::LCS::Block
|
7
|
-
attr_reader :changes, :insert, :remove
|
8
|
-
|
9
|
-
def initialize(chunk)
|
10
|
-
@changes = []
|
11
|
-
@insert = []
|
12
|
-
@remove = []
|
13
|
-
|
14
|
-
chunk.each do |item|
|
15
|
-
@changes << item
|
16
|
-
@remove << item if item.deleting?
|
17
|
-
@insert << item if item.adding?
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
def diff_size
|
22
|
-
@insert.size - @remove.size
|
23
|
-
end
|
24
|
-
|
25
|
-
def op
|
26
|
-
case [@remove.empty?, @insert.empty?]
|
27
|
-
when [false, false]
|
28
|
-
'!'
|
29
|
-
when [false, true]
|
30
|
-
'-'
|
31
|
-
when [true, false]
|
32
|
-
'+'
|
33
|
-
else # [true, true]
|
34
|
-
'^'
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
@@ -1,325 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'diff/lcs/change'
|
4
|
-
|
5
|
-
module Diff::LCS # rubocop:disable Style/Documentation
|
6
|
-
# This callback object implements the default set of callback events,
|
7
|
-
# which only returns the event itself. Note that #finished_a and
|
8
|
-
# #finished_b are not implemented -- I haven't yet figured out where they
|
9
|
-
# would be useful.
|
10
|
-
#
|
11
|
-
# Note that this is intended to be called as is, e.g.,
|
12
|
-
#
|
13
|
-
# Diff::LCS.LCS(seq1, seq2, Diff::LCS::DefaultCallbacks)
|
14
|
-
class DefaultCallbacks
|
15
|
-
class << self
|
16
|
-
# Called when two items match.
|
17
|
-
def match(event)
|
18
|
-
event
|
19
|
-
end
|
20
|
-
|
21
|
-
# Called when the old value is discarded in favour of the new value.
|
22
|
-
def discard_a(event)
|
23
|
-
event
|
24
|
-
end
|
25
|
-
|
26
|
-
# Called when the new value is discarded in favour of the old value.
|
27
|
-
def discard_b(event)
|
28
|
-
event
|
29
|
-
end
|
30
|
-
|
31
|
-
# Called when both the old and new values have changed.
|
32
|
-
def change(event)
|
33
|
-
event
|
34
|
-
end
|
35
|
-
|
36
|
-
private :new
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
# An alias for DefaultCallbacks that is used in
|
41
|
-
# Diff::LCS#traverse_sequences.
|
42
|
-
#
|
43
|
-
# Diff::LCS.LCS(seq1, seq2, Diff::LCS::SequenceCallbacks)
|
44
|
-
SequenceCallbacks = DefaultCallbacks
|
45
|
-
|
46
|
-
# An alias for DefaultCallbacks that is used in
|
47
|
-
# Diff::LCS#traverse_balanced.
|
48
|
-
#
|
49
|
-
# Diff::LCS.LCS(seq1, seq2, Diff::LCS::BalancedCallbacks)
|
50
|
-
BalancedCallbacks = DefaultCallbacks
|
51
|
-
|
52
|
-
def self.callbacks_for(callbacks)
|
53
|
-
callbacks.new rescue callbacks
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
# This will produce a compound array of simple diff change objects. Each
|
58
|
-
# element in the #diffs array is a +hunk+ or +hunk+ array, where each
|
59
|
-
# element in each +hunk+ array is a single Change object representing the
|
60
|
-
# addition or removal of a single element from one of the two tested
|
61
|
-
# sequences. The +hunk+ provides the full context for the changes.
|
62
|
-
#
|
63
|
-
# diffs = Diff::LCS.diff(seq1, seq2)
|
64
|
-
# # This example shows a simplified array format.
|
65
|
-
# # [ [ [ '-', 0, 'a' ] ], # 1
|
66
|
-
# # [ [ '+', 2, 'd' ] ], # 2
|
67
|
-
# # [ [ '-', 4, 'h' ], # 3
|
68
|
-
# # [ '+', 4, 'f' ] ],
|
69
|
-
# # [ [ '+', 6, 'k' ] ], # 4
|
70
|
-
# # [ [ '-', 8, 'n' ], # 5
|
71
|
-
# # [ '-', 9, 'p' ],
|
72
|
-
# # [ '+', 9, 'r' ],
|
73
|
-
# # [ '+', 10, 's' ],
|
74
|
-
# # [ '+', 11, 't' ] ] ]
|
75
|
-
#
|
76
|
-
# There are five hunks here. The first hunk says that the +a+ at position 0
|
77
|
-
# of the first sequence should be deleted (<tt>'-'</tt>). The second hunk
|
78
|
-
# says that the +d+ at position 2 of the second sequence should be inserted
|
79
|
-
# (<tt>'+'</tt>). The third hunk says that the +h+ at position 4 of the
|
80
|
-
# first sequence should be removed and replaced with the +f+ from position 4
|
81
|
-
# of the second sequence. The other two hunks are described similarly.
|
82
|
-
#
|
83
|
-
# === Use
|
84
|
-
#
|
85
|
-
# This callback object must be initialised and is used by the Diff::LCS#diff
|
86
|
-
# method.
|
87
|
-
#
|
88
|
-
# cbo = Diff::LCS::DiffCallbacks.new
|
89
|
-
# Diff::LCS.LCS(seq1, seq2, cbo)
|
90
|
-
# cbo.finish
|
91
|
-
#
|
92
|
-
# Note that the call to #finish is absolutely necessary, or the last set of
|
93
|
-
# changes will not be visible. Alternatively, can be used as:
|
94
|
-
#
|
95
|
-
# cbo = Diff::LCS::DiffCallbacks.new { |tcbo| Diff::LCS.LCS(seq1, seq2, tcbo) }
|
96
|
-
#
|
97
|
-
# The necessary #finish call will be made.
|
98
|
-
#
|
99
|
-
# === Simplified Array Format
|
100
|
-
#
|
101
|
-
# The simplified array format used in the example above can be obtained
|
102
|
-
# with:
|
103
|
-
#
|
104
|
-
# require 'pp'
|
105
|
-
# pp diffs.map { |e| e.map { |f| f.to_a } }
|
106
|
-
class Diff::LCS::DiffCallbacks
|
107
|
-
# Returns the difference set collected during the diff process.
|
108
|
-
attr_reader :diffs
|
109
|
-
|
110
|
-
def initialize # :yields self:
|
111
|
-
@hunk = []
|
112
|
-
@diffs = []
|
113
|
-
|
114
|
-
return unless block_given?
|
115
|
-
|
116
|
-
begin
|
117
|
-
yield self
|
118
|
-
ensure
|
119
|
-
finish
|
120
|
-
end
|
121
|
-
end
|
122
|
-
|
123
|
-
# Finalizes the diff process. If an unprocessed hunk still exists, then it
|
124
|
-
# is appended to the diff list.
|
125
|
-
def finish
|
126
|
-
finish_hunk
|
127
|
-
end
|
128
|
-
|
129
|
-
def match(_event)
|
130
|
-
finish_hunk
|
131
|
-
end
|
132
|
-
|
133
|
-
def discard_a(event)
|
134
|
-
@hunk << Diff::LCS::Change.new('-', event.old_position, event.old_element)
|
135
|
-
end
|
136
|
-
|
137
|
-
def discard_b(event)
|
138
|
-
@hunk << Diff::LCS::Change.new('+', event.new_position, event.new_element)
|
139
|
-
end
|
140
|
-
|
141
|
-
def finish_hunk
|
142
|
-
@diffs << @hunk unless @hunk.empty?
|
143
|
-
@hunk = []
|
144
|
-
end
|
145
|
-
private :finish_hunk
|
146
|
-
end
|
147
|
-
|
148
|
-
# This will produce a compound array of contextual diff change objects. Each
|
149
|
-
# element in the #diffs array is a "hunk" array, where each element in each
|
150
|
-
# "hunk" array is a single change. Each change is a Diff::LCS::ContextChange
|
151
|
-
# that contains both the old index and new index values for the change. The
|
152
|
-
# "hunk" provides the full context for the changes. Both old and new objects
|
153
|
-
# will be presented for changed objects. +nil+ will be substituted for a
|
154
|
-
# discarded object.
|
155
|
-
#
|
156
|
-
# seq1 = %w(a b c e h j l m n p)
|
157
|
-
# seq2 = %w(b c d e f j k l m r s t)
|
158
|
-
#
|
159
|
-
# diffs = Diff::LCS.diff(seq1, seq2, Diff::LCS::ContextDiffCallbacks)
|
160
|
-
# # This example shows a simplified array format.
|
161
|
-
# # [ [ [ '-', [ 0, 'a' ], [ 0, nil ] ] ], # 1
|
162
|
-
# # [ [ '+', [ 3, nil ], [ 2, 'd' ] ] ], # 2
|
163
|
-
# # [ [ '-', [ 4, 'h' ], [ 4, nil ] ], # 3
|
164
|
-
# # [ '+', [ 5, nil ], [ 4, 'f' ] ] ],
|
165
|
-
# # [ [ '+', [ 6, nil ], [ 6, 'k' ] ] ], # 4
|
166
|
-
# # [ [ '-', [ 8, 'n' ], [ 9, nil ] ], # 5
|
167
|
-
# # [ '+', [ 9, nil ], [ 9, 'r' ] ],
|
168
|
-
# # [ '-', [ 9, 'p' ], [ 10, nil ] ],
|
169
|
-
# # [ '+', [ 10, nil ], [ 10, 's' ] ],
|
170
|
-
# # [ '+', [ 10, nil ], [ 11, 't' ] ] ] ]
|
171
|
-
#
|
172
|
-
# The five hunks shown are comprised of individual changes; if there is a
|
173
|
-
# related set of changes, they are still shown individually.
|
174
|
-
#
|
175
|
-
# This callback can also be used with Diff::LCS#sdiff, which will produce
|
176
|
-
# results like:
|
177
|
-
#
|
178
|
-
# diffs = Diff::LCS.sdiff(seq1, seq2, Diff::LCS::ContextCallbacks)
|
179
|
-
# # This example shows a simplified array format.
|
180
|
-
# # [ [ [ "-", [ 0, "a" ], [ 0, nil ] ] ], # 1
|
181
|
-
# # [ [ "+", [ 3, nil ], [ 2, "d" ] ] ], # 2
|
182
|
-
# # [ [ "!", [ 4, "h" ], [ 4, "f" ] ] ], # 3
|
183
|
-
# # [ [ "+", [ 6, nil ], [ 6, "k" ] ] ], # 4
|
184
|
-
# # [ [ "!", [ 8, "n" ], [ 9, "r" ] ], # 5
|
185
|
-
# # [ "!", [ 9, "p" ], [ 10, "s" ] ],
|
186
|
-
# # [ "+", [ 10, nil ], [ 11, "t" ] ] ] ]
|
187
|
-
#
|
188
|
-
# The five hunks are still present, but are significantly shorter in total
|
189
|
-
# presentation, because changed items are shown as changes ("!") instead of
|
190
|
-
# potentially "mismatched" pairs of additions and deletions.
|
191
|
-
#
|
192
|
-
# The result of this operation is similar to that of
|
193
|
-
# Diff::LCS::SDiffCallbacks. They may be compared as:
|
194
|
-
#
|
195
|
-
# s = Diff::LCS.sdiff(seq1, seq2).reject { |e| e.action == "=" }
|
196
|
-
# c = Diff::LCS.sdiff(seq1, seq2, Diff::LCS::ContextDiffCallbacks).flatten(1)
|
197
|
-
#
|
198
|
-
# s == c # -> true
|
199
|
-
#
|
200
|
-
# === Use
|
201
|
-
#
|
202
|
-
# This callback object must be initialised and can be used by the
|
203
|
-
# Diff::LCS#diff or Diff::LCS#sdiff methods.
|
204
|
-
#
|
205
|
-
# cbo = Diff::LCS::ContextDiffCallbacks.new
|
206
|
-
# Diff::LCS.LCS(seq1, seq2, cbo)
|
207
|
-
# cbo.finish
|
208
|
-
#
|
209
|
-
# Note that the call to #finish is absolutely necessary, or the last set of
|
210
|
-
# changes will not be visible. Alternatively, can be used as:
|
211
|
-
#
|
212
|
-
# cbo = Diff::LCS::ContextDiffCallbacks.new { |tcbo| Diff::LCS.LCS(seq1, seq2, tcbo) }
|
213
|
-
#
|
214
|
-
# The necessary #finish call will be made.
|
215
|
-
#
|
216
|
-
# === Simplified Array Format
|
217
|
-
#
|
218
|
-
# The simplified array format used in the example above can be obtained
|
219
|
-
# with:
|
220
|
-
#
|
221
|
-
# require 'pp'
|
222
|
-
# pp diffs.map { |e| e.map { |f| f.to_a } }
|
223
|
-
class Diff::LCS::ContextDiffCallbacks < Diff::LCS::DiffCallbacks
|
224
|
-
def discard_a(event)
|
225
|
-
@hunk << Diff::LCS::ContextChange.simplify(event)
|
226
|
-
end
|
227
|
-
|
228
|
-
def discard_b(event)
|
229
|
-
@hunk << Diff::LCS::ContextChange.simplify(event)
|
230
|
-
end
|
231
|
-
|
232
|
-
def change(event)
|
233
|
-
@hunk << Diff::LCS::ContextChange.simplify(event)
|
234
|
-
end
|
235
|
-
end
|
236
|
-
|
237
|
-
# This will produce a simple array of diff change objects. Each element in
|
238
|
-
# the #diffs array is a single ContextChange. In the set of #diffs provided
|
239
|
-
# by SDiffCallbacks, both old and new objects will be presented for both
|
240
|
-
# changed <strong>and unchanged</strong> objects. +nil+ will be substituted
|
241
|
-
# for a discarded object.
|
242
|
-
#
|
243
|
-
# The diffset produced by this callback, when provided to Diff::LCS#sdiff,
|
244
|
-
# will compute and display the necessary components to show two sequences
|
245
|
-
# and their minimized differences side by side, just like the Unix utility
|
246
|
-
# +sdiff+.
|
247
|
-
#
|
248
|
-
# same same
|
249
|
-
# before | after
|
250
|
-
# old < -
|
251
|
-
# - > new
|
252
|
-
#
|
253
|
-
# seq1 = %w(a b c e h j l m n p)
|
254
|
-
# seq2 = %w(b c d e f j k l m r s t)
|
255
|
-
#
|
256
|
-
# diffs = Diff::LCS.sdiff(seq1, seq2)
|
257
|
-
# # This example shows a simplified array format.
|
258
|
-
# # [ [ "-", [ 0, "a"], [ 0, nil ] ],
|
259
|
-
# # [ "=", [ 1, "b"], [ 0, "b" ] ],
|
260
|
-
# # [ "=", [ 2, "c"], [ 1, "c" ] ],
|
261
|
-
# # [ "+", [ 3, nil], [ 2, "d" ] ],
|
262
|
-
# # [ "=", [ 3, "e"], [ 3, "e" ] ],
|
263
|
-
# # [ "!", [ 4, "h"], [ 4, "f" ] ],
|
264
|
-
# # [ "=", [ 5, "j"], [ 5, "j" ] ],
|
265
|
-
# # [ "+", [ 6, nil], [ 6, "k" ] ],
|
266
|
-
# # [ "=", [ 6, "l"], [ 7, "l" ] ],
|
267
|
-
# # [ "=", [ 7, "m"], [ 8, "m" ] ],
|
268
|
-
# # [ "!", [ 8, "n"], [ 9, "r" ] ],
|
269
|
-
# # [ "!", [ 9, "p"], [ 10, "s" ] ],
|
270
|
-
# # [ "+", [ 10, nil], [ 11, "t" ] ] ]
|
271
|
-
#
|
272
|
-
# The result of this operation is similar to that of
|
273
|
-
# Diff::LCS::ContextDiffCallbacks. They may be compared as:
|
274
|
-
#
|
275
|
-
# s = Diff::LCS.sdiff(seq1, seq2).reject { |e| e.action == "=" }
|
276
|
-
# c = Diff::LCS.sdiff(seq1, seq2, Diff::LCS::ContextDiffCallbacks).flatten(1)
|
277
|
-
#
|
278
|
-
# s == c # -> true
|
279
|
-
#
|
280
|
-
# === Use
|
281
|
-
#
|
282
|
-
# This callback object must be initialised and is used by the Diff::LCS#sdiff
|
283
|
-
# method.
|
284
|
-
#
|
285
|
-
# cbo = Diff::LCS::SDiffCallbacks.new
|
286
|
-
# Diff::LCS.LCS(seq1, seq2, cbo)
|
287
|
-
#
|
288
|
-
# As with the other initialisable callback objects,
|
289
|
-
# Diff::LCS::SDiffCallbacks can be initialised with a block. As there is no
|
290
|
-
# "fininishing" to be done, this has no effect on the state of the object.
|
291
|
-
#
|
292
|
-
# cbo = Diff::LCS::SDiffCallbacks.new { |tcbo| Diff::LCS.LCS(seq1, seq2, tcbo) }
|
293
|
-
#
|
294
|
-
# === Simplified Array Format
|
295
|
-
#
|
296
|
-
# The simplified array format used in the example above can be obtained
|
297
|
-
# with:
|
298
|
-
#
|
299
|
-
# require 'pp'
|
300
|
-
# pp diffs.map { |e| e.to_a }
|
301
|
-
class Diff::LCS::SDiffCallbacks
|
302
|
-
# Returns the difference set collected during the diff process.
|
303
|
-
attr_reader :diffs
|
304
|
-
|
305
|
-
def initialize #:yields self:
|
306
|
-
@diffs = []
|
307
|
-
yield self if block_given?
|
308
|
-
end
|
309
|
-
|
310
|
-
def match(event)
|
311
|
-
@diffs << Diff::LCS::ContextChange.simplify(event)
|
312
|
-
end
|
313
|
-
|
314
|
-
def discard_a(event)
|
315
|
-
@diffs << Diff::LCS::ContextChange.simplify(event)
|
316
|
-
end
|
317
|
-
|
318
|
-
def discard_b(event)
|
319
|
-
@diffs << Diff::LCS::ContextChange.simplify(event)
|
320
|
-
end
|
321
|
-
|
322
|
-
def change(event)
|
323
|
-
@diffs << Diff::LCS::ContextChange.simplify(event)
|
324
|
-
end
|
325
|
-
end
|
@@ -1,174 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Represents a simplistic (non-contextual) change. Represents the removal or
|
4
|
-
# addition of an element from either the old or the new sequenced
|
5
|
-
# enumerable.
|
6
|
-
class Diff::LCS::Change
|
7
|
-
IntClass = 1.class # Fixnum is deprecated in Ruby 2.4 # rubocop:disable Naming/ConstantName
|
8
|
-
|
9
|
-
# The only actions valid for changes are '+' (add), '-' (delete), '='
|
10
|
-
# (no change), '!' (changed), '<' (tail changes from first sequence), or
|
11
|
-
# '>' (tail changes from second sequence). The last two ('<>') are only
|
12
|
-
# found with Diff::LCS::diff and Diff::LCS::sdiff.
|
13
|
-
VALID_ACTIONS = %w(+ - = ! > <).freeze
|
14
|
-
|
15
|
-
def self.valid_action?(action)
|
16
|
-
VALID_ACTIONS.include? action
|
17
|
-
end
|
18
|
-
|
19
|
-
# Returns the action this Change represents.
|
20
|
-
attr_reader :action
|
21
|
-
|
22
|
-
# Returns the position of the Change.
|
23
|
-
attr_reader :position
|
24
|
-
# Returns the sequence element of the Change.
|
25
|
-
attr_reader :element
|
26
|
-
|
27
|
-
def initialize(*args)
|
28
|
-
@action, @position, @element = *args
|
29
|
-
|
30
|
-
fail "Invalid Change Action '#{@action}'" unless Diff::LCS::Change.valid_action?(@action)
|
31
|
-
fail 'Invalid Position Type' unless @position.kind_of? IntClass
|
32
|
-
end
|
33
|
-
|
34
|
-
def inspect(*_args)
|
35
|
-
"#<#{self.class}: #{to_a.inspect}>"
|
36
|
-
end
|
37
|
-
|
38
|
-
def to_a
|
39
|
-
[@action, @position, @element]
|
40
|
-
end
|
41
|
-
|
42
|
-
alias to_ary to_a
|
43
|
-
|
44
|
-
def self.from_a(arr)
|
45
|
-
arr = arr.flatten(1)
|
46
|
-
case arr.size
|
47
|
-
when 5
|
48
|
-
Diff::LCS::ContextChange.new(*(arr[0...5]))
|
49
|
-
when 3
|
50
|
-
Diff::LCS::Change.new(*(arr[0...3]))
|
51
|
-
else
|
52
|
-
fail 'Invalid change array format provided.'
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
|
-
include Comparable
|
57
|
-
|
58
|
-
def ==(other)
|
59
|
-
(self.class == other.class) and
|
60
|
-
(action == other.action) and
|
61
|
-
(position == other.position) and
|
62
|
-
(element == other.element)
|
63
|
-
end
|
64
|
-
|
65
|
-
def <=>(other)
|
66
|
-
r = action <=> other.action
|
67
|
-
r = position <=> other.position if r.zero?
|
68
|
-
r = element <=> other.element if r.zero?
|
69
|
-
r
|
70
|
-
end
|
71
|
-
|
72
|
-
def adding?
|
73
|
-
@action == '+'
|
74
|
-
end
|
75
|
-
|
76
|
-
def deleting?
|
77
|
-
@action == '-'
|
78
|
-
end
|
79
|
-
|
80
|
-
def unchanged?
|
81
|
-
@action == '='
|
82
|
-
end
|
83
|
-
|
84
|
-
def changed?
|
85
|
-
@action == '!'
|
86
|
-
end
|
87
|
-
|
88
|
-
def finished_a?
|
89
|
-
@action == '>'
|
90
|
-
end
|
91
|
-
|
92
|
-
def finished_b?
|
93
|
-
@action == '<'
|
94
|
-
end
|
95
|
-
end
|
96
|
-
|
97
|
-
# Represents a contextual change. Contains the position and values of the
|
98
|
-
# elements in the old and the new sequenced enumerables as well as the action
|
99
|
-
# taken.
|
100
|
-
class Diff::LCS::ContextChange < Diff::LCS::Change
|
101
|
-
# We don't need these two values.
|
102
|
-
undef :position
|
103
|
-
undef :element
|
104
|
-
|
105
|
-
# Returns the old position being changed.
|
106
|
-
attr_reader :old_position
|
107
|
-
# Returns the new position being changed.
|
108
|
-
attr_reader :new_position
|
109
|
-
# Returns the old element being changed.
|
110
|
-
attr_reader :old_element
|
111
|
-
# Returns the new element being changed.
|
112
|
-
attr_reader :new_element
|
113
|
-
|
114
|
-
def initialize(*args)
|
115
|
-
@action, @old_position, @old_element, @new_position, @new_element = *args
|
116
|
-
|
117
|
-
fail "Invalid Change Action '#{@action}'" unless Diff::LCS::Change.valid_action?(@action)
|
118
|
-
fail 'Invalid (Old) Position Type' unless @old_position.nil? or @old_position.kind_of? IntClass
|
119
|
-
fail 'Invalid (New) Position Type' unless @new_position.nil? or @new_position.kind_of? IntClass
|
120
|
-
end
|
121
|
-
|
122
|
-
def to_a
|
123
|
-
[
|
124
|
-
@action,
|
125
|
-
[@old_position, @old_element],
|
126
|
-
[@new_position, @new_element]
|
127
|
-
]
|
128
|
-
end
|
129
|
-
|
130
|
-
alias to_ary to_a
|
131
|
-
|
132
|
-
def self.from_a(arr)
|
133
|
-
Diff::LCS::Change.from_a(arr)
|
134
|
-
end
|
135
|
-
|
136
|
-
# Simplifies a context change for use in some diff callbacks. '<' actions
|
137
|
-
# are converted to '-' and '>' actions are converted to '+'.
|
138
|
-
def self.simplify(event)
|
139
|
-
ea = event.to_a
|
140
|
-
|
141
|
-
case ea[0]
|
142
|
-
when '-'
|
143
|
-
ea[2][1] = nil
|
144
|
-
when '<'
|
145
|
-
ea[0] = '-'
|
146
|
-
ea[2][1] = nil
|
147
|
-
when '+'
|
148
|
-
ea[1][1] = nil
|
149
|
-
when '>'
|
150
|
-
ea[0] = '+'
|
151
|
-
ea[1][1] = nil
|
152
|
-
end
|
153
|
-
|
154
|
-
Diff::LCS::ContextChange.from_a(ea)
|
155
|
-
end
|
156
|
-
|
157
|
-
def ==(other)
|
158
|
-
(self.class == other.class) and
|
159
|
-
(@action == other.action) and
|
160
|
-
(@old_position == other.old_position) and
|
161
|
-
(@new_position == other.new_position) and
|
162
|
-
(@old_element == other.old_element) and
|
163
|
-
(@new_element == other.new_element)
|
164
|
-
end
|
165
|
-
|
166
|
-
def <=>(other)
|
167
|
-
r = @action <=> other.action
|
168
|
-
r = @old_position <=> other.old_position if r.zero?
|
169
|
-
r = @new_position <=> other.new_position if r.zero?
|
170
|
-
r = @old_element <=> other.old_element if r.zero?
|
171
|
-
r = @new_element <=> other.new_element if r.zero?
|
172
|
-
r
|
173
|
-
end
|
174
|
-
end
|