dirwatch 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/bin/dirwatch +1 -1
- data/lib/dirwatch/templates/linux/latex.yml +2 -2
- data/lib/dirwatch/templates/mac/latex.yml +2 -2
- data/lib/dirwatch/templates/windows/latex.yml +1 -1
- data/lib/dirwatch/version.rb +1 -1
- data/vendor/bundle/ruby/2.5.0/bin/cc-tddium-post-worker +27 -0
- data/vendor/bundle/ruby/2.5.0/bin/codeclimate-test-reporter +27 -0
- data/vendor/bundle/ruby/2.5.0/bin/dirwatch +27 -0
- data/vendor/bundle/ruby/2.5.0/bin/htmldiff +29 -0
- data/vendor/bundle/ruby/2.5.0/bin/ldiff +29 -0
- data/vendor/bundle/ruby/2.5.0/bin/rake +27 -0
- data/vendor/bundle/ruby/2.5.0/bin/rspec +27 -0
- data/vendor/bundle/ruby/2.5.0/bin/rubocop +27 -0
- data/vendor/bundle/ruby/2.5.0/bin/ruby-parse +27 -0
- data/vendor/bundle/ruby/2.5.0/bin/ruby-rewrite +27 -0
- data/vendor/bundle/ruby/2.5.0/cache/ast-2.3.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/codeclimate-test-reporter-1.0.8.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/diff-lcs-1.3.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/docile-1.1.5.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/parser-2.4.0.2.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/powerpack-0.1.1.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/rainbow-2.2.2.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/rake-12.3.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/rspec-3.7.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/rspec-core-3.7.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/rspec-expectations-3.7.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/rspec-mocks-3.7.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/rspec-support-3.7.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/rubocop-0.46.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/ruby-progressbar-1.9.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/simplecov-0.13.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/simplecov-html-0.10.2.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/unicode-display_width-1.3.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/rainbow-2.2.2/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/rainbow-2.2.2/gem_make.out +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/ast-2.3.0/CHANGELOG.md +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/ast-2.3.0/Gemfile +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/ast-2.3.0/LICENSE.MIT +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/ast-2.3.0/README.YARD.md +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/ast-2.3.0/README.md +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/ast-2.3.0/Rakefile +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/ast-2.3.0/ast.gemspec +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/ast-2.3.0/lib/ast.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/ast-2.3.0/lib/ast/node.rb +253 -0
- data/vendor/bundle/ruby/2.5.0/gems/ast-2.3.0/lib/ast/processor.rb +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/ast-2.3.0/lib/ast/processor/mixin.rb +288 -0
- data/vendor/bundle/ruby/2.5.0/gems/ast-2.3.0/lib/ast/sexp.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/ast-2.3.0/test/helper.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/ast-2.3.0/test/test_ast.rb +264 -0
- data/vendor/bundle/ruby/2.5.0/gems/codeclimate-test-reporter-1.0.8/LICENSE.txt +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/codeclimate-test-reporter-1.0.8/README.md +68 -0
- data/vendor/bundle/ruby/2.5.0/gems/codeclimate-test-reporter-1.0.8/bin/cc-tddium-post-worker +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/codeclimate-test-reporter-1.0.8/bin/ci +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/codeclimate-test-reporter-1.0.8/bin/codeclimate-test-reporter +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/codeclimate-test-reporter-1.0.8/config/cacert.pem +3895 -0
- data/vendor/bundle/ruby/2.5.0/gems/codeclimate-test-reporter-1.0.8/lib/code_climate/test_reporter.rb +71 -0
- data/vendor/bundle/ruby/2.5.0/gems/codeclimate-test-reporter-1.0.8/lib/code_climate/test_reporter/calculate_blob.rb +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/codeclimate-test-reporter-1.0.8/lib/code_climate/test_reporter/ci.rb +106 -0
- data/vendor/bundle/ruby/2.5.0/gems/codeclimate-test-reporter-1.0.8/lib/code_climate/test_reporter/client.rb +103 -0
- data/vendor/bundle/ruby/2.5.0/gems/codeclimate-test-reporter-1.0.8/lib/code_climate/test_reporter/configuration.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/codeclimate-test-reporter-1.0.8/lib/code_climate/test_reporter/exception_message.rb +72 -0
- data/vendor/bundle/ruby/2.5.0/gems/codeclimate-test-reporter-1.0.8/lib/code_climate/test_reporter/formatter.rb +104 -0
- data/vendor/bundle/ruby/2.5.0/gems/codeclimate-test-reporter-1.0.8/lib/code_climate/test_reporter/git.rb +85 -0
- data/vendor/bundle/ruby/2.5.0/gems/codeclimate-test-reporter-1.0.8/lib/code_climate/test_reporter/payload_validator.rb +59 -0
- data/vendor/bundle/ruby/2.5.0/gems/codeclimate-test-reporter-1.0.8/lib/code_climate/test_reporter/post_results.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/codeclimate-test-reporter-1.0.8/lib/code_climate/test_reporter/shorten_filename.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/codeclimate-test-reporter-1.0.8/lib/code_climate/test_reporter/version.rb +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/codeclimate-test-reporter-1.0.8/lib/codeclimate-test-reporter.rb +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/Code-of-Conduct.md +74 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/Contributing.md +83 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/History.md +220 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/License.md +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/Manifest.txt +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/README.rdoc +84 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/Rakefile +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/autotest/discover.rb +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/bin/htmldiff +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/bin/ldiff +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/docs/COPYING.txt +339 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/docs/artistic.txt +127 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff-lcs.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs.rb +725 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/array.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/block.rb +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/callbacks.rb +322 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/change.rb +181 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/htmldiff.rb +149 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/hunk.rb +276 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/internals.rb +307 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/ldiff.rb +167 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/string.rb +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/change_spec.rb +65 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/diff_spec.rb +47 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/fixtures/ds1.csv +50 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/fixtures/ds2.csv +51 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/hunk_spec.rb +72 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/issues_spec.rb +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/lcs_spec.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/ldiff_spec.rb +47 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/patch_spec.rb +422 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/sdiff_spec.rb +214 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/spec_helper.rb +321 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/traverse_balanced_spec.rb +310 -0
- data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/traverse_sequences_spec.rb +139 -0
- data/vendor/bundle/ruby/2.5.0/gems/docile-1.1.5/Gemfile +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/docile-1.1.5/HISTORY.md +61 -0
- data/vendor/bundle/ruby/2.5.0/gems/docile-1.1.5/LICENSE +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/docile-1.1.5/README.md +241 -0
- data/vendor/bundle/ruby/2.5.0/gems/docile-1.1.5/Rakefile +28 -0
- data/vendor/bundle/ruby/2.5.0/gems/docile-1.1.5/docile.gemspec +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/docile-1.1.5/lib/docile.rb +84 -0
- data/vendor/bundle/ruby/2.5.0/gems/docile-1.1.5/lib/docile/chaining_fallback_context_proxy.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/docile-1.1.5/lib/docile/execution.rb +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/docile-1.1.5/lib/docile/fallback_context_proxy.rb +63 -0
- data/vendor/bundle/ruby/2.5.0/gems/docile-1.1.5/lib/docile/version.rb +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/docile-1.1.5/on_what.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/docile-1.1.5/spec/docile_spec.rb +339 -0
- data/vendor/bundle/ruby/2.5.0/gems/docile-1.1.5/spec/spec_helper.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/CHANGELOG.md +823 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/CONTRIBUTING.md +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/Gemfile +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/LICENSE.txt +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/README.md +300 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/Rakefile +163 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/bin/ruby-parse +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/bin/ruby-rewrite +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/doc/AST_FORMAT.md +1678 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/doc/CUSTOMIZATION.md +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/doc/INTERNALS.md +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/doc/css/common.css +68 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/gauntlet_parser.rb +121 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser.rb +81 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/all.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/ast/node.rb +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/ast/processor.rb +234 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/base.rb +268 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/builders/default.rb +1621 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/clobbering_error.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/compatibility/ruby1_8.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/compatibility/ruby1_9.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/current.rb +90 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/diagnostic.rb +163 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/diagnostic/engine.rb +103 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/lexer.rb +21892 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/lexer.rl +2265 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/lexer/dedenter.rb +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/lexer/explanation.rb +53 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/lexer/literal.rb +262 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/lexer/stack_state.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/macruby.rb +6103 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/macruby.y +2183 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/messages.rb +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/meta.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/rewriter.rb +119 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/ruby18.rb +5647 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/ruby18.y +1927 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/ruby19.rb +6050 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/ruby19.y +2160 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/ruby20.rb +6487 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/ruby20.y +2338 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/ruby21.rb +6552 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/ruby21.y +2342 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/ruby22.rb +6585 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/ruby22.y +2349 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/ruby23.rb +6595 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/ruby23.y +2355 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/ruby24.rb +6631 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/ruby24.y +2366 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/ruby25.rb +6617 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/ruby25.y +2362 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/rubymotion.rb +6056 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/rubymotion.y +2167 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/runner.rb +246 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/runner/ruby_parse.rb +146 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/runner/ruby_rewrite.rb +99 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/source/buffer.rb +333 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/source/comment.rb +119 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/source/comment/associator.rb +208 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/source/map.rb +184 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/source/map/collection.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/source/map/condition.rb +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/source/map/constant.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/source/map/definition.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/source/map/for.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/source/map/heredoc.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/source/map/keyword.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/source/map/objc_kwarg.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/source/map/operator.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/source/map/rescue_body.rb +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/source/map/send.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/source/map/ternary.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/source/map/variable.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/source/range.rb +242 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/source/rewriter.rb +475 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/source/rewriter/action.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/static_environment.rb +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/syntax_error.rb +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/lib/parser/version.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/parser.gemspec +47 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/bug_163/fixtures/input.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/bug_163/fixtures/output.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/bug_163/rewriter.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/bug_163/test_runner_rewrite.rb +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/helper.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/parse_helper.rb +264 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/racc_coverage_helper.rb +131 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/test_base.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/test_current.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/test_diagnostic.rb +94 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/test_diagnostic_engine.rb +60 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/test_encoding.rb +78 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/test_lexer.rb +3414 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/test_lexer_stack_state.rb +76 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/test_parse_helper.rb +80 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/test_parser.rb +6024 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/test_source_buffer.rb +144 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/test_source_comment.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/test_source_comment_associator.rb +365 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/test_source_map.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/test_source_range.rb +125 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/test_source_rewriter.rb +539 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/test_source_rewriter_action.rb +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/parser-2.4.0.2/test/test_static_environment.rb +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/CHANGELOG.md +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/Gemfile +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/LICENSE.txt +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/README.md +99 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/Rakefile +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/array.rb +2 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/array/butfirst.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/array/butlast.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/enumerable.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/enumerable/average.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/enumerable/drop_last.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/enumerable/drop_last_while.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/enumerable/exactly.rb +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/enumerable/frequencies.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/enumerable/several.rb +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/enumerable/sum.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/enumerable/take_last.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/enumerable/take_last_while.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/hash.rb +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/hash/symbolize_keys.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/numeric.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/numeric/neg.rb +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/numeric/pos.rb +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/numeric/scale.rb +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/string.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/string/ascii_only.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/string/blank.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/string/format.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/string/remove.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/string/remove_prefix.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/string/remove_suffix.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/string/squish.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/string/strip_indent.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/string/strip_margin.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/lib/powerpack/version.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/powerpack.gemspec +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/array/butfirst_spec.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/array/butlast_spec.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/enumerable/average_spec.rb +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/enumerable/drop_last_spec.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/enumerable/drop_last_while_spec.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/enumerable/exactly_spec.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/enumerable/frequencies_spec.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/enumerable/several_spec.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/enumerable/sum_spec.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/enumerable/take_last_spec.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/enumerable/take_last_while_spec.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/hash/symbolize_keys_spec.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/numeric/neg_spec.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/numeric/pos_spec.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/numeric/scale_spec.rb +139 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/string/ascii_only_spec.rb +45 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/string/blank_spec.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/string/format_spec.rb +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/string/remove_prefix_spec.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/string/remove_spec.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/string/remove_suffix_spec.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/string/squish_spec.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/string/strip_indent_spec.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/powerpack/string/strip_margin_spec.rb +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/powerpack-0.1.1/spec/spec_helper.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/Changelog.md +87 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/Gemfile +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/Guardfile +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/LICENSE +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/README.markdown +217 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/Rakefile +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/ext/Rakefile +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/ext/mkrf_conf.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/lib/rainbow.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/lib/rainbow/color.rb +144 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/lib/rainbow/ext/string.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/lib/rainbow/global.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/lib/rainbow/legacy.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/lib/rainbow/null_presenter.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/lib/rainbow/presenter.rb +135 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/lib/rainbow/string_utils.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/lib/rainbow/version.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/lib/rainbow/wrapper.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/lib/rainbow/x11_color_names.rb +152 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/rainbow.gemspec +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/spec/integration/instance_spec.rb +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/spec/integration/rainbow_spec.rb +160 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/spec/integration/string_spec.rb +84 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/spec/spec_helper.rb +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/spec/support/presenter_shared_examples.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/spec/unit/color_spec.rb +301 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/spec/unit/namespace_spec.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/spec/unit/null_presenter_spec.rb +111 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/spec/unit/presenter_spec.rb +201 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/spec/unit/string_utils_spec.rb +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/rainbow-2.2.2/spec/unit/wrapper_spec.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/CONTRIBUTING.rdoc +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/Gemfile +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/History.rdoc +2299 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/README.rdoc +156 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/Rakefile +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/bin/console +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/bin/setup +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/doc/command_line_usage.rdoc +158 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/doc/example/Rakefile1 +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/doc/example/Rakefile2 +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/doc/example/a.c +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/doc/example/b.c +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/doc/example/main.c +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/doc/glossary.rdoc +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/doc/jamis.rb +592 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/doc/proto_rake.rdoc +127 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/doc/rake.1 +156 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/doc/rakefile.rdoc +622 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/doc/rational.rdoc +151 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/exe/rake +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake.rb +71 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/application.rb +824 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/backtrace.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/clean.rb +78 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/cloneable.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/cpu_counter.rb +107 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/default_loader.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/dsl_definition.rb +195 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/early_time.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/ext/core.rb +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/ext/string.rb +176 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/file_creation_task.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/file_list.rb +435 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/file_task.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/file_utils.rb +137 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/file_utils_ext.rb +145 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/invocation_chain.rb +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/invocation_exception_mixin.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/late_time.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/linked_list.rb +112 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/loaders/makefile.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/multi_task.rb +50 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/name_space.rb +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/packagetask.rb +211 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/phony.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/private_reader.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/promise.rb +100 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/pseudo_status.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/rake_module.rb +67 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/rake_test_loader.rb +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/rule_recursion_overflow_error.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/scope.rb +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/task.rb +391 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/task_argument_error.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/task_arguments.rb +109 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/task_manager.rb +319 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/tasklib.rb +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/testtask.rb +224 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/thread_history_display.rb +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/thread_pool.rb +163 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/trace_output.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/version.rb +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/lib/rake/win32.rb +51 -0
- data/vendor/bundle/ruby/2.5.0/gems/rake-12.3.0/rake.gemspec +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-3.7.0/LICENSE.md +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-3.7.0/README.md +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-3.7.0/lib/rspec.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-3.7.0/lib/rspec/version.rb +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/Changelog.md +2187 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/LICENSE.md +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/README.md +384 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/exe/rspec +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/autorun.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core.rb +185 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/backtrace_formatter.rb +65 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/bisect/coordinator.rb +66 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/bisect/example_minimizer.rb +169 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/bisect/runner.rb +169 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/bisect/server.rb +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/configuration.rb +2179 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/configuration_options.rb +196 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/drb.rb +113 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/dsl.rb +98 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/example.rb +653 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/example_group.rb +884 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/example_status_persister.rb +235 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/filter_manager.rb +231 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/flat_map.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/formatters.rb +265 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/formatters/base_formatter.rb +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/formatters/base_text_formatter.rb +75 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/formatters/bisect_formatter.rb +69 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/formatters/bisect_progress_formatter.rb +144 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/formatters/console_codes.rb +68 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/formatters/deprecation_formatter.rb +221 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/formatters/documentation_formatter.rb +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/formatters/exception_presenter.rb +496 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/formatters/fallback_message_formatter.rb +28 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/formatters/helpers.rb +110 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/formatters/html_formatter.rb +153 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/formatters/html_printer.rb +416 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/formatters/html_snippet_extractor.rb +120 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/formatters/json_formatter.rb +102 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/formatters/profile_formatter.rb +68 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/formatters/progress_formatter.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/formatters/protocol.rb +182 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/formatters/snippet_extractor.rb +134 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/formatters/syntax_highlighter.rb +91 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/hooks.rb +626 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/invocations.rb +85 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/memoized_helpers.rb +535 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/metadata.rb +499 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/metadata_filter.rb +255 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/minitest_assertions_adapter.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/mocking_adapters/flexmock.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/mocking_adapters/mocha.rb +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/mocking_adapters/null.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/mocking_adapters/rr.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/mocking_adapters/rspec.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/notifications.rb +521 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/option_parser.rb +309 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/ordering.rb +158 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/output_wrapper.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/pending.rb +165 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/profiler.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/project_initializer.rb +48 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/project_initializer/spec/spec_helper.rb +100 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/rake_task.rb +168 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/reporter.rb +260 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/ruby_project.rb +53 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/runner.rb +193 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/sandbox.rb +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/set.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/shared_context.rb +55 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/shared_example_group.rb +271 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/shell_escape.rb +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/test_unit_assertions_adapter.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/version.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/warnings.rb +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.7.0/lib/rspec/core/world.rb +264 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/Changelog.md +1083 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/LICENSE.md +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/README.md +305 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations.rb +82 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/block_snippet_extractor.rb +253 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/configuration.rb +201 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/expectation_target.rb +127 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/fail_with.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/failure_aggregator.rb +194 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/handler.rb +170 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/minitest_integration.rb +58 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/syntax.rb +132 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/version.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers.rb +1031 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/aliased_matcher.rb +116 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in.rb +52 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/all.rb +85 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/base_matcher.rb +193 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/be.rb +288 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/be_between.rb +77 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/be_instance_of.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/be_kind_of.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/be_within.rb +72 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/change.rb +387 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/compound.rb +272 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/contain_exactly.rb +301 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/cover.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/eq.rb +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/eql.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/equal.rb +81 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/exist.rb +90 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/has.rb +103 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/have_attributes.rb +114 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/include.rb +143 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/match.rb +106 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/operators.rb +128 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/output.rb +200 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/raise_error.rb +230 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/respond_to.rb +165 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/satisfy.rb +60 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/start_or_end_with.rb +94 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/throw_symbol.rb +132 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/yield.rb +432 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/composable.rb +169 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/dsl.rb +527 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/english_phrasing.rb +58 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +73 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/fail_matchers.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/generated_descriptions.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/matcher_delegator.rb +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/matcher_protocol.rb +99 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/Changelog.md +1089 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/LICENSE.md +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/README.md +460 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks.rb +130 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/chain.rb +110 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/error_generator.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/expect_chain_chain.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/expectation_chain.rb +50 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/message_chains.rb +83 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/proxy.rb +116 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/recorder.rb +289 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/stub_chain.rb +51 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/stub_chain_chain.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/argument_list_matcher.rb +100 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/argument_matchers.rb +320 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/configuration.rb +212 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/error_generator.rb +369 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/example_methods.rb +434 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/instance_method_stasher.rb +146 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/marshal_extension.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/expectation_customization.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/have_received.rb +130 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/receive.rb +132 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/receive_message_chain.rb +82 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/receive_messages.rb +77 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/message_chain.rb +87 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/message_expectation.rb +740 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/method_double.rb +287 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/method_reference.rb +202 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/minitest_integration.rb +68 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/mutate_const.rb +339 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/object_reference.rb +149 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/order_group.rb +81 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/proxy.rb +484 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/space.rb +238 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/standalone.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/syntax.rb +325 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/targets.rb +124 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/test_double.rb +171 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/verifying_double.rb +129 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/verifying_message_expectation.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/verifying_proxy.rb +220 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/version.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/Changelog.md +229 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/LICENSE.md +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/README.md +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support.rb +149 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/caller_filter.rb +83 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/comparable_version.rb +46 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/differ.rb +215 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/directory_maker.rb +63 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/encoded_string.rb +165 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/fuzzy_matcher.rb +48 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/hunk_generator.rb +47 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/matcher_definition.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/method_signature_verifier.rb +392 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/mutex.rb +73 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/object_formatter.rb +267 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/recursive_const_methods.rb +76 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/reentrant_mutex.rb +53 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/ruby_features.rb +162 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/source.rb +75 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/source/location.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/source/node.rb +107 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/source/token.rb +87 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/spec.rb +81 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/spec/deprecation_helpers.rb +64 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/spec/formatting_support.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/spec/in_sub_process.rb +69 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/spec/library_wide_checks.rb +150 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/spec/shell_out.rb +84 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/spec/stderr_splitter.rb +63 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/spec/string_matcher.rb +46 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/spec/with_isolated_directory.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/spec/with_isolated_stderr.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/version.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.7.0/lib/rspec/support/warnings.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/LICENSE.txt +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/README.md +128 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/assets/logo.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/assets/output.html.erb +261 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/bin/rubocop +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/config/default.yml +1338 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/config/disabled.yml +115 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/config/enabled.yml +1588 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop.rb +452 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/ast_node.rb +624 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/ast_node/builder.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/ast_node/sexp.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/ast_node/traversal.rb +171 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cached_data.rb +63 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cli.rb +185 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/comment_config.rb +157 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/config.rb +346 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/config_loader.rb +205 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/config_loader_resolver.rb +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/config_store.rb +48 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/autocorrect_logic.rb +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/bundler/duplicated_gem.rb +69 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/bundler/ordered_gems.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/commissioner.rb +103 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/cop.rb +304 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/corrector.rb +135 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/force.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/ignored_node.rb +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/ambiguous_operator.rb +50 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/assignment_in_condition.rb +66 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/block_alignment.rb +198 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/circular_argument_reference.rb +69 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/condition_position.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/debugger.rb +52 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/def_end_alignment.rb +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/deprecated_class_methods.rb +80 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/duplicate_case_condition.rb +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/duplicate_methods.rb +137 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/duplicated_key.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/each_with_object_argument.rb +28 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/else_layout.rb +68 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/empty_ensure.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/empty_expression.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/empty_interpolation.rb +28 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/empty_when.rb +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/end_alignment.rb +137 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/end_in_method.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/ensure_return.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/eval.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/float_out_of_range.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/format_parameter_mismatch.rb +155 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/handle_exceptions.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/implicit_string_concatenation.rb +90 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/ineffective_access_modifier.rb +134 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/inherit_exception.rb +83 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/invalid_character_literal.rb +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/literal_in_condition.rb +129 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/literal_in_interpolation.rb +68 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/loop.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/nested_method_definition.rb +60 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/next_without_accumulator.rb +45 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb +77 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb +53 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/percent_string_array.rb +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/percent_symbol_array.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/rand_one.rb +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/require_parentheses.rb +66 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/rescue_exception.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/shadowed_exception.rb +131 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/string_conversion_in_interpolation.rb +51 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/syntax.rb +55 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/unified_integer.rb +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/unneeded_disable.rb +207 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/unneeded_splat_expansion.rb +136 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/unreachable_code.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/unused_block_argument.rb +143 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/unused_method_argument.rb +51 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/useless_access_modifier.rb +202 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/useless_assignment.rb +113 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/useless_comparison.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/useless_else_without_rescue.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/useless_setter_call.rb +150 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/lint/void.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/metrics/abc_size.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/metrics/block_length.rb +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/metrics/block_nesting.rb +52 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/metrics/class_length.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/metrics/cyclomatic_complexity.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/metrics/line_length.rb +168 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/metrics/method_length.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/metrics/module_length.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/metrics/parameter_lists.rb +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/metrics/perceived_complexity.rb +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/access_modifier_node.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/annotation_comment.rb +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/array_hash_indentation.rb +82 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/array_syntax.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/autocorrect_alignment.rb +149 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/check_assignment.rb +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/classish_length.rb +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/code_length.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/configurable_enforced_style.rb +91 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/configurable_max.rb +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/configurable_naming.rb +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/configurable_numbering.rb +58 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/def_node.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/documentation_comment.rb +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/empty_lines_around_body.rb +161 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/end_keyword_alignment.rb +85 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/first_element_line_break.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/frozen_string_literal.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/hash_node.rb +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/if_node.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/integer_node.rb +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/match_range.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/method_complexity.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/method_preference.rb +28 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/min_body_length.rb +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/multiline_expression_indentation.rb +191 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb +152 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/negative_conditional.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/on_method_def.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/on_normal_if_unless.rb +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/parentheses.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/parser_diagnostic.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/percent_literal.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/preceding_following_alignment.rb +89 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/safe_assignment.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/safe_mode.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/space_after_punctuation.rb +55 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/space_before_punctuation.rb +48 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/space_inside.rb +76 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/statement_modifier.rb +73 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/string_help.rb +33 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/string_literals_help.rb +33 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/surrounding_space.rb +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/too_many_lines.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/trailing_comma.rb +162 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/mixin/unused_argument.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/offense.rb +188 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/performance/case_when_splat.rb +179 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/performance/casecmp.rb +107 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/performance/compare_with_block.rb +61 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/performance/count.rb +98 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/performance/detect.rb +106 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/performance/double_start_end_with.rb +68 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/performance/end_with.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/performance/fixed_size.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/performance/flat_map.rb +73 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/performance/hash_each_methods.rb +84 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/performance/lstrip_rstrip.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/performance/range_include.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/performance/redundant_block_call.rb +93 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/performance/redundant_match.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/performance/redundant_merge.rb +152 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/performance/redundant_sort_by.rb +45 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/performance/reverse_each.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/performance/sample.rb +140 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/performance/size.rb +76 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/performance/start_with.rb +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/performance/string_replacement.rb +175 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/performance/times_map.rb +61 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/rails/action_filter.rb +96 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/rails/date.rb +130 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/rails/delegate.rb +106 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/rails/delegate_allow_blank.rb +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/rails/dynamic_find_by.rb +77 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/rails/enum_uniqueness.rb +71 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/rails/exit.rb +61 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/rails/find_by.rb +53 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/rails/find_each.rb +59 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/rails/has_and_belongs_to_many.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/rails/http_positional_arguments.rb +92 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/rails/not_null_column.rb +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/rails/output.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/rails/output_safety.rb +58 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/rails/pluralization_grammar.rb +105 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/rails/read_write_attribute.rb +74 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/rails/request_referer.rb +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/rails/safe_navigation.rb +88 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/rails/save_bang.rb +155 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/rails/scope_args.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/rails/time_zone.rb +195 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/rails/uniq_before_pluck.rb +90 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/rails/validation.rb +67 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/security/json_load.rb +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/severity.rb +76 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/access_modifier_indentation.rb +80 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/accessor_method_name.rb +45 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/alias.rb +119 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/align_array.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/align_hash.rb +266 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/align_parameters.rb +69 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/and_or.rb +140 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/array_join.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/ascii_comments.rb +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/ascii_identifiers.rb +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/attr.rb +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/auto_resource_cleanup.rb +45 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/bare_percent_literals.rb +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/begin_block.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/block_comments.rb +46 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/block_delimiters.rb +230 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/block_end_newline.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/braces_around_hash_parameters.rb +113 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/case_equality.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/case_indentation.rb +89 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/character_literal.rb +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/class_and_module_camel_case.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/class_and_module_children.rb +69 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/class_check.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/class_methods.rb +67 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/class_vars.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/closing_parenthesis_indentation.rb +87 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/collection_methods.rb +51 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/colon_method_call.rb +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/command_literal.rb +119 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/comment_annotation.rb +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/comment_indentation.rb +71 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/conditional_assignment.rb +681 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/constant_name.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/copyright.rb +89 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/def_with_parentheses.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/documentation.rb +79 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/documentation_method.rb +79 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/dot_position.rb +88 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/double_negation.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/each_for_simple_loop.rb +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/each_with_object.rb +88 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/else_alignment.rb +111 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/empty_case_condition.rb +93 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/empty_else.rb +140 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/empty_line_between_defs.rb +73 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/empty_lines.rb +60 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/empty_lines_around_access_modifier.rb +95 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/empty_lines_around_block_body.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/empty_lines_around_class_body.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/empty_lines_around_method_body.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/empty_lines_around_module_body.rb +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/empty_literal.rb +100 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/empty_method.rb +96 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/encoding.rb +92 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/end_block.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/end_of_line.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/even_odd.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/extra_spacing.rb +237 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/file_name.rb +163 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/first_array_element_line_break.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/first_hash_element_line_break.rb +33 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/first_method_argument_line_break.rb +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/first_method_parameter_line_break.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/first_parameter_indentation.rb +111 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/flip_flop.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/for.rb +52 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/format_string.rb +76 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/frozen_string_literal_comment.rb +67 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/global_vars.rb +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/guard_clause.rb +96 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/hash_syntax.rb +232 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/identical_conditional_branches.rb +92 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/if_inside_else.rb +48 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/if_unless_modifier.rb +89 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/if_with_semicolon.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/implicit_runtime_error.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/indent_array.rb +114 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/indent_assignment.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/indent_hash.rb +133 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/indentation_consistency.rb +51 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/indentation_width.rb +302 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/infinite_loop.rb +92 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/initial_indentation.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/inline_comment.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/lambda.rb +209 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/lambda_call.rb +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/leading_comment_space.rb +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/line_end_concatenation.rb +115 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/method_call_parentheses.rb +78 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/method_called_on_do_end_block.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/method_def_parentheses.rb +83 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/method_missing.rb +81 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/method_name.rb +28 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/missing_else.rb +73 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/module_function.rb +64 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/multiline_array_brace_layout.rb +81 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/multiline_assignment_layout.rb +88 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/multiline_block_chain.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/multiline_block_layout.rb +134 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/multiline_hash_brace_layout.rb +81 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/multiline_if_modifier.rb +73 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/multiline_if_then.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/multiline_memoization.rb +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/multiline_method_call_brace_layout.rb +98 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/multiline_method_call_indentation.rb +196 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/multiline_method_definition_brace_layout.rb +82 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/multiline_operation_indentation.rb +88 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/multiline_ternary_operator.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/mutable_constant.rb +63 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/negated_if.rb +47 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/negated_while.rb +47 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/nested_modifier.rb +114 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/nested_parenthesized_calls.rb +59 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/nested_ternary_operator.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/next.rb +223 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/nil_comparison.rb +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/non_nil_check.rb +125 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/not.rb +72 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/numeric_literal_prefix.rb +97 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/numeric_literals.rb +79 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/numeric_predicate.rb +140 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/one_line_conditional.rb +85 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/op_method.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/option_hash.rb +69 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/optional_arguments.rb +62 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/parallel_assignment.rb +295 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/parentheses_around_condition.rb +60 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/percent_literal_delimiters.rb +85 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/percent_q_literals.rb +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/perl_backrefs.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/predicate_name.rb +67 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/preferred_hash_methods.rb +78 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/proc.rb +26 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/raise_args.rb +136 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/redundant_begin.rb +47 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/redundant_exception.rb +55 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/redundant_freeze.rb +46 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/redundant_parentheses.rb +177 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/redundant_return.rb +125 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/redundant_self.rb +163 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/regexp_literal.rb +114 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/rescue_ensure_alignment.rb +86 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/rescue_modifier.rb +49 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/safe_navigation.rb +138 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/self_assignment.rb +93 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/semicolon.rb +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/send.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/signal_exception.rb +109 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/single_line_block_params.rb +68 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/single_line_methods.rb +77 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/space_after_colon.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/space_after_comma.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/space_after_method_name.rb +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/space_after_not.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/space_after_semicolon.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/space_around_block_parameters.rb +109 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/space_around_equals_in_parameter_default.rb +68 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/space_around_keyword.rb +225 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/space_around_operators.rb +136 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/space_before_block_braces.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/space_before_comma.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/space_before_comment.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/space_before_first_arg.rb +59 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/space_before_semicolon.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/space_in_lambda_literal.rb +87 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/space_inside_array_percent_literal.rb +53 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/space_inside_block_braces.rb +158 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/space_inside_brackets.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/space_inside_hash_literal_braces.rb +150 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/space_inside_parens.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/space_inside_percent_literal_delimiters.rb +64 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/space_inside_range_literal.rb +63 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/space_inside_string_interpolation.rb +65 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/special_global_vars.rb +156 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/stabby_lambda_parentheses.rb +112 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/string_literals.rb +102 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/string_literals_in_interpolation.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/string_methods.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/struct_inheritance.rb +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/symbol_array.rb +106 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/symbol_literal.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/symbol_proc.rb +143 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/tab.rb +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/ternary_parentheses.rb +172 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/trailing_blank_lines.rb +78 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/trailing_comma_in_arguments.rb +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/trailing_comma_in_literal.rb +56 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/trailing_underscore_variable.rb +110 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/trailing_whitespace.rb +28 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/trivial_accessors.rb +176 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/unless_else.rb +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/unneeded_capital_w.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/unneeded_interpolation.rb +98 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/unneeded_percent_q.rb +96 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/variable_interpolation.rb +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/variable_name.rb +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/variable_number.rb +78 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/when_then.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/while_until_do.rb +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/while_until_modifier.rb +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/word_array.rb +160 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/style/zero_length_predicate.rb +83 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/team.rb +189 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/util.rb +276 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/variable_force.rb +458 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/variable_force/assignment.rb +97 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/variable_force/locatable.rb +200 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/variable_force/reference.rb +51 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/variable_force/scope.rb +91 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/variable_force/variable.rb +102 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/cop/variable_force/variable_table.rb +128 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/error.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/formatter/base_formatter.rb +123 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/formatter/clang_style_formatter.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/formatter/colorizable.rb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/formatter/disabled_config_formatter.rb +180 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/formatter/disabled_lines_formatter.rb +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/formatter/emacs_style_formatter.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/formatter/file_list_formatter.rb +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/formatter/formatter_set.rb +102 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/formatter/fuubar_style_formatter.rb +80 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/formatter/html_formatter.rb +133 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/formatter/json_formatter.rb +74 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/formatter/offense_count_formatter.rb +55 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/formatter/progress_formatter.rb +63 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/formatter/simple_text_formatter.rb +134 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/formatter/text_util.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/formatter/worst_offenders_formatter.rb +60 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/name_similarity.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/node_pattern.rb +542 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/options.rb +320 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/path_util.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/processed_source.rb +151 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/rake_task.rb +86 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/remote_config.rb +66 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/result_cache.rb +176 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/rspec/cop_helper.rb +87 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/rspec/host_environment_simulation_helper.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/rspec/shared_contexts.rb +78 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/rspec/shared_examples.rb +100 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/rspec/support.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/runner.rb +323 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/string_interpreter.rb +57 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/string_util.rb +156 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/target_finder.rb +139 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/token.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/version.rb +21 -0
- data/vendor/bundle/ruby/2.5.0/gems/rubocop-0.46.0/lib/rubocop/warning.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/LICENSE.txt +19 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/README.md +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/Rakefile +2 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/base.rb +183 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/calculators/length.rb +99 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/calculators/running_average.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/components.rb +5 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/components/bar.rb +96 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/components/percentage.rb +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/components/rate.rb +43 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/components/time.rb +107 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/components/title.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/errors/invalid_progress_error.rb +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/format.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/format/formatter.rb +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/format/molecule.rb +59 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/format/string.rb +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/output.rb +68 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/outputs/non_tty.rb +47 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/outputs/null.rb +33 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/outputs/tty.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/progress.rb +118 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/refinements.rb +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/refinements/enumerator.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/throttle.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/time.rb +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/timer.rb +72 -0
- data/vendor/bundle/ruby/2.5.0/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/version.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/CHANGELOG.md +411 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/CONTRIBUTING.md +48 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/Gemfile +38 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/MIT-LICENSE +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/README.md +633 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/Rakefile +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/cucumber.yml +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/doc/alternate-formatters.md +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/doc/commercial-services.md +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/doc/editor-integration.md +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/config_autoload.feature +46 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/config_command_name.feature +45 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/config_coverage_dir.feature +33 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/config_deactivate_merging.feature +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/config_formatters.feature +77 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/config_merge_timeout.feature +39 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/config_nocov_token.feature +79 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/config_profiles.feature +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/config_project_name.feature +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/config_styles.feature +121 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/config_tracked_files.feature +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/cucumber_basic.feature +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/maximum_coverage_drop.feature +36 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/merging_test_unit_and_rspec.feature +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/minimum_coverage.feature +59 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/refuse_coverage_drop.feature +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/rspec_basic.feature +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/rspec_fails_on_initialization.feature +14 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/rspec_groups_and_filters_basic.feature +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/rspec_groups_and_filters_complex.feature +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/rspec_groups_using_filter_class.feature +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/rspec_without_simplecov.feature +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/skipping_code_blocks_manually.feature +70 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/step_definitions/html_steps.rb +44 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/step_definitions/simplecov_steps.rb +68 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/step_definitions/transformers.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/step_definitions/web_steps.rb +64 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/support/env.rb +50 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/test_unit_basic.feature +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/test_unit_groups_and_filters_basic.feature +29 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/test_unit_groups_and_filters_complex.feature +35 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/test_unit_groups_using_filter_class.feature +40 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/test_unit_without_simplecov.feature +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/features/unicode_compatiblity.feature +67 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/lib/simplecov.rb +184 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/lib/simplecov/command_guesser.rb +59 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/lib/simplecov/configuration.rb +296 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/lib/simplecov/defaults.rb +122 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/lib/simplecov/exit_codes.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/lib/simplecov/file_list.rb +59 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/lib/simplecov/filter.rb +54 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/lib/simplecov/formatter.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/lib/simplecov/formatter/multi_formatter.rb +32 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/lib/simplecov/formatter/simple_formatter.rb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/lib/simplecov/jruby_fix.rb +42 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/lib/simplecov/last_run.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/lib/simplecov/merge_helpers.rb +37 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/lib/simplecov/no_defaults.rb +2 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/lib/simplecov/profiles.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/lib/simplecov/railtie.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/lib/simplecov/railties/tasks.rake +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/lib/simplecov/result.rb +87 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/lib/simplecov/result_merger.rb +88 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/lib/simplecov/source_file.rb +194 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/lib/simplecov/version.rb +25 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/simplecov.gemspec +27 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/1_8_fallbacks_spec.rb +31 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/command_guesser_spec.rb +48 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/deleted_source_spec.rb +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/faked_project/Gemfile +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/faked_project/Rakefile +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/faked_project/cucumber.yml +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/faked_project/features/step_definitions/my_steps.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/faked_project/features/support/env.rb +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/faked_project/features/test_stuff.feature +6 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/faked_project/lib/faked_project.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/faked_project/lib/faked_project/framework_specific.rb +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/faked_project/lib/faked_project/meta_magic.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/faked_project/lib/faked_project/some_class.rb +28 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/faked_project/lib/faked_project/untested_class.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/faked_project/spec/faked_spec.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/faked_project/spec/forking_spec.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/faked_project/spec/meta_magic_spec.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/faked_project/spec/some_class_spec.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/faked_project/spec/spec_helper.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/faked_project/test/faked_test.rb +11 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/faked_project/test/meta_magic_test.rb +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/faked_project/test/some_class_test.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/faked_project/test/test_helper.rb +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/file_list_spec.rb +50 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/filters_spec.rb +98 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/fixtures/app/controllers/sample_controller.rb +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/fixtures/app/models/user.rb +10 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/fixtures/deleted_source_sample.rb +15 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/fixtures/frameworks/rspec_bad.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/fixtures/frameworks/rspec_good.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/fixtures/frameworks/testunit_bad.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/fixtures/frameworks/testunit_good.rb +9 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/fixtures/iso-8859.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/fixtures/resultset1.rb +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/fixtures/resultset2.rb +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/fixtures/sample.rb +16 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/fixtures/utf-8.rb +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/helper.rb +24 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/merge_helpers_spec.rb +126 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/multi_formatter_spec.rb +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/result_spec.rb +209 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/return_codes_spec.rb +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/source_file_line_spec.rb +155 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/source_file_spec.rb +77 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/CHANGELOG.md +13 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/Gemfile +34 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/Guardfile +12 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/LICENSE +20 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/README.md +30 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/Rakefile +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/assets/javascripts/application.js +127 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/assets/javascripts/libraries/jquery-1.6.2.min.js +18 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/assets/javascripts/plugins/highlight.pack.js +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/assets/javascripts/plugins/jquery.colorbox.js +1090 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/assets/javascripts/plugins/jquery.dataTables.min.js +152 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/assets/javascripts/plugins/jquery.timeago.js +141 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/assets/javascripts/plugins/jquery.url.js +174 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/assets/stylesheets/application.css +3 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/assets/stylesheets/plugins/highlight.css +129 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/assets/stylesheets/plugins/jquery-ui-1.8.4.custom.css +295 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/assets/stylesheets/plugins/jquery.colorbox.css +52 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/assets/stylesheets/reset.css +103 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/assets/stylesheets/screen.css.sass +220 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/lib/simplecov-html.rb +110 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/lib/simplecov-html/version.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/application.css +799 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/application.js +1707 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/colorbox/border.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/colorbox/controls.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/colorbox/loading.gif +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/colorbox/loading_background.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/favicon_green.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/favicon_red.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/favicon_yellow.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/loading.gif +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/magnify.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/public/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/simplecov-html.gemspec +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/test/helper.rb +4 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/test/test_simple_cov-html.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/views/file_list.erb +45 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/views/layout.erb +41 -0
- data/vendor/bundle/ruby/2.5.0/gems/simplecov-html-0.10.2/views/source_file.erb +23 -0
- data/vendor/bundle/ruby/2.5.0/gems/unicode-display_width-1.3.0/CHANGELOG.md +96 -0
- data/vendor/bundle/ruby/2.5.0/gems/unicode-display_width-1.3.0/MIT-LICENSE.txt +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/unicode-display_width-1.3.0/README.md +120 -0
- data/vendor/bundle/ruby/2.5.0/gems/unicode-display_width-1.3.0/Rakefile +64 -0
- data/vendor/bundle/ruby/2.5.0/gems/unicode-display_width-1.3.0/data/display_width.marshal.gz +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/unicode-display_width-1.3.0/lib/unicode/display_width.rb +51 -0
- data/vendor/bundle/ruby/2.5.0/gems/unicode-display_width-1.3.0/lib/unicode/display_width/constants.rb +8 -0
- data/vendor/bundle/ruby/2.5.0/gems/unicode-display_width-1.3.0/lib/unicode/display_width/index.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/unicode-display_width-1.3.0/lib/unicode/display_width/no_string_ext.rb +7 -0
- data/vendor/bundle/ruby/2.5.0/gems/unicode-display_width-1.3.0/lib/unicode/display_width/string_ext.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/unicode-display_width-1.3.0/spec/display_width_spec.rb +156 -0
- data/vendor/bundle/ruby/2.5.0/gems/unicode-display_width-1.3.0/unicode-display_width.gemspec +18 -0
- data/vendor/bundle/ruby/2.5.0/specifications/ast-2.3.0.gemspec +59 -0
- data/vendor/bundle/ruby/2.5.0/specifications/codeclimate-test-reporter-1.0.8.gemspec +50 -0
- data/vendor/bundle/ruby/2.5.0/specifications/diff-lcs-1.3.gemspec +61 -0
- data/vendor/bundle/ruby/2.5.0/specifications/docile-1.1.5.gemspec +48 -0
- data/vendor/bundle/ruby/2.5.0/specifications/parser-2.4.0.2.gemspec +61 -0
- data/vendor/bundle/ruby/2.5.0/specifications/powerpack-0.1.1.gemspec +41 -0
- data/vendor/bundle/ruby/2.5.0/specifications/rainbow-2.2.2.gemspec +39 -0
- data/vendor/bundle/ruby/2.5.0/specifications/rake-12.3.0.gemspec +49 -0
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-3.7.0.gemspec +42 -0
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-core-3.7.0.gemspec +62 -0
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-expectations-3.7.0.gemspec +50 -0
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-mocks-3.7.0.gemspec +50 -0
- data/vendor/bundle/ruby/2.5.0/specifications/rspec-support-3.7.0.gemspec +41 -0
- data/vendor/bundle/ruby/2.5.0/specifications/rubocop-0.46.0.gemspec +51 -0
- data/vendor/bundle/ruby/2.5.0/specifications/ruby-progressbar-1.9.0.gemspec +46 -0
- data/vendor/bundle/ruby/2.5.0/specifications/simplecov-0.13.0.gemspec +42 -0
- data/vendor/bundle/ruby/2.5.0/specifications/simplecov-html-0.10.2.gemspec +33 -0
- data/vendor/bundle/ruby/2.5.0/specifications/unicode-display_width-1.3.0.gemspec +38 -0
- metadata +1244 -3
@@ -0,0 +1,268 @@
|
|
1
|
+
module Parser
|
2
|
+
|
3
|
+
##
|
4
|
+
# Base class for version-specific parsers.
|
5
|
+
#
|
6
|
+
# @api public
|
7
|
+
#
|
8
|
+
# @!attribute [r] diagnostics
|
9
|
+
# @return [Parser::Diagnostic::Engine]
|
10
|
+
#
|
11
|
+
# @!attribute [r] static_env
|
12
|
+
# @return [Parser::StaticEnvironment]
|
13
|
+
#
|
14
|
+
class Base < Racc::Parser
|
15
|
+
##
|
16
|
+
# Parses a string of Ruby code and returns the AST. If the source
|
17
|
+
# cannot be parsed, {SyntaxError} is raised and a diagnostic is
|
18
|
+
# printed to `stderr`.
|
19
|
+
#
|
20
|
+
# @example
|
21
|
+
# Parser::Base.parse('puts "hello"')
|
22
|
+
#
|
23
|
+
# @param [String] string The block of code to parse.
|
24
|
+
# @param [String] file The name of the file the code originated from.
|
25
|
+
# @param [Numeric] line The initial line number.
|
26
|
+
# @return [Parser::AST::Node]
|
27
|
+
#
|
28
|
+
def self.parse(string, file='(string)', line=1)
|
29
|
+
parser = default_parser
|
30
|
+
source_buffer = setup_source_buffer(file, line, string, parser.default_encoding)
|
31
|
+
parser.parse(source_buffer)
|
32
|
+
end
|
33
|
+
|
34
|
+
##
|
35
|
+
# Parses a string of Ruby code and returns the AST and comments. If the
|
36
|
+
# source cannot be parsed, {SyntaxError} is raised and a diagnostic is
|
37
|
+
# printed to `stderr`.
|
38
|
+
#
|
39
|
+
# @example
|
40
|
+
# Parser::Base.parse_with_comments('puts "hello"')
|
41
|
+
#
|
42
|
+
# @param [String] string The block of code to parse.
|
43
|
+
# @param [String] file The name of the file the code originated from.
|
44
|
+
# @param [Numeric] line The initial line number.
|
45
|
+
# @return [Array]
|
46
|
+
#
|
47
|
+
def self.parse_with_comments(string, file='(string)', line=1)
|
48
|
+
parser = default_parser
|
49
|
+
source_buffer = setup_source_buffer(file, line, string, parser.default_encoding)
|
50
|
+
parser.parse_with_comments(source_buffer)
|
51
|
+
end
|
52
|
+
|
53
|
+
##
|
54
|
+
# Parses Ruby source code by reading it from a file. If the source
|
55
|
+
# cannot be parsed, {SyntaxError} is raised and a diagnostic is
|
56
|
+
# printed to `stderr`.
|
57
|
+
#
|
58
|
+
# @param [String] filename Path to the file to parse.
|
59
|
+
# @return [Parser::AST::Node]
|
60
|
+
# @see #parse
|
61
|
+
#
|
62
|
+
def self.parse_file(filename)
|
63
|
+
parse(File.read(filename), filename)
|
64
|
+
end
|
65
|
+
|
66
|
+
##
|
67
|
+
# Parses Ruby source code by reading it from a file and returns the AST and
|
68
|
+
# comments. If the source cannot be parsed, {SyntaxError} is raised and a
|
69
|
+
# diagnostic is printed to `stderr`.
|
70
|
+
#
|
71
|
+
# @param [String] filename Path to the file to parse.
|
72
|
+
# @return [Array]
|
73
|
+
# @see #parse
|
74
|
+
#
|
75
|
+
def self.parse_file_with_comments(filename)
|
76
|
+
parse_with_comments(File.read(filename), filename)
|
77
|
+
end
|
78
|
+
|
79
|
+
##
|
80
|
+
# @return [Parser::Base] parser with the default options set.
|
81
|
+
#
|
82
|
+
def self.default_parser
|
83
|
+
parser = new
|
84
|
+
|
85
|
+
parser.diagnostics.all_errors_are_fatal = true
|
86
|
+
parser.diagnostics.ignore_warnings = true
|
87
|
+
|
88
|
+
parser.diagnostics.consumer = lambda do |diagnostic|
|
89
|
+
$stderr.puts(diagnostic.render)
|
90
|
+
end
|
91
|
+
|
92
|
+
parser
|
93
|
+
end
|
94
|
+
|
95
|
+
def self.setup_source_buffer(file, line, string, encoding)
|
96
|
+
if string.respond_to? :force_encoding
|
97
|
+
string = string.dup.force_encoding(encoding)
|
98
|
+
end
|
99
|
+
|
100
|
+
source_buffer = Source::Buffer.new(file, line)
|
101
|
+
|
102
|
+
if name == 'Parser::Ruby18'
|
103
|
+
source_buffer.raw_source = string
|
104
|
+
else
|
105
|
+
source_buffer.source = string
|
106
|
+
end
|
107
|
+
|
108
|
+
source_buffer
|
109
|
+
end
|
110
|
+
private_class_method :setup_source_buffer
|
111
|
+
|
112
|
+
attr_reader :diagnostics
|
113
|
+
attr_reader :builder
|
114
|
+
attr_reader :static_env
|
115
|
+
attr_reader :source_buffer
|
116
|
+
|
117
|
+
##
|
118
|
+
# @param [Parser::Builders::Default] builder The AST builder to use.
|
119
|
+
#
|
120
|
+
def initialize(builder=Parser::Builders::Default.new)
|
121
|
+
@diagnostics = Diagnostic::Engine.new
|
122
|
+
|
123
|
+
@static_env = StaticEnvironment.new
|
124
|
+
|
125
|
+
@lexer = Lexer.new(version)
|
126
|
+
@lexer.diagnostics = @diagnostics
|
127
|
+
@lexer.static_env = @static_env
|
128
|
+
|
129
|
+
@builder = builder
|
130
|
+
@builder.parser = self
|
131
|
+
|
132
|
+
if self.class::Racc_debug_parser && ENV['RACC_DEBUG']
|
133
|
+
@yydebug = true
|
134
|
+
end
|
135
|
+
|
136
|
+
reset
|
137
|
+
end
|
138
|
+
|
139
|
+
##
|
140
|
+
# Resets the state of the parser.
|
141
|
+
#
|
142
|
+
def reset
|
143
|
+
@source_buffer = nil
|
144
|
+
@def_level = 0 # count of nested def's.
|
145
|
+
|
146
|
+
@lexer.reset
|
147
|
+
@static_env.reset
|
148
|
+
|
149
|
+
self
|
150
|
+
end
|
151
|
+
|
152
|
+
##
|
153
|
+
# Parses a source buffer and returns the AST.
|
154
|
+
#
|
155
|
+
# @param [Parser::Source::Buffer] source_buffer The source buffer to parse.
|
156
|
+
# @return [Parser::AST::Node]
|
157
|
+
#
|
158
|
+
def parse(source_buffer)
|
159
|
+
@lexer.source_buffer = source_buffer
|
160
|
+
@source_buffer = source_buffer
|
161
|
+
|
162
|
+
do_parse
|
163
|
+
ensure
|
164
|
+
# Don't keep references to the source file.
|
165
|
+
@source_buffer = nil
|
166
|
+
@lexer.source_buffer = nil
|
167
|
+
end
|
168
|
+
|
169
|
+
##
|
170
|
+
# Parses a source buffer and returns the AST and the source code comments.
|
171
|
+
#
|
172
|
+
# @see #parse
|
173
|
+
# @see Parser::Source::Comment#associate
|
174
|
+
# @return [Array]
|
175
|
+
#
|
176
|
+
def parse_with_comments(source_buffer)
|
177
|
+
@lexer.comments = []
|
178
|
+
|
179
|
+
[ parse(source_buffer), @lexer.comments ]
|
180
|
+
ensure
|
181
|
+
@lexer.comments = nil
|
182
|
+
end
|
183
|
+
|
184
|
+
##
|
185
|
+
# Parses a source buffer and returns the AST, the source code comments,
|
186
|
+
# and the tokens emitted by the lexer. If `recover` is true and a fatal
|
187
|
+
# {SyntaxError} is encountered, `nil` is returned instead of the AST, and
|
188
|
+
# comments as well as tokens are only returned up to the location of
|
189
|
+
# the error.
|
190
|
+
#
|
191
|
+
# Currently, token stream format returned by #tokenize is not documented,
|
192
|
+
# but is considered part of a public API and only changed according
|
193
|
+
# to Semantic Versioning.
|
194
|
+
#
|
195
|
+
# However, note that the exact token composition of various constructs
|
196
|
+
# might vary. For example, a string `"foo"` is represented equally well
|
197
|
+
# by `:tSTRING_BEG " :tSTRING_CONTENT foo :tSTRING_END "` and
|
198
|
+
# `:tSTRING "foo"`; such details must not be relied upon.
|
199
|
+
#
|
200
|
+
# @param [Parser::Source::Buffer] source_buffer
|
201
|
+
# @param [Boolean] recover If true, recover from syntax errors. False by default.
|
202
|
+
# @return [Array]
|
203
|
+
#
|
204
|
+
def tokenize(source_buffer, recover=false)
|
205
|
+
@lexer.tokens = []
|
206
|
+
@lexer.comments = []
|
207
|
+
|
208
|
+
begin
|
209
|
+
ast = parse(source_buffer)
|
210
|
+
rescue Parser::SyntaxError
|
211
|
+
raise if !recover
|
212
|
+
end
|
213
|
+
|
214
|
+
[ ast, @lexer.comments, @lexer.tokens ]
|
215
|
+
ensure
|
216
|
+
@lexer.tokens = nil
|
217
|
+
@lexer.comments = nil
|
218
|
+
end
|
219
|
+
|
220
|
+
##
|
221
|
+
# @api private
|
222
|
+
# @return [Boolean]
|
223
|
+
#
|
224
|
+
def in_def?
|
225
|
+
@def_level > 0
|
226
|
+
end
|
227
|
+
|
228
|
+
private
|
229
|
+
|
230
|
+
def next_token
|
231
|
+
@lexer.advance
|
232
|
+
end
|
233
|
+
|
234
|
+
def check_kwarg_name(name_t)
|
235
|
+
case name_t[0]
|
236
|
+
when /^[a-z_]/
|
237
|
+
# OK
|
238
|
+
when /^[A-Z]/
|
239
|
+
diagnostic :error, :argument_const, nil, name_t
|
240
|
+
end
|
241
|
+
end
|
242
|
+
|
243
|
+
def diagnostic(level, reason, arguments, location_t, highlights_ts=[])
|
244
|
+
_, location = location_t
|
245
|
+
|
246
|
+
highlights = highlights_ts.map do |token|
|
247
|
+
_, range = token
|
248
|
+
range
|
249
|
+
end
|
250
|
+
|
251
|
+
@diagnostics.process(
|
252
|
+
Diagnostic.new(level, reason, arguments, location, highlights))
|
253
|
+
|
254
|
+
if level == :error
|
255
|
+
yyerror
|
256
|
+
end
|
257
|
+
end
|
258
|
+
|
259
|
+
def on_error(error_token_id, error_value, value_stack)
|
260
|
+
token_name = token_to_str(error_token_id)
|
261
|
+
_, location = error_value
|
262
|
+
|
263
|
+
@diagnostics.process(Diagnostic.new(
|
264
|
+
:error, :unexpected_token, { :token => token_name }, location))
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
268
|
+
end
|
@@ -0,0 +1,1621 @@
|
|
1
|
+
module Parser
|
2
|
+
|
3
|
+
##
|
4
|
+
# Default AST builder. Uses {AST::Node}s.
|
5
|
+
#
|
6
|
+
class Builders::Default
|
7
|
+
class << self
|
8
|
+
##
|
9
|
+
# AST compatibility attribute; since `-> {}` is not semantically
|
10
|
+
# equivalent to `lambda {}`, all new code should set this attribute
|
11
|
+
# to true.
|
12
|
+
#
|
13
|
+
# If set to false (the default), `-> {}` is emitted as
|
14
|
+
# `s(:block, s(:send, nil, :lambda), s(:args), nil)`.
|
15
|
+
#
|
16
|
+
# If set to true, `-> {}` is emitted as
|
17
|
+
# `s(:block, s(:lambda), s(:args), nil)`.
|
18
|
+
#
|
19
|
+
# @return [Boolean]
|
20
|
+
attr_accessor :emit_lambda
|
21
|
+
end
|
22
|
+
|
23
|
+
@emit_lambda = false
|
24
|
+
|
25
|
+
class << self
|
26
|
+
##
|
27
|
+
# AST compatibility attribute; block arguments of `m { |a| }` are
|
28
|
+
# not semantically equivalent to block arguments of `m { |a,| }` or `m { |a, b| }`,
|
29
|
+
# all new code should set this attribute to true.
|
30
|
+
#
|
31
|
+
# If set to false (the default), arguments of `m { |a| }` are emitted as
|
32
|
+
# `s(:args, s(:arg, :a))`
|
33
|
+
#
|
34
|
+
# If set to true, arguments of `m { |a| }` are emitted as
|
35
|
+
# `s(:args, s(:procarg0, :a))
|
36
|
+
#
|
37
|
+
# @return [Boolean]
|
38
|
+
attr_accessor :emit_procarg0
|
39
|
+
end
|
40
|
+
|
41
|
+
@emit_procarg0 = false
|
42
|
+
|
43
|
+
class << self
|
44
|
+
##
|
45
|
+
# @api private
|
46
|
+
def modernize
|
47
|
+
@emit_lambda = true
|
48
|
+
@emit_procarg0 = true
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
##
|
53
|
+
# @api private
|
54
|
+
attr_accessor :parser
|
55
|
+
|
56
|
+
##
|
57
|
+
# If set to true, `__FILE__` and `__LINE__` are transformed to
|
58
|
+
# literal nodes. For example, `s(:str, "lib/foo.rb")` and `s(:int, 10)`.
|
59
|
+
#
|
60
|
+
# If set to false, `__FILE__` and `__LINE__` are emitted as-is,
|
61
|
+
# i.e. as `s(:__FILE__)` and `s(:__LINE__)` nodes.
|
62
|
+
#
|
63
|
+
# Source maps are identical in both cases.
|
64
|
+
#
|
65
|
+
# @return [Boolean]
|
66
|
+
attr_accessor :emit_file_line_as_literals
|
67
|
+
|
68
|
+
##
|
69
|
+
# Initializes attributes:
|
70
|
+
#
|
71
|
+
# * `emit_file_line_as_literals`: `true`
|
72
|
+
def initialize
|
73
|
+
@emit_file_line_as_literals = true
|
74
|
+
end
|
75
|
+
|
76
|
+
# @!parse private
|
77
|
+
|
78
|
+
#
|
79
|
+
# Literals
|
80
|
+
#
|
81
|
+
|
82
|
+
# Singletons
|
83
|
+
|
84
|
+
def nil(nil_t)
|
85
|
+
n0(:nil,
|
86
|
+
token_map(nil_t))
|
87
|
+
end
|
88
|
+
|
89
|
+
def true(true_t)
|
90
|
+
n0(:true,
|
91
|
+
token_map(true_t))
|
92
|
+
end
|
93
|
+
|
94
|
+
def false(false_t)
|
95
|
+
n0(:false,
|
96
|
+
token_map(false_t))
|
97
|
+
end
|
98
|
+
|
99
|
+
# Numerics
|
100
|
+
|
101
|
+
def integer(integer_t)
|
102
|
+
numeric(:int, integer_t)
|
103
|
+
end
|
104
|
+
|
105
|
+
def float(float_t)
|
106
|
+
numeric(:float, float_t)
|
107
|
+
end
|
108
|
+
|
109
|
+
def rational(rational_t)
|
110
|
+
numeric(:rational, rational_t)
|
111
|
+
end
|
112
|
+
|
113
|
+
def complex(complex_t)
|
114
|
+
numeric(:complex, complex_t)
|
115
|
+
end
|
116
|
+
|
117
|
+
def numeric(kind, token)
|
118
|
+
n(kind, [ value(token) ],
|
119
|
+
Source::Map::Operator.new(nil, loc(token)))
|
120
|
+
end
|
121
|
+
private :numeric
|
122
|
+
|
123
|
+
def unary_num(unary_t, numeric)
|
124
|
+
value, = *numeric
|
125
|
+
operator_loc = loc(unary_t)
|
126
|
+
|
127
|
+
case value(unary_t)
|
128
|
+
when '+'
|
129
|
+
value = +value
|
130
|
+
when '-'
|
131
|
+
value = -value
|
132
|
+
end
|
133
|
+
|
134
|
+
numeric.updated(nil, [ value ],
|
135
|
+
:location =>
|
136
|
+
Source::Map::Operator.new(
|
137
|
+
operator_loc,
|
138
|
+
operator_loc.join(numeric.loc.expression)))
|
139
|
+
end
|
140
|
+
|
141
|
+
def __LINE__(__LINE__t)
|
142
|
+
n0(:__LINE__,
|
143
|
+
token_map(__LINE__t))
|
144
|
+
end
|
145
|
+
|
146
|
+
# Strings
|
147
|
+
|
148
|
+
def string(string_t)
|
149
|
+
n(:str, [ string_value(string_t) ],
|
150
|
+
delimited_string_map(string_t))
|
151
|
+
end
|
152
|
+
|
153
|
+
def string_internal(string_t)
|
154
|
+
n(:str, [ string_value(string_t) ],
|
155
|
+
unquoted_map(string_t))
|
156
|
+
end
|
157
|
+
|
158
|
+
def string_compose(begin_t, parts, end_t)
|
159
|
+
if collapse_string_parts?(parts)
|
160
|
+
if begin_t.nil? && end_t.nil?
|
161
|
+
parts.first
|
162
|
+
else
|
163
|
+
n(:str, parts.first.children,
|
164
|
+
string_map(begin_t, parts, end_t))
|
165
|
+
end
|
166
|
+
else
|
167
|
+
n(:dstr, [ *parts ],
|
168
|
+
string_map(begin_t, parts, end_t))
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
def character(char_t)
|
173
|
+
n(:str, [ string_value(char_t) ],
|
174
|
+
prefix_string_map(char_t))
|
175
|
+
end
|
176
|
+
|
177
|
+
def __FILE__(__FILE__t)
|
178
|
+
n0(:__FILE__,
|
179
|
+
token_map(__FILE__t))
|
180
|
+
end
|
181
|
+
|
182
|
+
# Symbols
|
183
|
+
|
184
|
+
def symbol(symbol_t)
|
185
|
+
n(:sym, [ string_value(symbol_t).to_sym ],
|
186
|
+
prefix_string_map(symbol_t))
|
187
|
+
end
|
188
|
+
|
189
|
+
def symbol_internal(symbol_t)
|
190
|
+
n(:sym, [ string_value(symbol_t).to_sym ],
|
191
|
+
unquoted_map(symbol_t))
|
192
|
+
end
|
193
|
+
|
194
|
+
def symbol_compose(begin_t, parts, end_t)
|
195
|
+
if collapse_string_parts?(parts)
|
196
|
+
str = parts.first
|
197
|
+
|
198
|
+
n(:sym, [ str.children.first.to_sym ],
|
199
|
+
collection_map(begin_t, str.loc.expression, end_t))
|
200
|
+
elsif @parser.version == 18 && parts.empty?
|
201
|
+
diagnostic :error, :empty_symbol, nil, loc(begin_t).join(loc(end_t))
|
202
|
+
else
|
203
|
+
n(:dsym, [ *parts ],
|
204
|
+
collection_map(begin_t, parts, end_t))
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
# Executable strings
|
209
|
+
|
210
|
+
def xstring_compose(begin_t, parts, end_t)
|
211
|
+
n(:xstr, [ *parts ],
|
212
|
+
string_map(begin_t, parts, end_t))
|
213
|
+
end
|
214
|
+
|
215
|
+
# Indented (interpolated, noninterpolated, executable) strings
|
216
|
+
|
217
|
+
def dedent_string(node, dedent_level)
|
218
|
+
if !dedent_level.nil?
|
219
|
+
dedenter = Lexer::Dedenter.new(dedent_level)
|
220
|
+
|
221
|
+
if node.type == :str
|
222
|
+
str = node.children.first
|
223
|
+
dedenter.dedent(str)
|
224
|
+
elsif node.type == :dstr || node.type == :xstr
|
225
|
+
node.children.each do |str_node|
|
226
|
+
if str_node.type == :str
|
227
|
+
str = str_node.children.first
|
228
|
+
dedenter.dedent(str)
|
229
|
+
else
|
230
|
+
dedenter.interrupt
|
231
|
+
end
|
232
|
+
end
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
node
|
237
|
+
end
|
238
|
+
|
239
|
+
# Regular expressions
|
240
|
+
|
241
|
+
def regexp_options(regopt_t)
|
242
|
+
options = value(regopt_t).
|
243
|
+
each_char.sort.uniq.
|
244
|
+
map(&:to_sym)
|
245
|
+
|
246
|
+
n(:regopt, options,
|
247
|
+
token_map(regopt_t))
|
248
|
+
end
|
249
|
+
|
250
|
+
def regexp_compose(begin_t, parts, end_t, options)
|
251
|
+
begin
|
252
|
+
static_regexp(parts, options)
|
253
|
+
rescue RegexpError => e
|
254
|
+
diagnostic :error, :invalid_regexp, { :message => e.message },
|
255
|
+
loc(begin_t).join(loc(end_t))
|
256
|
+
end
|
257
|
+
|
258
|
+
n(:regexp, (parts << options),
|
259
|
+
regexp_map(begin_t, end_t, options))
|
260
|
+
end
|
261
|
+
|
262
|
+
# Arrays
|
263
|
+
|
264
|
+
def array(begin_t, elements, end_t)
|
265
|
+
n(:array, elements,
|
266
|
+
collection_map(begin_t, elements, end_t))
|
267
|
+
end
|
268
|
+
|
269
|
+
def splat(star_t, arg=nil)
|
270
|
+
if arg.nil?
|
271
|
+
n0(:splat,
|
272
|
+
unary_op_map(star_t))
|
273
|
+
else
|
274
|
+
n(:splat, [ arg ],
|
275
|
+
unary_op_map(star_t, arg))
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
279
|
+
def word(parts)
|
280
|
+
if collapse_string_parts?(parts)
|
281
|
+
parts.first
|
282
|
+
else
|
283
|
+
n(:dstr, [ *parts ],
|
284
|
+
collection_map(nil, parts, nil))
|
285
|
+
end
|
286
|
+
end
|
287
|
+
|
288
|
+
def words_compose(begin_t, parts, end_t)
|
289
|
+
n(:array, [ *parts ],
|
290
|
+
collection_map(begin_t, parts, end_t))
|
291
|
+
end
|
292
|
+
|
293
|
+
def symbols_compose(begin_t, parts, end_t)
|
294
|
+
parts = parts.map do |part|
|
295
|
+
case part.type
|
296
|
+
when :str
|
297
|
+
value, = *part
|
298
|
+
part.updated(:sym, [ value.to_sym ])
|
299
|
+
when :dstr
|
300
|
+
part.updated(:dsym)
|
301
|
+
else
|
302
|
+
part
|
303
|
+
end
|
304
|
+
end
|
305
|
+
|
306
|
+
n(:array, [ *parts ],
|
307
|
+
collection_map(begin_t, parts, end_t))
|
308
|
+
end
|
309
|
+
|
310
|
+
# Hashes
|
311
|
+
|
312
|
+
def pair(key, assoc_t, value)
|
313
|
+
n(:pair, [ key, value ],
|
314
|
+
binary_op_map(key, assoc_t, value))
|
315
|
+
end
|
316
|
+
|
317
|
+
def pair_list_18(list)
|
318
|
+
if list.size % 2 != 0
|
319
|
+
diagnostic :error, :odd_hash, nil, list.last.loc.expression
|
320
|
+
else
|
321
|
+
list.
|
322
|
+
each_slice(2).map do |key, value|
|
323
|
+
n(:pair, [ key, value ],
|
324
|
+
binary_op_map(key, nil, value))
|
325
|
+
end
|
326
|
+
end
|
327
|
+
end
|
328
|
+
|
329
|
+
def pair_keyword(key_t, value)
|
330
|
+
key_map, pair_map = pair_keyword_map(key_t, value)
|
331
|
+
|
332
|
+
key = n(:sym, [ value(key_t).to_sym ], key_map)
|
333
|
+
|
334
|
+
n(:pair, [ key, value ], pair_map)
|
335
|
+
end
|
336
|
+
|
337
|
+
def pair_quoted(begin_t, parts, end_t, value)
|
338
|
+
end_t, pair_map = pair_quoted_map(begin_t, end_t, value)
|
339
|
+
|
340
|
+
key = symbol_compose(begin_t, parts, end_t)
|
341
|
+
|
342
|
+
n(:pair, [ key, value ], pair_map)
|
343
|
+
end
|
344
|
+
|
345
|
+
def kwsplat(dstar_t, arg)
|
346
|
+
n(:kwsplat, [ arg ],
|
347
|
+
unary_op_map(dstar_t, arg))
|
348
|
+
end
|
349
|
+
|
350
|
+
def associate(begin_t, pairs, end_t)
|
351
|
+
n(:hash, [ *pairs ],
|
352
|
+
collection_map(begin_t, pairs, end_t))
|
353
|
+
end
|
354
|
+
|
355
|
+
# Ranges
|
356
|
+
|
357
|
+
def range_inclusive(lhs, dot2_t, rhs)
|
358
|
+
n(:irange, [ lhs, rhs ],
|
359
|
+
binary_op_map(lhs, dot2_t, rhs))
|
360
|
+
end
|
361
|
+
|
362
|
+
def range_exclusive(lhs, dot3_t, rhs)
|
363
|
+
n(:erange, [ lhs, rhs ],
|
364
|
+
binary_op_map(lhs, dot3_t, rhs))
|
365
|
+
end
|
366
|
+
|
367
|
+
#
|
368
|
+
# Access
|
369
|
+
#
|
370
|
+
|
371
|
+
def self(token)
|
372
|
+
n0(:self,
|
373
|
+
token_map(token))
|
374
|
+
end
|
375
|
+
|
376
|
+
def ident(token)
|
377
|
+
n(:ident, [ value(token).to_sym ],
|
378
|
+
variable_map(token))
|
379
|
+
end
|
380
|
+
|
381
|
+
def ivar(token)
|
382
|
+
n(:ivar, [ value(token).to_sym ],
|
383
|
+
variable_map(token))
|
384
|
+
end
|
385
|
+
|
386
|
+
def gvar(token)
|
387
|
+
n(:gvar, [ value(token).to_sym ],
|
388
|
+
variable_map(token))
|
389
|
+
end
|
390
|
+
|
391
|
+
def cvar(token)
|
392
|
+
n(:cvar, [ value(token).to_sym ],
|
393
|
+
variable_map(token))
|
394
|
+
end
|
395
|
+
|
396
|
+
def back_ref(token)
|
397
|
+
n(:back_ref, [ value(token).to_sym ],
|
398
|
+
token_map(token))
|
399
|
+
end
|
400
|
+
|
401
|
+
def nth_ref(token)
|
402
|
+
n(:nth_ref, [ value(token) ],
|
403
|
+
token_map(token))
|
404
|
+
end
|
405
|
+
|
406
|
+
def accessible(node)
|
407
|
+
case node.type
|
408
|
+
when :__FILE__
|
409
|
+
if @emit_file_line_as_literals
|
410
|
+
n(:str, [ node.loc.expression.source_buffer.name ],
|
411
|
+
node.loc.dup)
|
412
|
+
else
|
413
|
+
node
|
414
|
+
end
|
415
|
+
|
416
|
+
when :__LINE__
|
417
|
+
if @emit_file_line_as_literals
|
418
|
+
n(:int, [ node.loc.expression.line ],
|
419
|
+
node.loc.dup)
|
420
|
+
else
|
421
|
+
node
|
422
|
+
end
|
423
|
+
|
424
|
+
when :__ENCODING__
|
425
|
+
n(:const, [ n(:const, [ nil, :Encoding], nil), :UTF_8 ],
|
426
|
+
node.loc.dup)
|
427
|
+
|
428
|
+
when :ident
|
429
|
+
name, = *node
|
430
|
+
|
431
|
+
if @parser.static_env.declared?(name)
|
432
|
+
node.updated(:lvar)
|
433
|
+
else
|
434
|
+
name, = *node
|
435
|
+
n(:send, [ nil, name ],
|
436
|
+
var_send_map(node))
|
437
|
+
end
|
438
|
+
|
439
|
+
else
|
440
|
+
node
|
441
|
+
end
|
442
|
+
end
|
443
|
+
|
444
|
+
def const(name_t)
|
445
|
+
n(:const, [ nil, value(name_t).to_sym ],
|
446
|
+
constant_map(nil, nil, name_t))
|
447
|
+
end
|
448
|
+
|
449
|
+
def const_global(t_colon3, name_t)
|
450
|
+
cbase = n0(:cbase, token_map(t_colon3))
|
451
|
+
|
452
|
+
n(:const, [ cbase, value(name_t).to_sym ],
|
453
|
+
constant_map(cbase, t_colon3, name_t))
|
454
|
+
end
|
455
|
+
|
456
|
+
def const_fetch(scope, t_colon2, name_t)
|
457
|
+
n(:const, [ scope, value(name_t).to_sym ],
|
458
|
+
constant_map(scope, t_colon2, name_t))
|
459
|
+
end
|
460
|
+
|
461
|
+
def __ENCODING__(__ENCODING__t)
|
462
|
+
n0(:__ENCODING__,
|
463
|
+
token_map(__ENCODING__t))
|
464
|
+
end
|
465
|
+
|
466
|
+
#
|
467
|
+
# Assignment
|
468
|
+
#
|
469
|
+
|
470
|
+
def assignable(node)
|
471
|
+
case node.type
|
472
|
+
when :cvar
|
473
|
+
node.updated(:cvasgn)
|
474
|
+
|
475
|
+
when :ivar
|
476
|
+
node.updated(:ivasgn)
|
477
|
+
|
478
|
+
when :gvar
|
479
|
+
node.updated(:gvasgn)
|
480
|
+
|
481
|
+
when :const
|
482
|
+
if @parser.in_def?
|
483
|
+
diagnostic :error, :dynamic_const, nil, node.loc.expression
|
484
|
+
end
|
485
|
+
|
486
|
+
node.updated(:casgn)
|
487
|
+
|
488
|
+
when :ident
|
489
|
+
name, = *node
|
490
|
+
@parser.static_env.declare(name)
|
491
|
+
|
492
|
+
node.updated(:lvasgn)
|
493
|
+
|
494
|
+
when :nil, :self, :true, :false,
|
495
|
+
:__FILE__, :__LINE__, :__ENCODING__
|
496
|
+
diagnostic :error, :invalid_assignment, nil, node.loc.expression
|
497
|
+
|
498
|
+
when :back_ref, :nth_ref
|
499
|
+
diagnostic :error, :backref_assignment, nil, node.loc.expression
|
500
|
+
end
|
501
|
+
end
|
502
|
+
|
503
|
+
def const_op_assignable(node)
|
504
|
+
node.updated(:casgn)
|
505
|
+
end
|
506
|
+
|
507
|
+
def assign(lhs, eql_t, rhs)
|
508
|
+
(lhs << rhs).updated(nil, nil,
|
509
|
+
:location => lhs.loc.
|
510
|
+
with_operator(loc(eql_t)).
|
511
|
+
with_expression(join_exprs(lhs, rhs)))
|
512
|
+
end
|
513
|
+
|
514
|
+
def op_assign(lhs, op_t, rhs)
|
515
|
+
case lhs.type
|
516
|
+
when :gvasgn, :ivasgn, :lvasgn, :cvasgn, :casgn, :send, :csend
|
517
|
+
operator = value(op_t)[0..-1].to_sym
|
518
|
+
source_map = lhs.loc.
|
519
|
+
with_operator(loc(op_t)).
|
520
|
+
with_expression(join_exprs(lhs, rhs))
|
521
|
+
|
522
|
+
case operator
|
523
|
+
when :'&&'
|
524
|
+
n(:and_asgn, [ lhs, rhs ], source_map)
|
525
|
+
when :'||'
|
526
|
+
n(:or_asgn, [ lhs, rhs ], source_map)
|
527
|
+
else
|
528
|
+
n(:op_asgn, [ lhs, operator, rhs ], source_map)
|
529
|
+
end
|
530
|
+
|
531
|
+
when :back_ref, :nth_ref
|
532
|
+
diagnostic :error, :backref_assignment, nil, lhs.loc.expression
|
533
|
+
end
|
534
|
+
end
|
535
|
+
|
536
|
+
def multi_lhs(begin_t, items, end_t)
|
537
|
+
n(:mlhs, [ *items ],
|
538
|
+
collection_map(begin_t, items, end_t))
|
539
|
+
end
|
540
|
+
|
541
|
+
def multi_assign(lhs, eql_t, rhs)
|
542
|
+
n(:masgn, [ lhs, rhs ],
|
543
|
+
binary_op_map(lhs, eql_t, rhs))
|
544
|
+
end
|
545
|
+
|
546
|
+
#
|
547
|
+
# Class and module definition
|
548
|
+
#
|
549
|
+
|
550
|
+
def def_class(class_t, name,
|
551
|
+
lt_t, superclass,
|
552
|
+
body, end_t)
|
553
|
+
n(:class, [ name, superclass, body ],
|
554
|
+
module_definition_map(class_t, name, lt_t, end_t))
|
555
|
+
end
|
556
|
+
|
557
|
+
def def_sclass(class_t, lshft_t, expr,
|
558
|
+
body, end_t)
|
559
|
+
n(:sclass, [ expr, body ],
|
560
|
+
module_definition_map(class_t, nil, lshft_t, end_t))
|
561
|
+
end
|
562
|
+
|
563
|
+
def def_module(module_t, name,
|
564
|
+
body, end_t)
|
565
|
+
n(:module, [ name, body ],
|
566
|
+
module_definition_map(module_t, name, nil, end_t))
|
567
|
+
end
|
568
|
+
|
569
|
+
#
|
570
|
+
# Method (un)definition
|
571
|
+
#
|
572
|
+
|
573
|
+
def def_method(def_t, name_t, args,
|
574
|
+
body, end_t)
|
575
|
+
n(:def, [ value(name_t).to_sym, args, body ],
|
576
|
+
definition_map(def_t, nil, name_t, end_t))
|
577
|
+
end
|
578
|
+
|
579
|
+
def def_singleton(def_t, definee, dot_t,
|
580
|
+
name_t, args,
|
581
|
+
body, end_t)
|
582
|
+
case definee.type
|
583
|
+
when :int, :str, :dstr, :sym, :dsym,
|
584
|
+
:regexp, :array, :hash
|
585
|
+
|
586
|
+
diagnostic :error, :singleton_literal, nil, definee.loc.expression
|
587
|
+
|
588
|
+
else
|
589
|
+
n(:defs, [ definee, value(name_t).to_sym, args, body ],
|
590
|
+
definition_map(def_t, dot_t, name_t, end_t))
|
591
|
+
end
|
592
|
+
end
|
593
|
+
|
594
|
+
def undef_method(undef_t, names)
|
595
|
+
n(:undef, [ *names ],
|
596
|
+
keyword_map(undef_t, nil, names, nil))
|
597
|
+
end
|
598
|
+
|
599
|
+
def alias(alias_t, to, from)
|
600
|
+
n(:alias, [ to, from ],
|
601
|
+
keyword_map(alias_t, nil, [to, from], nil))
|
602
|
+
end
|
603
|
+
|
604
|
+
#
|
605
|
+
# Formal arguments
|
606
|
+
#
|
607
|
+
|
608
|
+
def args(begin_t, args, end_t, check_args=true)
|
609
|
+
args = check_duplicate_args(args) if check_args
|
610
|
+
n(:args, args,
|
611
|
+
collection_map(begin_t, args, end_t))
|
612
|
+
end
|
613
|
+
|
614
|
+
def arg(name_t)
|
615
|
+
n(:arg, [ value(name_t).to_sym ],
|
616
|
+
variable_map(name_t))
|
617
|
+
end
|
618
|
+
|
619
|
+
def optarg(name_t, eql_t, value)
|
620
|
+
n(:optarg, [ value(name_t).to_sym, value ],
|
621
|
+
variable_map(name_t).
|
622
|
+
with_operator(loc(eql_t)).
|
623
|
+
with_expression(loc(name_t).join(value.loc.expression)))
|
624
|
+
end
|
625
|
+
|
626
|
+
def restarg(star_t, name_t=nil)
|
627
|
+
if name_t
|
628
|
+
n(:restarg, [ value(name_t).to_sym ],
|
629
|
+
arg_prefix_map(star_t, name_t))
|
630
|
+
else
|
631
|
+
n0(:restarg,
|
632
|
+
arg_prefix_map(star_t))
|
633
|
+
end
|
634
|
+
end
|
635
|
+
|
636
|
+
def kwarg(name_t)
|
637
|
+
n(:kwarg, [ value(name_t).to_sym ],
|
638
|
+
kwarg_map(name_t))
|
639
|
+
end
|
640
|
+
|
641
|
+
def kwoptarg(name_t, value)
|
642
|
+
n(:kwoptarg, [ value(name_t).to_sym, value ],
|
643
|
+
kwarg_map(name_t, value))
|
644
|
+
end
|
645
|
+
|
646
|
+
def kwrestarg(dstar_t, name_t=nil)
|
647
|
+
if name_t
|
648
|
+
n(:kwrestarg, [ value(name_t).to_sym ],
|
649
|
+
arg_prefix_map(dstar_t, name_t))
|
650
|
+
else
|
651
|
+
n0(:kwrestarg,
|
652
|
+
arg_prefix_map(dstar_t))
|
653
|
+
end
|
654
|
+
end
|
655
|
+
|
656
|
+
def shadowarg(name_t)
|
657
|
+
n(:shadowarg, [ value(name_t).to_sym ],
|
658
|
+
variable_map(name_t))
|
659
|
+
end
|
660
|
+
|
661
|
+
def blockarg(amper_t, name_t)
|
662
|
+
n(:blockarg, [ value(name_t).to_sym ],
|
663
|
+
arg_prefix_map(amper_t, name_t))
|
664
|
+
end
|
665
|
+
|
666
|
+
def procarg0(arg)
|
667
|
+
if self.class.emit_procarg0
|
668
|
+
arg.updated(:procarg0)
|
669
|
+
else
|
670
|
+
arg
|
671
|
+
end
|
672
|
+
end
|
673
|
+
|
674
|
+
# Ruby 1.8 block arguments
|
675
|
+
|
676
|
+
def arg_expr(expr)
|
677
|
+
if expr.type == :lvasgn
|
678
|
+
expr.updated(:arg)
|
679
|
+
else
|
680
|
+
n(:arg_expr, [ expr ],
|
681
|
+
expr.loc.dup)
|
682
|
+
end
|
683
|
+
end
|
684
|
+
|
685
|
+
def restarg_expr(star_t, expr=nil)
|
686
|
+
if expr.nil?
|
687
|
+
n0(:restarg, token_map(star_t))
|
688
|
+
elsif expr.type == :lvasgn
|
689
|
+
expr.updated(:restarg)
|
690
|
+
else
|
691
|
+
n(:restarg_expr, [ expr ],
|
692
|
+
expr.loc.dup)
|
693
|
+
end
|
694
|
+
end
|
695
|
+
|
696
|
+
def blockarg_expr(amper_t, expr)
|
697
|
+
if expr.type == :lvasgn
|
698
|
+
expr.updated(:blockarg)
|
699
|
+
else
|
700
|
+
n(:blockarg_expr, [ expr ],
|
701
|
+
expr.loc.dup)
|
702
|
+
end
|
703
|
+
end
|
704
|
+
|
705
|
+
# MacRuby Objective-C arguments
|
706
|
+
|
707
|
+
def objc_kwarg(kwname_t, assoc_t, name_t)
|
708
|
+
kwname_l = loc(kwname_t)
|
709
|
+
if assoc_t.nil? # a: b, not a => b
|
710
|
+
kwname_l = kwname_l.resize(kwname_l.size - 1)
|
711
|
+
operator_l = kwname_l.end.resize(1)
|
712
|
+
else
|
713
|
+
operator_l = loc(assoc_t)
|
714
|
+
end
|
715
|
+
|
716
|
+
n(:objc_kwarg, [ value(kwname_t).to_sym, value(name_t).to_sym ],
|
717
|
+
Source::Map::ObjcKwarg.new(kwname_l, operator_l, loc(name_t),
|
718
|
+
kwname_l.join(loc(name_t))))
|
719
|
+
end
|
720
|
+
|
721
|
+
def objc_restarg(star_t, name=nil)
|
722
|
+
if name.nil?
|
723
|
+
n0(:restarg, arg_prefix_map(star_t))
|
724
|
+
elsif name.type == :arg # regular restarg
|
725
|
+
name.updated(:restarg, nil,
|
726
|
+
{ :location => name.loc.with_operator(loc(star_t)) })
|
727
|
+
else # restarg with objc_kwarg inside
|
728
|
+
n(:objc_restarg, [ name ],
|
729
|
+
unary_op_map(star_t, name))
|
730
|
+
end
|
731
|
+
end
|
732
|
+
|
733
|
+
#
|
734
|
+
# Method calls
|
735
|
+
#
|
736
|
+
|
737
|
+
def call_type_for_dot(dot_t)
|
738
|
+
if !dot_t.nil? && value(dot_t) == :anddot
|
739
|
+
:csend
|
740
|
+
else
|
741
|
+
# This case is a bit tricky. ruby23.y returns the token tDOT with
|
742
|
+
# the value :dot, and the token :tANDDOT with the value :anddot.
|
743
|
+
#
|
744
|
+
# But, ruby{18..22}.y (which unconditionally expect tDOT) just
|
745
|
+
# return "." there, since they are to be kept close to the corresponding
|
746
|
+
# Ruby MRI grammars.
|
747
|
+
#
|
748
|
+
# Thankfully, we don't have to care.
|
749
|
+
:send
|
750
|
+
end
|
751
|
+
end
|
752
|
+
|
753
|
+
def call_method(receiver, dot_t, selector_t,
|
754
|
+
lparen_t=nil, args=[], rparen_t=nil)
|
755
|
+
type = call_type_for_dot(dot_t)
|
756
|
+
if selector_t.nil?
|
757
|
+
n(type, [ receiver, :call, *args ],
|
758
|
+
send_map(receiver, dot_t, nil, lparen_t, args, rparen_t))
|
759
|
+
else
|
760
|
+
n(type, [ receiver, value(selector_t).to_sym, *args ],
|
761
|
+
send_map(receiver, dot_t, selector_t, lparen_t, args, rparen_t))
|
762
|
+
end
|
763
|
+
end
|
764
|
+
|
765
|
+
def call_lambda(lambda_t)
|
766
|
+
if self.class.emit_lambda
|
767
|
+
n0(:lambda, expr_map(loc(lambda_t)))
|
768
|
+
else
|
769
|
+
n(:send, [ nil, :lambda ],
|
770
|
+
send_map(nil, nil, lambda_t))
|
771
|
+
end
|
772
|
+
end
|
773
|
+
|
774
|
+
def block(method_call, begin_t, args, body, end_t)
|
775
|
+
_receiver, _selector, *call_args = *method_call
|
776
|
+
|
777
|
+
if method_call.type == :yield
|
778
|
+
diagnostic :error, :block_given_to_yield, nil, method_call.loc.keyword, [loc(begin_t)]
|
779
|
+
end
|
780
|
+
|
781
|
+
last_arg = call_args.last
|
782
|
+
if last_arg && last_arg.type == :block_pass
|
783
|
+
diagnostic :error, :block_and_blockarg, nil, last_arg.loc.expression, [loc(begin_t)]
|
784
|
+
end
|
785
|
+
|
786
|
+
if [:send, :csend, :super, :zsuper, :lambda].include?(method_call.type)
|
787
|
+
n(:block, [ method_call, args, body ],
|
788
|
+
block_map(method_call.loc.expression, begin_t, end_t))
|
789
|
+
else
|
790
|
+
# Code like "return foo 1 do end" is reduced in a weird sequence.
|
791
|
+
# Here, method_call is actually (return).
|
792
|
+
actual_send, = *method_call
|
793
|
+
block =
|
794
|
+
n(:block, [ actual_send, args, body ],
|
795
|
+
block_map(actual_send.loc.expression, begin_t, end_t))
|
796
|
+
|
797
|
+
n(method_call.type, [ block ],
|
798
|
+
method_call.loc.with_expression(join_exprs(method_call, block)))
|
799
|
+
end
|
800
|
+
end
|
801
|
+
|
802
|
+
def block_pass(amper_t, arg)
|
803
|
+
n(:block_pass, [ arg ],
|
804
|
+
unary_op_map(amper_t, arg))
|
805
|
+
end
|
806
|
+
|
807
|
+
def objc_varargs(pair, rest_of_varargs)
|
808
|
+
value, first_vararg = *pair
|
809
|
+
vararg_array = array(nil, [ first_vararg, *rest_of_varargs ], nil).
|
810
|
+
updated(:objc_varargs)
|
811
|
+
pair.updated(nil, [ value, vararg_array ],
|
812
|
+
{ :location => pair.loc.with_expression(
|
813
|
+
pair.loc.expression.join(vararg_array.loc.expression)) })
|
814
|
+
end
|
815
|
+
|
816
|
+
def attr_asgn(receiver, dot_t, selector_t)
|
817
|
+
method_name = (value(selector_t) + '=').to_sym
|
818
|
+
type = call_type_for_dot(dot_t)
|
819
|
+
|
820
|
+
# Incomplete method call.
|
821
|
+
n(type, [ receiver, method_name ],
|
822
|
+
send_map(receiver, dot_t, selector_t))
|
823
|
+
end
|
824
|
+
|
825
|
+
def index(receiver, lbrack_t, indexes, rbrack_t)
|
826
|
+
n(:send, [ receiver, :[], *indexes ],
|
827
|
+
send_index_map(receiver, lbrack_t, rbrack_t))
|
828
|
+
end
|
829
|
+
|
830
|
+
def index_asgn(receiver, lbrack_t, indexes, rbrack_t)
|
831
|
+
# Incomplete method call.
|
832
|
+
n(:send, [ receiver, :[]=, *indexes ],
|
833
|
+
send_index_map(receiver, lbrack_t, rbrack_t))
|
834
|
+
end
|
835
|
+
|
836
|
+
def binary_op(receiver, operator_t, arg)
|
837
|
+
source_map = send_binary_op_map(receiver, operator_t, arg)
|
838
|
+
|
839
|
+
if @parser.version == 18
|
840
|
+
operator = value(operator_t)
|
841
|
+
|
842
|
+
if operator == '!='
|
843
|
+
method_call = n(:send, [ receiver, :==, arg ], source_map)
|
844
|
+
elsif operator == '!~'
|
845
|
+
method_call = n(:send, [ receiver, :=~, arg ], source_map)
|
846
|
+
end
|
847
|
+
|
848
|
+
if %w(!= !~).include?(operator)
|
849
|
+
return n(:not, [ method_call ],
|
850
|
+
expr_map(source_map.expression))
|
851
|
+
end
|
852
|
+
end
|
853
|
+
|
854
|
+
n(:send, [ receiver, value(operator_t).to_sym, arg ],
|
855
|
+
source_map)
|
856
|
+
end
|
857
|
+
|
858
|
+
def match_op(receiver, match_t, arg)
|
859
|
+
source_map = send_binary_op_map(receiver, match_t, arg)
|
860
|
+
|
861
|
+
if (regexp = static_regexp_node(receiver))
|
862
|
+
regexp.names.each do |name|
|
863
|
+
@parser.static_env.declare(name)
|
864
|
+
end
|
865
|
+
|
866
|
+
n(:match_with_lvasgn, [ receiver, arg ],
|
867
|
+
source_map)
|
868
|
+
else
|
869
|
+
n(:send, [ receiver, :=~, arg ],
|
870
|
+
source_map)
|
871
|
+
end
|
872
|
+
end
|
873
|
+
|
874
|
+
def unary_op(op_t, receiver)
|
875
|
+
case value(op_t)
|
876
|
+
when '+', '-'
|
877
|
+
method = value(op_t) + '@'
|
878
|
+
else
|
879
|
+
method = value(op_t)
|
880
|
+
end
|
881
|
+
|
882
|
+
n(:send, [ receiver, method.to_sym ],
|
883
|
+
send_unary_op_map(op_t, receiver))
|
884
|
+
end
|
885
|
+
|
886
|
+
def not_op(not_t, begin_t=nil, receiver=nil, end_t=nil)
|
887
|
+
if @parser.version == 18
|
888
|
+
n(:not, [ check_condition(receiver) ],
|
889
|
+
unary_op_map(not_t, receiver))
|
890
|
+
else
|
891
|
+
if receiver.nil?
|
892
|
+
nil_node = n0(:begin, collection_map(begin_t, nil, end_t))
|
893
|
+
|
894
|
+
n(:send, [
|
895
|
+
nil_node, :'!'
|
896
|
+
], send_unary_op_map(not_t, nil_node))
|
897
|
+
else
|
898
|
+
n(:send, [ check_condition(receiver), :'!' ],
|
899
|
+
send_map(nil, nil, not_t, begin_t, [receiver], end_t))
|
900
|
+
end
|
901
|
+
end
|
902
|
+
end
|
903
|
+
|
904
|
+
#
|
905
|
+
# Control flow
|
906
|
+
#
|
907
|
+
|
908
|
+
# Logical operations: and, or
|
909
|
+
|
910
|
+
def logical_op(type, lhs, op_t, rhs)
|
911
|
+
n(type, [ lhs, rhs ],
|
912
|
+
binary_op_map(lhs, op_t, rhs))
|
913
|
+
end
|
914
|
+
|
915
|
+
# Conditionals
|
916
|
+
|
917
|
+
def condition(cond_t, cond, then_t,
|
918
|
+
if_true, else_t, if_false, end_t)
|
919
|
+
n(:if, [ check_condition(cond), if_true, if_false ],
|
920
|
+
condition_map(cond_t, cond, then_t, if_true, else_t, if_false, end_t))
|
921
|
+
end
|
922
|
+
|
923
|
+
def condition_mod(if_true, if_false, cond_t, cond)
|
924
|
+
n(:if, [ check_condition(cond), if_true, if_false ],
|
925
|
+
keyword_mod_map(if_true || if_false, cond_t, cond))
|
926
|
+
end
|
927
|
+
|
928
|
+
def ternary(cond, question_t, if_true, colon_t, if_false)
|
929
|
+
n(:if, [ check_condition(cond), if_true, if_false ],
|
930
|
+
ternary_map(cond, question_t, if_true, colon_t, if_false))
|
931
|
+
end
|
932
|
+
|
933
|
+
# Case matching
|
934
|
+
|
935
|
+
def when(when_t, patterns, then_t, body)
|
936
|
+
children = patterns << body
|
937
|
+
n(:when, children,
|
938
|
+
keyword_map(when_t, then_t, children, nil))
|
939
|
+
end
|
940
|
+
|
941
|
+
def case(case_t, expr, when_bodies, else_t, else_body, end_t)
|
942
|
+
n(:case, [ expr, *(when_bodies << else_body)],
|
943
|
+
condition_map(case_t, expr, nil, nil, else_t, else_body, end_t))
|
944
|
+
end
|
945
|
+
|
946
|
+
# Loops
|
947
|
+
|
948
|
+
def loop(type, keyword_t, cond, do_t, body, end_t)
|
949
|
+
n(type, [ check_condition(cond), body ],
|
950
|
+
keyword_map(keyword_t, do_t, nil, end_t))
|
951
|
+
end
|
952
|
+
|
953
|
+
def loop_mod(type, body, keyword_t, cond)
|
954
|
+
if body.type == :kwbegin
|
955
|
+
type = :"#{type}_post"
|
956
|
+
end
|
957
|
+
|
958
|
+
n(type, [ check_condition(cond), body ],
|
959
|
+
keyword_mod_map(body, keyword_t, cond))
|
960
|
+
end
|
961
|
+
|
962
|
+
def for(for_t, iterator, in_t, iteratee,
|
963
|
+
do_t, body, end_t)
|
964
|
+
n(:for, [ iterator, iteratee, body ],
|
965
|
+
for_map(for_t, in_t, do_t, end_t))
|
966
|
+
end
|
967
|
+
|
968
|
+
# Keywords
|
969
|
+
|
970
|
+
def keyword_cmd(type, keyword_t, lparen_t=nil, args=[], rparen_t=nil)
|
971
|
+
if type == :yield && args.count > 0
|
972
|
+
last_arg = args.last
|
973
|
+
if last_arg.type == :block_pass
|
974
|
+
diagnostic :error, :block_given_to_yield, nil, loc(keyword_t), [last_arg.loc.expression]
|
975
|
+
end
|
976
|
+
end
|
977
|
+
|
978
|
+
n(type, args,
|
979
|
+
keyword_map(keyword_t, lparen_t, args, rparen_t))
|
980
|
+
end
|
981
|
+
|
982
|
+
# BEGIN, END
|
983
|
+
|
984
|
+
def preexe(preexe_t, lbrace_t, compstmt, rbrace_t)
|
985
|
+
n(:preexe, [ compstmt ],
|
986
|
+
keyword_map(preexe_t, lbrace_t, [], rbrace_t))
|
987
|
+
end
|
988
|
+
|
989
|
+
def postexe(postexe_t, lbrace_t, compstmt, rbrace_t)
|
990
|
+
n(:postexe, [ compstmt ],
|
991
|
+
keyword_map(postexe_t, lbrace_t, [], rbrace_t))
|
992
|
+
end
|
993
|
+
|
994
|
+
# Exception handling
|
995
|
+
|
996
|
+
def rescue_body(rescue_t,
|
997
|
+
exc_list, assoc_t, exc_var,
|
998
|
+
then_t, compound_stmt)
|
999
|
+
n(:resbody, [ exc_list, exc_var, compound_stmt ],
|
1000
|
+
rescue_body_map(rescue_t, exc_list, assoc_t,
|
1001
|
+
exc_var, then_t, compound_stmt))
|
1002
|
+
end
|
1003
|
+
|
1004
|
+
def begin_body(compound_stmt, rescue_bodies=[],
|
1005
|
+
else_t=nil, else_=nil,
|
1006
|
+
ensure_t=nil, ensure_=nil)
|
1007
|
+
if rescue_bodies.any?
|
1008
|
+
if else_t
|
1009
|
+
compound_stmt =
|
1010
|
+
n(:rescue,
|
1011
|
+
[ compound_stmt, *(rescue_bodies + [ else_ ]) ],
|
1012
|
+
eh_keyword_map(compound_stmt, nil, rescue_bodies, else_t, else_))
|
1013
|
+
else
|
1014
|
+
compound_stmt =
|
1015
|
+
n(:rescue,
|
1016
|
+
[ compound_stmt, *(rescue_bodies + [ nil ]) ],
|
1017
|
+
eh_keyword_map(compound_stmt, nil, rescue_bodies, nil, nil))
|
1018
|
+
end
|
1019
|
+
elsif else_t
|
1020
|
+
statements = []
|
1021
|
+
if !compound_stmt.nil?
|
1022
|
+
if compound_stmt.type == :begin
|
1023
|
+
statements += compound_stmt.children
|
1024
|
+
else
|
1025
|
+
statements.push(compound_stmt)
|
1026
|
+
end
|
1027
|
+
end
|
1028
|
+
statements.push(
|
1029
|
+
n(:begin, [ else_ ],
|
1030
|
+
collection_map(else_t, [ else_ ], nil)))
|
1031
|
+
compound_stmt =
|
1032
|
+
n(:begin, statements,
|
1033
|
+
collection_map(nil, statements, nil))
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
if ensure_t
|
1037
|
+
compound_stmt =
|
1038
|
+
n(:ensure,
|
1039
|
+
[ compound_stmt, ensure_ ],
|
1040
|
+
eh_keyword_map(compound_stmt, ensure_t, [ ensure_ ], nil, nil))
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
compound_stmt
|
1044
|
+
end
|
1045
|
+
|
1046
|
+
#
|
1047
|
+
# Expression grouping
|
1048
|
+
#
|
1049
|
+
|
1050
|
+
def compstmt(statements)
|
1051
|
+
case
|
1052
|
+
when statements.none?
|
1053
|
+
nil
|
1054
|
+
when statements.one?
|
1055
|
+
statements.first
|
1056
|
+
else
|
1057
|
+
n(:begin, statements,
|
1058
|
+
collection_map(nil, statements, nil))
|
1059
|
+
end
|
1060
|
+
end
|
1061
|
+
|
1062
|
+
def begin(begin_t, body, end_t)
|
1063
|
+
if body.nil?
|
1064
|
+
# A nil expression: `()'.
|
1065
|
+
n0(:begin,
|
1066
|
+
collection_map(begin_t, nil, end_t))
|
1067
|
+
elsif body.type == :mlhs ||
|
1068
|
+
(body.type == :begin &&
|
1069
|
+
body.loc.begin.nil? && body.loc.end.nil?)
|
1070
|
+
# Synthesized (begin) from compstmt "a; b" or (mlhs)
|
1071
|
+
# from multi_lhs "(a, b) = *foo".
|
1072
|
+
n(body.type, body.children,
|
1073
|
+
collection_map(begin_t, body.children, end_t))
|
1074
|
+
else
|
1075
|
+
n(:begin, [ body ],
|
1076
|
+
collection_map(begin_t, [ body ], end_t))
|
1077
|
+
end
|
1078
|
+
end
|
1079
|
+
|
1080
|
+
def begin_keyword(begin_t, body, end_t)
|
1081
|
+
if body.nil?
|
1082
|
+
# A nil expression: `begin end'.
|
1083
|
+
n0(:kwbegin,
|
1084
|
+
collection_map(begin_t, nil, end_t))
|
1085
|
+
elsif (body.type == :begin &&
|
1086
|
+
body.loc.begin.nil? && body.loc.end.nil?)
|
1087
|
+
# Synthesized (begin) from compstmt "a; b".
|
1088
|
+
n(:kwbegin, body.children,
|
1089
|
+
collection_map(begin_t, body.children, end_t))
|
1090
|
+
else
|
1091
|
+
n(:kwbegin, [ body ],
|
1092
|
+
collection_map(begin_t, [ body ], end_t))
|
1093
|
+
end
|
1094
|
+
end
|
1095
|
+
|
1096
|
+
private
|
1097
|
+
|
1098
|
+
#
|
1099
|
+
# VERIFICATION
|
1100
|
+
#
|
1101
|
+
|
1102
|
+
def check_condition(cond)
|
1103
|
+
case cond.type
|
1104
|
+
when :masgn
|
1105
|
+
if @parser.version <= 23
|
1106
|
+
diagnostic :error, :masgn_as_condition, nil, cond.loc.expression
|
1107
|
+
else
|
1108
|
+
cond
|
1109
|
+
end
|
1110
|
+
|
1111
|
+
when :begin
|
1112
|
+
if cond.children.count == 1
|
1113
|
+
cond.updated(nil, [
|
1114
|
+
check_condition(cond.children.last)
|
1115
|
+
])
|
1116
|
+
else
|
1117
|
+
cond
|
1118
|
+
end
|
1119
|
+
|
1120
|
+
when :and, :or, :irange, :erange
|
1121
|
+
lhs, rhs = *cond
|
1122
|
+
|
1123
|
+
type = case cond.type
|
1124
|
+
when :irange then :iflipflop
|
1125
|
+
when :erange then :eflipflop
|
1126
|
+
end
|
1127
|
+
|
1128
|
+
if [:and, :or].include?(cond.type) &&
|
1129
|
+
@parser.version == 18
|
1130
|
+
cond
|
1131
|
+
else
|
1132
|
+
cond.updated(type, [
|
1133
|
+
check_condition(lhs),
|
1134
|
+
check_condition(rhs)
|
1135
|
+
])
|
1136
|
+
end
|
1137
|
+
|
1138
|
+
when :regexp
|
1139
|
+
n(:match_current_line, [ cond ], expr_map(cond.loc.expression))
|
1140
|
+
|
1141
|
+
else
|
1142
|
+
cond
|
1143
|
+
end
|
1144
|
+
end
|
1145
|
+
|
1146
|
+
def check_duplicate_args(args, map={})
|
1147
|
+
args.each do |this_arg|
|
1148
|
+
case this_arg.type
|
1149
|
+
when :arg, :optarg, :restarg, :blockarg,
|
1150
|
+
:kwarg, :kwoptarg, :kwrestarg,
|
1151
|
+
:shadowarg, :procarg0
|
1152
|
+
|
1153
|
+
this_name, = *this_arg
|
1154
|
+
|
1155
|
+
that_arg = map[this_name]
|
1156
|
+
that_name, = *that_arg
|
1157
|
+
|
1158
|
+
if that_arg.nil?
|
1159
|
+
map[this_name] = this_arg
|
1160
|
+
elsif arg_name_collides?(this_name, that_name)
|
1161
|
+
diagnostic :error, :duplicate_argument, nil,
|
1162
|
+
this_arg.loc.name, [ that_arg.loc.name ]
|
1163
|
+
end
|
1164
|
+
|
1165
|
+
when :mlhs
|
1166
|
+
check_duplicate_args(this_arg.children, map)
|
1167
|
+
end
|
1168
|
+
end
|
1169
|
+
end
|
1170
|
+
|
1171
|
+
def arg_name_collides?(this_name, that_name)
|
1172
|
+
case @parser.version
|
1173
|
+
when 18
|
1174
|
+
this_name == that_name
|
1175
|
+
when 19
|
1176
|
+
# Ignore underscore.
|
1177
|
+
this_name != :_ &&
|
1178
|
+
this_name == that_name
|
1179
|
+
else
|
1180
|
+
# Ignore everything beginning with underscore.
|
1181
|
+
this_name && this_name[0] != '_' &&
|
1182
|
+
this_name == that_name
|
1183
|
+
end
|
1184
|
+
end
|
1185
|
+
|
1186
|
+
#
|
1187
|
+
# SOURCE MAPS
|
1188
|
+
#
|
1189
|
+
|
1190
|
+
def n(type, children, source_map)
|
1191
|
+
AST::Node.new(type, children, :location => source_map)
|
1192
|
+
end
|
1193
|
+
|
1194
|
+
def n0(type, source_map)
|
1195
|
+
n(type, [], source_map)
|
1196
|
+
end
|
1197
|
+
|
1198
|
+
def join_exprs(left_expr, right_expr)
|
1199
|
+
left_expr.loc.expression.
|
1200
|
+
join(right_expr.loc.expression)
|
1201
|
+
end
|
1202
|
+
|
1203
|
+
def token_map(token)
|
1204
|
+
Source::Map.new(loc(token))
|
1205
|
+
end
|
1206
|
+
|
1207
|
+
def delimited_string_map(string_t)
|
1208
|
+
str_range = loc(string_t)
|
1209
|
+
|
1210
|
+
begin_l = Source::Range.new(str_range.source_buffer,
|
1211
|
+
str_range.begin_pos,
|
1212
|
+
str_range.begin_pos + 1)
|
1213
|
+
|
1214
|
+
end_l = Source::Range.new(str_range.source_buffer,
|
1215
|
+
str_range.end_pos - 1,
|
1216
|
+
str_range.end_pos)
|
1217
|
+
|
1218
|
+
Source::Map::Collection.new(begin_l, end_l,
|
1219
|
+
loc(string_t))
|
1220
|
+
end
|
1221
|
+
|
1222
|
+
def prefix_string_map(symbol)
|
1223
|
+
str_range = loc(symbol)
|
1224
|
+
|
1225
|
+
begin_l = Source::Range.new(str_range.source_buffer,
|
1226
|
+
str_range.begin_pos,
|
1227
|
+
str_range.begin_pos + 1)
|
1228
|
+
|
1229
|
+
Source::Map::Collection.new(begin_l, nil,
|
1230
|
+
loc(symbol))
|
1231
|
+
end
|
1232
|
+
|
1233
|
+
def unquoted_map(token)
|
1234
|
+
Source::Map::Collection.new(nil, nil,
|
1235
|
+
loc(token))
|
1236
|
+
end
|
1237
|
+
|
1238
|
+
def pair_keyword_map(key_t, value_e)
|
1239
|
+
key_range = loc(key_t)
|
1240
|
+
|
1241
|
+
key_l = Source::Range.new(key_range.source_buffer,
|
1242
|
+
key_range.begin_pos,
|
1243
|
+
key_range.end_pos - 1)
|
1244
|
+
|
1245
|
+
colon_l = Source::Range.new(key_range.source_buffer,
|
1246
|
+
key_range.end_pos - 1,
|
1247
|
+
key_range.end_pos)
|
1248
|
+
|
1249
|
+
[ # key map
|
1250
|
+
Source::Map::Collection.new(nil, nil,
|
1251
|
+
key_l),
|
1252
|
+
# pair map
|
1253
|
+
Source::Map::Operator.new(colon_l,
|
1254
|
+
key_range.join(value_e.loc.expression)) ]
|
1255
|
+
end
|
1256
|
+
|
1257
|
+
def pair_quoted_map(begin_t, end_t, value_e)
|
1258
|
+
end_l = loc(end_t)
|
1259
|
+
|
1260
|
+
quote_l = Source::Range.new(end_l.source_buffer,
|
1261
|
+
end_l.end_pos - 2,
|
1262
|
+
end_l.end_pos - 1)
|
1263
|
+
|
1264
|
+
colon_l = Source::Range.new(end_l.source_buffer,
|
1265
|
+
end_l.end_pos - 1,
|
1266
|
+
end_l.end_pos)
|
1267
|
+
|
1268
|
+
[ # modified end token
|
1269
|
+
[ value(end_t), quote_l ],
|
1270
|
+
# pair map
|
1271
|
+
Source::Map::Operator.new(colon_l,
|
1272
|
+
loc(begin_t).join(value_e.loc.expression)) ]
|
1273
|
+
end
|
1274
|
+
|
1275
|
+
def expr_map(loc)
|
1276
|
+
Source::Map.new(loc)
|
1277
|
+
end
|
1278
|
+
|
1279
|
+
def collection_map(begin_t, parts, end_t)
|
1280
|
+
if begin_t.nil? || end_t.nil?
|
1281
|
+
if parts.any?
|
1282
|
+
expr_l = join_exprs(parts.first, parts.last)
|
1283
|
+
elsif !begin_t.nil?
|
1284
|
+
expr_l = loc(begin_t)
|
1285
|
+
elsif !end_t.nil?
|
1286
|
+
expr_l = loc(end_t)
|
1287
|
+
end
|
1288
|
+
else
|
1289
|
+
expr_l = loc(begin_t).join(loc(end_t))
|
1290
|
+
end
|
1291
|
+
|
1292
|
+
Source::Map::Collection.new(loc(begin_t), loc(end_t), expr_l)
|
1293
|
+
end
|
1294
|
+
|
1295
|
+
def string_map(begin_t, parts, end_t)
|
1296
|
+
if begin_t && value(begin_t).start_with?('<<')
|
1297
|
+
if parts.any?
|
1298
|
+
expr_l = join_exprs(parts.first, parts.last)
|
1299
|
+
else
|
1300
|
+
expr_l = loc(end_t).begin
|
1301
|
+
end
|
1302
|
+
|
1303
|
+
Source::Map::Heredoc.new(loc(begin_t), expr_l, loc(end_t))
|
1304
|
+
else
|
1305
|
+
collection_map(begin_t, parts, end_t)
|
1306
|
+
end
|
1307
|
+
end
|
1308
|
+
|
1309
|
+
def regexp_map(begin_t, end_t, options_e)
|
1310
|
+
Source::Map::Collection.new(loc(begin_t), loc(end_t),
|
1311
|
+
loc(begin_t).join(options_e.loc.expression))
|
1312
|
+
end
|
1313
|
+
|
1314
|
+
def constant_map(scope, colon2_t, name_t)
|
1315
|
+
if scope.nil?
|
1316
|
+
expr_l = loc(name_t)
|
1317
|
+
else
|
1318
|
+
expr_l = scope.loc.expression.join(loc(name_t))
|
1319
|
+
end
|
1320
|
+
|
1321
|
+
Source::Map::Constant.new(loc(colon2_t), loc(name_t), expr_l)
|
1322
|
+
end
|
1323
|
+
|
1324
|
+
def variable_map(name_t)
|
1325
|
+
Source::Map::Variable.new(loc(name_t))
|
1326
|
+
end
|
1327
|
+
|
1328
|
+
def binary_op_map(left_e, op_t, right_e)
|
1329
|
+
Source::Map::Operator.new(loc(op_t), join_exprs(left_e, right_e))
|
1330
|
+
end
|
1331
|
+
|
1332
|
+
def unary_op_map(op_t, arg_e=nil)
|
1333
|
+
if arg_e.nil?
|
1334
|
+
expr_l = loc(op_t)
|
1335
|
+
else
|
1336
|
+
expr_l = loc(op_t).join(arg_e.loc.expression)
|
1337
|
+
end
|
1338
|
+
|
1339
|
+
Source::Map::Operator.new(loc(op_t), expr_l)
|
1340
|
+
end
|
1341
|
+
|
1342
|
+
def arg_prefix_map(op_t, name_t=nil)
|
1343
|
+
if name_t.nil?
|
1344
|
+
expr_l = loc(op_t)
|
1345
|
+
else
|
1346
|
+
expr_l = loc(op_t).join(loc(name_t))
|
1347
|
+
end
|
1348
|
+
|
1349
|
+
Source::Map::Variable.new(loc(name_t), expr_l)
|
1350
|
+
end
|
1351
|
+
|
1352
|
+
def kwarg_map(name_t, value_e=nil)
|
1353
|
+
label_range = loc(name_t)
|
1354
|
+
name_range = Source::Range.new(label_range.source_buffer,
|
1355
|
+
label_range.begin_pos,
|
1356
|
+
label_range.end_pos - 1)
|
1357
|
+
|
1358
|
+
if value_e
|
1359
|
+
expr_l = loc(name_t).join(value_e.loc.expression)
|
1360
|
+
else
|
1361
|
+
expr_l = loc(name_t)
|
1362
|
+
end
|
1363
|
+
|
1364
|
+
Source::Map::Variable.new(name_range, expr_l)
|
1365
|
+
end
|
1366
|
+
|
1367
|
+
def module_definition_map(keyword_t, name_e, operator_t, end_t)
|
1368
|
+
if name_e
|
1369
|
+
name_l = name_e.loc.expression
|
1370
|
+
end
|
1371
|
+
|
1372
|
+
Source::Map::Definition.new(loc(keyword_t),
|
1373
|
+
loc(operator_t), name_l,
|
1374
|
+
loc(end_t))
|
1375
|
+
end
|
1376
|
+
|
1377
|
+
def definition_map(keyword_t, operator_t, name_t, end_t)
|
1378
|
+
Source::Map::Definition.new(loc(keyword_t),
|
1379
|
+
loc(operator_t), loc(name_t),
|
1380
|
+
loc(end_t))
|
1381
|
+
end
|
1382
|
+
|
1383
|
+
def send_map(receiver_e, dot_t, selector_t, begin_t=nil, args=[], end_t=nil)
|
1384
|
+
if receiver_e
|
1385
|
+
begin_l = receiver_e.loc.expression
|
1386
|
+
elsif selector_t
|
1387
|
+
begin_l = loc(selector_t)
|
1388
|
+
end
|
1389
|
+
|
1390
|
+
if end_t
|
1391
|
+
end_l = loc(end_t)
|
1392
|
+
elsif args.any?
|
1393
|
+
end_l = args.last.loc.expression
|
1394
|
+
elsif selector_t
|
1395
|
+
end_l = loc(selector_t)
|
1396
|
+
end
|
1397
|
+
|
1398
|
+
Source::Map::Send.new(loc(dot_t), loc(selector_t),
|
1399
|
+
loc(begin_t), loc(end_t),
|
1400
|
+
begin_l.join(end_l))
|
1401
|
+
end
|
1402
|
+
|
1403
|
+
def var_send_map(variable_e)
|
1404
|
+
Source::Map::Send.new(nil, variable_e.loc.expression,
|
1405
|
+
nil, nil,
|
1406
|
+
variable_e.loc.expression)
|
1407
|
+
end
|
1408
|
+
|
1409
|
+
def send_binary_op_map(lhs_e, selector_t, rhs_e)
|
1410
|
+
Source::Map::Send.new(nil, loc(selector_t),
|
1411
|
+
nil, nil,
|
1412
|
+
join_exprs(lhs_e, rhs_e))
|
1413
|
+
end
|
1414
|
+
|
1415
|
+
def send_unary_op_map(selector_t, arg_e)
|
1416
|
+
if arg_e.nil?
|
1417
|
+
expr_l = loc(selector_t)
|
1418
|
+
else
|
1419
|
+
expr_l = loc(selector_t).join(arg_e.loc.expression)
|
1420
|
+
end
|
1421
|
+
|
1422
|
+
Source::Map::Send.new(nil, loc(selector_t),
|
1423
|
+
nil, nil,
|
1424
|
+
expr_l)
|
1425
|
+
end
|
1426
|
+
|
1427
|
+
def send_index_map(receiver_e, lbrack_t, rbrack_t)
|
1428
|
+
Source::Map::Send.new(nil, loc(lbrack_t).join(loc(rbrack_t)),
|
1429
|
+
nil, nil,
|
1430
|
+
receiver_e.loc.expression.join(loc(rbrack_t)))
|
1431
|
+
end
|
1432
|
+
|
1433
|
+
def block_map(receiver_l, begin_t, end_t)
|
1434
|
+
Source::Map::Collection.new(loc(begin_t), loc(end_t),
|
1435
|
+
receiver_l.join(loc(end_t)))
|
1436
|
+
end
|
1437
|
+
|
1438
|
+
def keyword_map(keyword_t, begin_t, args, end_t)
|
1439
|
+
args ||= []
|
1440
|
+
|
1441
|
+
if end_t
|
1442
|
+
end_l = loc(end_t)
|
1443
|
+
elsif args.any? && !args.last.nil?
|
1444
|
+
end_l = args.last.loc.expression
|
1445
|
+
elsif args.any? && args.count > 1
|
1446
|
+
end_l = args[-2].loc.expression
|
1447
|
+
else
|
1448
|
+
end_l = loc(keyword_t)
|
1449
|
+
end
|
1450
|
+
|
1451
|
+
Source::Map::Keyword.new(loc(keyword_t), loc(begin_t), loc(end_t),
|
1452
|
+
loc(keyword_t).join(end_l))
|
1453
|
+
end
|
1454
|
+
|
1455
|
+
def keyword_mod_map(pre_e, keyword_t, post_e)
|
1456
|
+
Source::Map::Keyword.new(loc(keyword_t), nil, nil,
|
1457
|
+
join_exprs(pre_e, post_e))
|
1458
|
+
end
|
1459
|
+
|
1460
|
+
def condition_map(keyword_t, cond_e, begin_t, body_e, else_t, else_e, end_t)
|
1461
|
+
if end_t
|
1462
|
+
end_l = loc(end_t)
|
1463
|
+
elsif else_e && else_e.loc.expression
|
1464
|
+
end_l = else_e.loc.expression
|
1465
|
+
elsif loc(else_t)
|
1466
|
+
end_l = loc(else_t)
|
1467
|
+
elsif body_e && body_e.loc.expression
|
1468
|
+
end_l = body_e.loc.expression
|
1469
|
+
elsif loc(begin_t)
|
1470
|
+
end_l = loc(begin_t)
|
1471
|
+
else
|
1472
|
+
end_l = cond_e.loc.expression
|
1473
|
+
end
|
1474
|
+
|
1475
|
+
Source::Map::Condition.new(loc(keyword_t),
|
1476
|
+
loc(begin_t), loc(else_t), loc(end_t),
|
1477
|
+
loc(keyword_t).join(end_l))
|
1478
|
+
end
|
1479
|
+
|
1480
|
+
def ternary_map(begin_e, question_t, mid_e, colon_t, end_e)
|
1481
|
+
Source::Map::Ternary.new(loc(question_t), loc(colon_t),
|
1482
|
+
join_exprs(begin_e, end_e))
|
1483
|
+
end
|
1484
|
+
|
1485
|
+
def for_map(keyword_t, in_t, begin_t, end_t)
|
1486
|
+
Source::Map::For.new(loc(keyword_t), loc(in_t),
|
1487
|
+
loc(begin_t), loc(end_t),
|
1488
|
+
loc(keyword_t).join(loc(end_t)))
|
1489
|
+
end
|
1490
|
+
|
1491
|
+
def rescue_body_map(keyword_t, exc_list_e, assoc_t,
|
1492
|
+
exc_var_e, then_t,
|
1493
|
+
compstmt_e)
|
1494
|
+
end_l = compstmt_e.loc.expression if compstmt_e
|
1495
|
+
end_l = loc(then_t) if end_l.nil? && then_t
|
1496
|
+
end_l = exc_var_e.loc.expression if end_l.nil? && exc_var_e
|
1497
|
+
end_l = exc_list_e.loc.expression if end_l.nil? && exc_list_e
|
1498
|
+
end_l = loc(keyword_t) if end_l.nil?
|
1499
|
+
|
1500
|
+
Source::Map::RescueBody.new(loc(keyword_t), loc(assoc_t), loc(then_t),
|
1501
|
+
loc(keyword_t).join(end_l))
|
1502
|
+
end
|
1503
|
+
|
1504
|
+
def eh_keyword_map(compstmt_e, keyword_t, body_es,
|
1505
|
+
else_t, else_e)
|
1506
|
+
if compstmt_e.nil?
|
1507
|
+
if keyword_t.nil?
|
1508
|
+
begin_l = body_es.first.loc.expression
|
1509
|
+
else
|
1510
|
+
begin_l = loc(keyword_t)
|
1511
|
+
end
|
1512
|
+
else
|
1513
|
+
begin_l = compstmt_e.loc.expression
|
1514
|
+
end
|
1515
|
+
|
1516
|
+
if else_t
|
1517
|
+
if else_e.nil?
|
1518
|
+
end_l = loc(else_t)
|
1519
|
+
else
|
1520
|
+
end_l = else_e.loc.expression
|
1521
|
+
end
|
1522
|
+
elsif !body_es.last.nil?
|
1523
|
+
end_l = body_es.last.loc.expression
|
1524
|
+
else
|
1525
|
+
end_l = loc(keyword_t)
|
1526
|
+
end
|
1527
|
+
|
1528
|
+
Source::Map::Condition.new(loc(keyword_t), nil, loc(else_t), nil,
|
1529
|
+
begin_l.join(end_l))
|
1530
|
+
end
|
1531
|
+
|
1532
|
+
#
|
1533
|
+
# HELPERS
|
1534
|
+
#
|
1535
|
+
|
1536
|
+
# Extract a static string from e.g. a regular expression,
|
1537
|
+
# honoring the fact that MRI expands interpolations like #{""}
|
1538
|
+
# at parse time.
|
1539
|
+
def static_string(nodes)
|
1540
|
+
nodes.map do |node|
|
1541
|
+
case node.type
|
1542
|
+
when :str
|
1543
|
+
node.children[0]
|
1544
|
+
when :begin
|
1545
|
+
if (string = static_string(node.children))
|
1546
|
+
string
|
1547
|
+
else
|
1548
|
+
return nil
|
1549
|
+
end
|
1550
|
+
else
|
1551
|
+
return nil
|
1552
|
+
end
|
1553
|
+
end.join
|
1554
|
+
end
|
1555
|
+
|
1556
|
+
def static_regexp(parts, options)
|
1557
|
+
source = static_string(parts)
|
1558
|
+
return nil if source.nil?
|
1559
|
+
|
1560
|
+
if defined?(Encoding)
|
1561
|
+
source = case
|
1562
|
+
when options.children.include?(:u)
|
1563
|
+
source.encode(Encoding::UTF_8)
|
1564
|
+
when options.children.include?(:e)
|
1565
|
+
source.encode(Encoding::EUC_JP)
|
1566
|
+
when options.children.include?(:s)
|
1567
|
+
source.encode(Encoding::WINDOWS_31J)
|
1568
|
+
when options.children.include?(:n)
|
1569
|
+
source.encode(Encoding::BINARY)
|
1570
|
+
else
|
1571
|
+
source
|
1572
|
+
end
|
1573
|
+
end
|
1574
|
+
|
1575
|
+
Regexp.new(source, (Regexp::EXTENDED if options.children.include?(:x)))
|
1576
|
+
end
|
1577
|
+
|
1578
|
+
def static_regexp_node(node)
|
1579
|
+
if node.type == :regexp
|
1580
|
+
parts, options = node.children[0..-2], node.children[-1]
|
1581
|
+
static_regexp(parts, options)
|
1582
|
+
end
|
1583
|
+
end
|
1584
|
+
|
1585
|
+
def collapse_string_parts?(parts)
|
1586
|
+
parts.one? &&
|
1587
|
+
[:str, :dstr].include?(parts.first.type)
|
1588
|
+
end
|
1589
|
+
|
1590
|
+
def value(token)
|
1591
|
+
token[0]
|
1592
|
+
end
|
1593
|
+
|
1594
|
+
if defined?(Encoding)
|
1595
|
+
def string_value(token)
|
1596
|
+
unless token[0].valid_encoding?
|
1597
|
+
diagnostic(:error, :invalid_encoding, nil, token[1])
|
1598
|
+
end
|
1599
|
+
|
1600
|
+
token[0]
|
1601
|
+
end
|
1602
|
+
else
|
1603
|
+
alias string_value value
|
1604
|
+
end
|
1605
|
+
|
1606
|
+
def loc(token)
|
1607
|
+
# Pass through `nil`s and return nil for tNL.
|
1608
|
+
token[1] if token && token[0]
|
1609
|
+
end
|
1610
|
+
|
1611
|
+
def diagnostic(type, reason, arguments, location, highlights=[])
|
1612
|
+
@parser.diagnostics.process(
|
1613
|
+
Diagnostic.new(type, reason, arguments, location, highlights))
|
1614
|
+
|
1615
|
+
if type == :error
|
1616
|
+
@parser.send :yyerror
|
1617
|
+
end
|
1618
|
+
end
|
1619
|
+
end
|
1620
|
+
|
1621
|
+
end
|