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,87 +0,0 @@
|
|
1
|
-
module RSpec
|
2
|
-
module Core
|
3
|
-
# @private
|
4
|
-
module Invocations
|
5
|
-
# @private
|
6
|
-
class InitializeProject
|
7
|
-
def call(*_args)
|
8
|
-
RSpec::Support.require_rspec_core "project_initializer"
|
9
|
-
ProjectInitializer.new.run
|
10
|
-
0
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
# @private
|
15
|
-
class DRbWithFallback
|
16
|
-
def call(options, err, out)
|
17
|
-
require 'rspec/core/drb'
|
18
|
-
begin
|
19
|
-
return DRbRunner.new(options).run(err, out)
|
20
|
-
rescue DRb::DRbConnError
|
21
|
-
err.puts "No DRb server is running. Running in local process instead ..."
|
22
|
-
end
|
23
|
-
RSpec::Core::Runner.new(options).run(err, out)
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
# @private
|
28
|
-
class Bisect
|
29
|
-
def call(options, err, out)
|
30
|
-
RSpec::Support.require_rspec_core "bisect/coordinator"
|
31
|
-
runner = Runner.new(options).tap { |r| r.configure(err, out) }
|
32
|
-
formatter = bisect_formatter_klass_for(options.options[:bisect]).new(
|
33
|
-
out, runner.configuration.bisect_runner
|
34
|
-
)
|
35
|
-
|
36
|
-
success = RSpec::Core::Bisect::Coordinator.bisect_with(
|
37
|
-
runner, options.args, formatter
|
38
|
-
)
|
39
|
-
|
40
|
-
success ? 0 : 1
|
41
|
-
end
|
42
|
-
|
43
|
-
private
|
44
|
-
|
45
|
-
def bisect_formatter_klass_for(argument)
|
46
|
-
return Formatters::BisectDebugFormatter if argument == "verbose"
|
47
|
-
Formatters::BisectProgressFormatter
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
# @private
|
52
|
-
class PrintVersion
|
53
|
-
def call(_options, _err, out)
|
54
|
-
overall_version = RSpec::Core::Version::STRING
|
55
|
-
unless overall_version =~ /[a-zA-Z]+/
|
56
|
-
overall_version = overall_version.split('.').first(2).join('.')
|
57
|
-
end
|
58
|
-
|
59
|
-
out.puts "RSpec #{overall_version}"
|
60
|
-
|
61
|
-
[:Core, :Expectations, :Mocks, :Rails, :Support].each do |const_name|
|
62
|
-
lib_name = const_name.to_s.downcase
|
63
|
-
begin
|
64
|
-
require "rspec/#{lib_name}/version"
|
65
|
-
rescue LoadError
|
66
|
-
# Not worth mentioning libs that are not installed
|
67
|
-
nil
|
68
|
-
else
|
69
|
-
out.puts " - rspec-#{lib_name} #{RSpec.const_get(const_name)::Version::STRING}"
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
0
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
# @private
|
78
|
-
PrintHelp = Struct.new(:parser, :hidden_options) do
|
79
|
-
def call(_options, _err, out)
|
80
|
-
# Removing the hidden options from the output.
|
81
|
-
out.puts parser.to_s.gsub(/^\s+(#{hidden_options.join('|')})\b.*$\n/, '')
|
82
|
-
0
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|
@@ -1,554 +0,0 @@
|
|
1
|
-
RSpec::Support.require_rspec_support 'reentrant_mutex'
|
2
|
-
|
3
|
-
module RSpec
|
4
|
-
module Core
|
5
|
-
# This module is included in {ExampleGroup}, making the methods
|
6
|
-
# available to be called from within example blocks.
|
7
|
-
#
|
8
|
-
# @see ClassMethods
|
9
|
-
module MemoizedHelpers
|
10
|
-
# @note `subject` was contributed by Joe Ferris to support the one-liner
|
11
|
-
# syntax embraced by shoulda matchers:
|
12
|
-
#
|
13
|
-
# RSpec.describe Widget do
|
14
|
-
# it { is_expected.to validate_presence_of(:name) }
|
15
|
-
# # or
|
16
|
-
# it { should validate_presence_of(:name) }
|
17
|
-
# end
|
18
|
-
#
|
19
|
-
# While the examples below demonstrate how to use `subject`
|
20
|
-
# explicitly in examples, we recommend that you define a method with
|
21
|
-
# an intention revealing name instead.
|
22
|
-
#
|
23
|
-
# @example
|
24
|
-
#
|
25
|
-
# # Explicit declaration of subject.
|
26
|
-
# RSpec.describe Person do
|
27
|
-
# subject { Person.new(:birthdate => 19.years.ago) }
|
28
|
-
# it "should be eligible to vote" do
|
29
|
-
# subject.should be_eligible_to_vote
|
30
|
-
# # ^ ^ explicit reference to subject not recommended
|
31
|
-
# end
|
32
|
-
# end
|
33
|
-
#
|
34
|
-
# # Implicit subject => { Person.new }.
|
35
|
-
# RSpec.describe Person do
|
36
|
-
# it "should be eligible to vote" do
|
37
|
-
# subject.should be_eligible_to_vote
|
38
|
-
# # ^ ^ explicit reference to subject not recommended
|
39
|
-
# end
|
40
|
-
# end
|
41
|
-
#
|
42
|
-
# # One-liner syntax - expectation is set on the subject.
|
43
|
-
# RSpec.describe Person do
|
44
|
-
# it { is_expected.to be_eligible_to_vote }
|
45
|
-
# # or
|
46
|
-
# it { should be_eligible_to_vote }
|
47
|
-
# end
|
48
|
-
#
|
49
|
-
# @note Because `subject` is designed to create state that is reset
|
50
|
-
# between each example, and `before(:context)` is designed to setup
|
51
|
-
# state that is shared across _all_ examples in an example group,
|
52
|
-
# `subject` is _not_ intended to be used in a `before(:context)` hook.
|
53
|
-
#
|
54
|
-
# @see #should
|
55
|
-
# @see #should_not
|
56
|
-
# @see #is_expected
|
57
|
-
def subject
|
58
|
-
__memoized.fetch_or_store(:subject) do
|
59
|
-
described = described_class || self.class.metadata.fetch(:description_args).first
|
60
|
-
Class === described ? described.new : described
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
# When `should` is called with no explicit receiver, the call is
|
65
|
-
# delegated to the object returned by `subject`. Combined with an
|
66
|
-
# implicit subject this supports very concise expressions.
|
67
|
-
#
|
68
|
-
# @example
|
69
|
-
#
|
70
|
-
# RSpec.describe Person do
|
71
|
-
# it { should be_eligible_to_vote }
|
72
|
-
# end
|
73
|
-
#
|
74
|
-
# @see #subject
|
75
|
-
# @see #is_expected
|
76
|
-
#
|
77
|
-
# @note This only works if you are using rspec-expectations.
|
78
|
-
# @note If you are using RSpec's newer expect-based syntax you may
|
79
|
-
# want to use `is_expected.to` instead of `should`.
|
80
|
-
def should(matcher=nil, message=nil)
|
81
|
-
RSpec::Expectations::PositiveExpectationHandler.handle_matcher(subject, matcher, message)
|
82
|
-
end
|
83
|
-
|
84
|
-
# Just like `should`, `should_not` delegates to the subject (implicit or
|
85
|
-
# explicit) of the example group.
|
86
|
-
#
|
87
|
-
# @example
|
88
|
-
#
|
89
|
-
# RSpec.describe Person do
|
90
|
-
# it { should_not be_eligible_to_vote }
|
91
|
-
# end
|
92
|
-
#
|
93
|
-
# @see #subject
|
94
|
-
# @see #is_expected
|
95
|
-
#
|
96
|
-
# @note This only works if you are using rspec-expectations.
|
97
|
-
# @note If you are using RSpec's newer expect-based syntax you may
|
98
|
-
# want to use `is_expected.to_not` instead of `should_not`.
|
99
|
-
def should_not(matcher=nil, message=nil)
|
100
|
-
RSpec::Expectations::NegativeExpectationHandler.handle_matcher(subject, matcher, message)
|
101
|
-
end
|
102
|
-
|
103
|
-
# Wraps the `subject` in `expect` to make it the target of an expectation.
|
104
|
-
# Designed to read nicely for one-liners.
|
105
|
-
#
|
106
|
-
# @example
|
107
|
-
#
|
108
|
-
# describe [1, 2, 3] do
|
109
|
-
# it { is_expected.to be_an Array }
|
110
|
-
# it { is_expected.not_to include 4 }
|
111
|
-
# end
|
112
|
-
#
|
113
|
-
# @see #subject
|
114
|
-
# @see #should
|
115
|
-
# @see #should_not
|
116
|
-
#
|
117
|
-
# @note This only works if you are using rspec-expectations.
|
118
|
-
def is_expected
|
119
|
-
expect(subject)
|
120
|
-
end
|
121
|
-
|
122
|
-
# @private
|
123
|
-
# should just be placed in private section,
|
124
|
-
# but Ruby issues warnings on private attributes.
|
125
|
-
# and expanding it to the equivalent method upsets Rubocop,
|
126
|
-
# b/c it should obviously be a reader
|
127
|
-
attr_reader :__memoized
|
128
|
-
private :__memoized
|
129
|
-
|
130
|
-
private
|
131
|
-
|
132
|
-
# @private
|
133
|
-
def initialize(*)
|
134
|
-
__init_memoized
|
135
|
-
super
|
136
|
-
end
|
137
|
-
|
138
|
-
# @private
|
139
|
-
def __init_memoized
|
140
|
-
@__memoized = if RSpec.configuration.threadsafe?
|
141
|
-
ThreadsafeMemoized.new
|
142
|
-
else
|
143
|
-
NonThreadSafeMemoized.new
|
144
|
-
end
|
145
|
-
end
|
146
|
-
|
147
|
-
# @private
|
148
|
-
class ThreadsafeMemoized
|
149
|
-
def initialize
|
150
|
-
@memoized = {}
|
151
|
-
@mutex = Support::ReentrantMutex.new
|
152
|
-
end
|
153
|
-
|
154
|
-
def fetch_or_store(key)
|
155
|
-
@memoized.fetch(key) do # only first access pays for synchronization
|
156
|
-
@mutex.synchronize do
|
157
|
-
@memoized.fetch(key) { @memoized[key] = yield }
|
158
|
-
end
|
159
|
-
end
|
160
|
-
end
|
161
|
-
end
|
162
|
-
|
163
|
-
# @private
|
164
|
-
class NonThreadSafeMemoized
|
165
|
-
def initialize
|
166
|
-
@memoized = {}
|
167
|
-
end
|
168
|
-
|
169
|
-
def fetch_or_store(key)
|
170
|
-
@memoized.fetch(key) { @memoized[key] = yield }
|
171
|
-
end
|
172
|
-
end
|
173
|
-
|
174
|
-
# Used internally to customize the behavior of the
|
175
|
-
# memoized hash when used in a `before(:context)` hook.
|
176
|
-
#
|
177
|
-
# @private
|
178
|
-
class ContextHookMemoized
|
179
|
-
def self.isolate_for_context_hook(example_group_instance)
|
180
|
-
exploding_memoized = self
|
181
|
-
|
182
|
-
example_group_instance.instance_exec do
|
183
|
-
@__memoized = exploding_memoized
|
184
|
-
|
185
|
-
begin
|
186
|
-
yield
|
187
|
-
ensure
|
188
|
-
# This is doing a reset instead of just isolating for context hook.
|
189
|
-
# Really, this should set the old @__memoized back into place.
|
190
|
-
#
|
191
|
-
# Caller is the before and after context hooks
|
192
|
-
# which are both called from self.run
|
193
|
-
# I didn't look at why it made tests fail, maybe an object was getting reused in RSpec tests,
|
194
|
-
# if so, then that probably already works, and its the tests that are wrong.
|
195
|
-
__init_memoized
|
196
|
-
end
|
197
|
-
end
|
198
|
-
end
|
199
|
-
|
200
|
-
def self.fetch_or_store(key, &_block)
|
201
|
-
description = if key == :subject
|
202
|
-
"subject"
|
203
|
-
else
|
204
|
-
"let declaration `#{key}`"
|
205
|
-
end
|
206
|
-
|
207
|
-
raise <<-EOS
|
208
|
-
#{description} accessed in #{article} #{hook_expression} hook at:
|
209
|
-
#{CallerFilter.first_non_rspec_line}
|
210
|
-
|
211
|
-
`let` and `subject` declarations are not intended to be called
|
212
|
-
in #{article} #{hook_expression} hook, as they exist to define state that
|
213
|
-
is reset between each example, while #{hook_expression} exists to
|
214
|
-
#{hook_intention}.
|
215
|
-
EOS
|
216
|
-
end
|
217
|
-
|
218
|
-
# @private
|
219
|
-
class Before < self
|
220
|
-
def self.hook_expression
|
221
|
-
"`before(:context)`"
|
222
|
-
end
|
223
|
-
|
224
|
-
def self.article
|
225
|
-
"a"
|
226
|
-
end
|
227
|
-
|
228
|
-
def self.hook_intention
|
229
|
-
"define state that is shared across examples in an example group"
|
230
|
-
end
|
231
|
-
end
|
232
|
-
|
233
|
-
# @private
|
234
|
-
class After < self
|
235
|
-
def self.hook_expression
|
236
|
-
"`after(:context)`"
|
237
|
-
end
|
238
|
-
|
239
|
-
def self.article
|
240
|
-
"an"
|
241
|
-
end
|
242
|
-
|
243
|
-
def self.hook_intention
|
244
|
-
"cleanup state that is shared across examples in an example group"
|
245
|
-
end
|
246
|
-
end
|
247
|
-
end
|
248
|
-
|
249
|
-
# This module is extended onto {ExampleGroup}, making the methods
|
250
|
-
# available to be called from within example group blocks.
|
251
|
-
# You can think of them as being analagous to class macros.
|
252
|
-
module ClassMethods
|
253
|
-
# Generates a method whose return value is memoized after the first
|
254
|
-
# call. Useful for reducing duplication between examples that assign
|
255
|
-
# values to the same local variable.
|
256
|
-
#
|
257
|
-
# @note `let` _can_ enhance readability when used sparingly (1,2, or
|
258
|
-
# maybe 3 declarations) in any given example group, but that can
|
259
|
-
# quickly degrade with overuse. YMMV.
|
260
|
-
#
|
261
|
-
# @note `let` can be configured to be threadsafe or not.
|
262
|
-
# If it is threadsafe, it will take longer to access the value.
|
263
|
-
# If it is not threadsafe, it may behave in surprising ways in examples
|
264
|
-
# that spawn separate threads. Specify this on `RSpec.configure`
|
265
|
-
#
|
266
|
-
# @note Because `let` is designed to create state that is reset between
|
267
|
-
# each example, and `before(:context)` is designed to setup state that
|
268
|
-
# is shared across _all_ examples in an example group, `let` is _not_
|
269
|
-
# intended to be used in a `before(:context)` hook.
|
270
|
-
#
|
271
|
-
# @example
|
272
|
-
#
|
273
|
-
# RSpec.describe Thing do
|
274
|
-
# let(:thing) { Thing.new }
|
275
|
-
#
|
276
|
-
# it "does something" do
|
277
|
-
# # First invocation, executes block, memoizes and returns result.
|
278
|
-
# thing.do_something
|
279
|
-
#
|
280
|
-
# # Second invocation, returns the memoized value.
|
281
|
-
# thing.should be_something
|
282
|
-
# end
|
283
|
-
# end
|
284
|
-
def let(name, &block)
|
285
|
-
# We have to pass the block directly to `define_method` to
|
286
|
-
# allow it to use method constructs like `super` and `return`.
|
287
|
-
raise "#let or #subject called without a block" if block.nil?
|
288
|
-
raise(
|
289
|
-
"#let or #subject called with a reserved name #initialize"
|
290
|
-
) if :initialize == name
|
291
|
-
our_module = MemoizedHelpers.module_for(self)
|
292
|
-
|
293
|
-
# If we have a module clash in our helper module
|
294
|
-
# then we need to remove it to prevent a warning.
|
295
|
-
#
|
296
|
-
# Note we do not check ancestor modules (see: `instance_methods(false)`)
|
297
|
-
# as we can override them.
|
298
|
-
if our_module.instance_methods(false).include?(name)
|
299
|
-
our_module.__send__(:remove_method, name)
|
300
|
-
end
|
301
|
-
our_module.__send__(:define_method, name, &block)
|
302
|
-
|
303
|
-
# If we have a module clash in the example module
|
304
|
-
# then we need to remove it to prevent a warning.
|
305
|
-
#
|
306
|
-
# Note we do not check ancestor modules (see: `instance_methods(false)`)
|
307
|
-
# as we can override them.
|
308
|
-
if instance_methods(false).include?(name)
|
309
|
-
remove_method(name)
|
310
|
-
end
|
311
|
-
|
312
|
-
# Apply the memoization. The method has been defined in an ancestor
|
313
|
-
# module so we can use `super` here to get the value.
|
314
|
-
if block.arity == 1
|
315
|
-
define_method(name) { __memoized.fetch_or_store(name) { super(RSpec.current_example, &nil) } }
|
316
|
-
else
|
317
|
-
define_method(name) { __memoized.fetch_or_store(name) { super(&nil) } }
|
318
|
-
end
|
319
|
-
end
|
320
|
-
|
321
|
-
# Just like `let`, except the block is invoked by an implicit `before`
|
322
|
-
# hook. This serves a dual purpose of setting up state and providing a
|
323
|
-
# memoized reference to that state.
|
324
|
-
#
|
325
|
-
# @example
|
326
|
-
#
|
327
|
-
# class Thing
|
328
|
-
# def self.count
|
329
|
-
# @count ||= 0
|
330
|
-
# end
|
331
|
-
#
|
332
|
-
# def self.count=(val)
|
333
|
-
# @count += val
|
334
|
-
# end
|
335
|
-
#
|
336
|
-
# def self.reset_count
|
337
|
-
# @count = 0
|
338
|
-
# end
|
339
|
-
#
|
340
|
-
# def initialize
|
341
|
-
# self.class.count += 1
|
342
|
-
# end
|
343
|
-
# end
|
344
|
-
#
|
345
|
-
# RSpec.describe Thing do
|
346
|
-
# after(:example) { Thing.reset_count }
|
347
|
-
#
|
348
|
-
# context "using let" do
|
349
|
-
# let(:thing) { Thing.new }
|
350
|
-
#
|
351
|
-
# it "is not invoked implicitly" do
|
352
|
-
# Thing.count.should eq(0)
|
353
|
-
# end
|
354
|
-
#
|
355
|
-
# it "can be invoked explicitly" do
|
356
|
-
# thing
|
357
|
-
# Thing.count.should eq(1)
|
358
|
-
# end
|
359
|
-
# end
|
360
|
-
#
|
361
|
-
# context "using let!" do
|
362
|
-
# let!(:thing) { Thing.new }
|
363
|
-
#
|
364
|
-
# it "is invoked implicitly" do
|
365
|
-
# Thing.count.should eq(1)
|
366
|
-
# end
|
367
|
-
#
|
368
|
-
# it "returns memoized version on first invocation" do
|
369
|
-
# thing
|
370
|
-
# Thing.count.should eq(1)
|
371
|
-
# end
|
372
|
-
# end
|
373
|
-
# end
|
374
|
-
def let!(name, &block)
|
375
|
-
let(name, &block)
|
376
|
-
before { __send__(name) }
|
377
|
-
end
|
378
|
-
|
379
|
-
# Declares a `subject` for an example group which can then be wrapped
|
380
|
-
# with `expect` using `is_expected` to make it the target of an
|
381
|
-
# expectation in a concise, one-line example.
|
382
|
-
#
|
383
|
-
# Given a `name`, defines a method with that name which returns the
|
384
|
-
# `subject`. This lets you declare the subject once and access it
|
385
|
-
# implicitly in one-liners and explicitly using an intention revealing
|
386
|
-
# name.
|
387
|
-
#
|
388
|
-
# When given a `name`, calling `super` in the block is not supported.
|
389
|
-
#
|
390
|
-
# @note `subject` can be configured to be threadsafe or not.
|
391
|
-
# If it is threadsafe, it will take longer to access the value.
|
392
|
-
# If it is not threadsafe, it may behave in surprising ways in examples
|
393
|
-
# that spawn separate threads. Specify this on `RSpec.configure`
|
394
|
-
#
|
395
|
-
# @param name [String,Symbol] used to define an accessor with an
|
396
|
-
# intention revealing name
|
397
|
-
# @param block defines the value to be returned by `subject` in examples
|
398
|
-
#
|
399
|
-
# @example
|
400
|
-
#
|
401
|
-
# RSpec.describe CheckingAccount, "with $50" do
|
402
|
-
# subject { CheckingAccount.new(Money.new(50, :USD)) }
|
403
|
-
# it { is_expected.to have_a_balance_of(Money.new(50, :USD)) }
|
404
|
-
# it { is_expected.not_to be_overdrawn }
|
405
|
-
# end
|
406
|
-
#
|
407
|
-
# RSpec.describe CheckingAccount, "with a non-zero starting balance" do
|
408
|
-
# subject(:account) { CheckingAccount.new(Money.new(50, :USD)) }
|
409
|
-
# it { is_expected.not_to be_overdrawn }
|
410
|
-
# it "has a balance equal to the starting balance" do
|
411
|
-
# account.balance.should eq(Money.new(50, :USD))
|
412
|
-
# end
|
413
|
-
# end
|
414
|
-
#
|
415
|
-
# @see MemoizedHelpers#should
|
416
|
-
# @see MemoizedHelpers#should_not
|
417
|
-
# @see MemoizedHelpers#is_expected
|
418
|
-
def subject(name=nil, &block)
|
419
|
-
if name
|
420
|
-
let(name, &block)
|
421
|
-
alias_method :subject, name
|
422
|
-
|
423
|
-
self::NamedSubjectPreventSuper.__send__(:define_method, name) do
|
424
|
-
raise NotImplementedError, "`super` in named subjects is not supported"
|
425
|
-
end
|
426
|
-
else
|
427
|
-
let(:subject, &block)
|
428
|
-
end
|
429
|
-
end
|
430
|
-
|
431
|
-
# Just like `subject`, except the block is invoked by an implicit
|
432
|
-
# `before` hook. This serves a dual purpose of setting up state and
|
433
|
-
# providing a memoized reference to that state.
|
434
|
-
#
|
435
|
-
# @example
|
436
|
-
#
|
437
|
-
# class Thing
|
438
|
-
# def self.count
|
439
|
-
# @count ||= 0
|
440
|
-
# end
|
441
|
-
#
|
442
|
-
# def self.count=(val)
|
443
|
-
# @count += val
|
444
|
-
# end
|
445
|
-
#
|
446
|
-
# def self.reset_count
|
447
|
-
# @count = 0
|
448
|
-
# end
|
449
|
-
#
|
450
|
-
# def initialize
|
451
|
-
# self.class.count += 1
|
452
|
-
# end
|
453
|
-
# end
|
454
|
-
#
|
455
|
-
# RSpec.describe Thing do
|
456
|
-
# after(:example) { Thing.reset_count }
|
457
|
-
#
|
458
|
-
# context "using subject" do
|
459
|
-
# subject { Thing.new }
|
460
|
-
#
|
461
|
-
# it "is not invoked implicitly" do
|
462
|
-
# Thing.count.should eq(0)
|
463
|
-
# end
|
464
|
-
#
|
465
|
-
# it "can be invoked explicitly" do
|
466
|
-
# subject
|
467
|
-
# Thing.count.should eq(1)
|
468
|
-
# end
|
469
|
-
# end
|
470
|
-
#
|
471
|
-
# context "using subject!" do
|
472
|
-
# subject!(:thing) { Thing.new }
|
473
|
-
#
|
474
|
-
# it "is invoked implicitly" do
|
475
|
-
# Thing.count.should eq(1)
|
476
|
-
# end
|
477
|
-
#
|
478
|
-
# it "returns memoized version on first invocation" do
|
479
|
-
# subject
|
480
|
-
# Thing.count.should eq(1)
|
481
|
-
# end
|
482
|
-
# end
|
483
|
-
# end
|
484
|
-
def subject!(name=nil, &block)
|
485
|
-
subject(name, &block)
|
486
|
-
before { subject }
|
487
|
-
end
|
488
|
-
end
|
489
|
-
|
490
|
-
# @private
|
491
|
-
#
|
492
|
-
# Gets the LetDefinitions module. The module is mixed into
|
493
|
-
# the example group and is used to hold all let definitions.
|
494
|
-
# This is done so that the block passed to `let` can be
|
495
|
-
# forwarded directly on to `define_method`, so that all method
|
496
|
-
# constructs (including `super` and `return`) can be used in
|
497
|
-
# a `let` block.
|
498
|
-
#
|
499
|
-
# The memoization is provided by a method definition on the
|
500
|
-
# example group that supers to the LetDefinitions definition
|
501
|
-
# in order to get the value to memoize.
|
502
|
-
def self.module_for(example_group)
|
503
|
-
get_constant_or_yield(example_group, :LetDefinitions) do
|
504
|
-
mod = Module.new do
|
505
|
-
include(Module.new {
|
506
|
-
example_group.const_set(:NamedSubjectPreventSuper, self)
|
507
|
-
})
|
508
|
-
end
|
509
|
-
|
510
|
-
example_group.const_set(:LetDefinitions, mod)
|
511
|
-
mod
|
512
|
-
end
|
513
|
-
end
|
514
|
-
|
515
|
-
# @private
|
516
|
-
def self.define_helpers_on(example_group)
|
517
|
-
example_group.__send__(:include, module_for(example_group))
|
518
|
-
end
|
519
|
-
|
520
|
-
if Module.method(:const_defined?).arity == 1 # for 1.8
|
521
|
-
# @private
|
522
|
-
#
|
523
|
-
# Gets the named constant or yields.
|
524
|
-
# On 1.8, const_defined? / const_get do not take into
|
525
|
-
# account the inheritance hierarchy.
|
526
|
-
# :nocov:
|
527
|
-
def self.get_constant_or_yield(example_group, name)
|
528
|
-
if example_group.const_defined?(name)
|
529
|
-
example_group.const_get(name)
|
530
|
-
else
|
531
|
-
yield
|
532
|
-
end
|
533
|
-
end
|
534
|
-
# :nocov:
|
535
|
-
else
|
536
|
-
# @private
|
537
|
-
#
|
538
|
-
# Gets the named constant or yields.
|
539
|
-
# On 1.9, const_defined? / const_get take into account the
|
540
|
-
# the inheritance by default, and accept an argument to
|
541
|
-
# disable this behavior. It's important that we don't
|
542
|
-
# consider inheritance here; each example group level that
|
543
|
-
# uses a `let` should get its own `LetDefinitions` module.
|
544
|
-
def self.get_constant_or_yield(example_group, name)
|
545
|
-
if example_group.const_defined?(name, (check_ancestors = false))
|
546
|
-
example_group.const_get(name, check_ancestors)
|
547
|
-
else
|
548
|
-
yield
|
549
|
-
end
|
550
|
-
end
|
551
|
-
end
|
552
|
-
end
|
553
|
-
end
|
554
|
-
end
|