mx-platform-ruby 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +4 -4
- data/lib/mx-platform-ruby/version.rb +1 -1
- data/openapi/config.yml +1 -1
- data/vendor/bundle/ruby/2.6.0/bin/byebug +27 -0
- data/vendor/bundle/ruby/2.6.0/bin/coderay +27 -0
- data/vendor/bundle/ruby/2.6.0/bin/htmldiff +29 -0
- data/vendor/bundle/ruby/2.6.0/bin/ldiff +29 -0
- data/vendor/bundle/ruby/2.6.0/bin/pry +27 -0
- data/vendor/bundle/ruby/2.6.0/bin/rake +27 -0
- data/vendor/bundle/ruby/2.6.0/bin/rspec +27 -0
- data/vendor/bundle/ruby/2.6.0/bin/rubocop +27 -0
- data/vendor/bundle/ruby/2.6.0/bin/ruby-parse +27 -0
- data/vendor/bundle/ruby/2.6.0/bin/ruby-rewrite +27 -0
- data/vendor/bundle/ruby/2.6.0/cache/ast-2.4.2.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/byebug-11.1.3.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/coderay-1.1.3.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/diff-lcs-1.4.4.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/faraday-1.7.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/faraday-em_http-1.0.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/faraday-em_synchrony-1.0.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/faraday-excon-1.1.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/faraday-httpclient-1.0.1.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/faraday-net_http-1.0.1.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/faraday-net_http_persistent-1.2.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/faraday-patron-1.0.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/faraday-rack-1.0.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/jaro_winkler-1.5.4.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/method_source-1.0.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/multipart-post-2.1.1.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/parallel-1.20.1.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/parser-3.0.2.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/pry-0.13.1.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/pry-byebug-3.9.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/psych-4.0.1.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rainbow-3.0.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rake-13.0.6.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-3.10.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-core-3.10.1.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-expectations-3.10.1.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-mocks-3.10.2.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-support-3.10.2.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rubocop-0.66.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/ruby-progressbar-1.11.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/ruby2_keywords-0.0.5.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/unicode-display_width-1.5.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/byebug-11.1.3/byebug/byebug.so +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/byebug-11.1.3/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/byebug-11.1.3/gem_make.out +19 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/jaro_winkler-1.5.4/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/jaro_winkler-1.5.4/gem_make.out +83 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/jaro_winkler-1.5.4/jaro_winkler/jaro_winkler_ext.so +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/psych-4.0.1/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/psych-4.0.1/gem_make.out +41 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/psych-4.0.1/mkmf.log +196 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/psych-4.0.1/psych.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ast-2.4.2/LICENSE.MIT +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/ast-2.4.2/README.YARD.md +12 -0
- data/vendor/bundle/ruby/2.6.0/gems/ast-2.4.2/lib/ast.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/ast-2.4.2/lib/ast/node.rb +268 -0
- data/vendor/bundle/ruby/2.6.0/gems/ast-2.4.2/lib/ast/processor.rb +12 -0
- data/vendor/bundle/ruby/2.6.0/gems/ast-2.4.2/lib/ast/processor/mixin.rb +288 -0
- data/vendor/bundle/ruby/2.6.0/gems/ast-2.4.2/lib/ast/sexp.rb +30 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/CHANGELOG.md +934 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/CONTRIBUTING.md +58 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/GUIDE.md +1806 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/LICENSE +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/README.md +199 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/exe/byebug +6 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/ext/byebug/.sitearchdir.-.byebug.time +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/ext/byebug/Makefile +266 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/ext/byebug/breakpoint.c +517 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/ext/byebug/breakpoint.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/ext/byebug/byebug.c +900 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/ext/byebug/byebug.h +145 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/ext/byebug/byebug.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/ext/byebug/byebug.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/ext/byebug/context.c +686 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/ext/byebug/context.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/ext/byebug/extconf.rb +12 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/ext/byebug/locker.c +96 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/ext/byebug/locker.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/ext/byebug/threads.c +230 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/ext/byebug/threads.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/attacher.rb +48 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/breakpoint.rb +111 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/byebug.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/command.rb +111 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/command_list.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/break.rb +112 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/catch.rb +78 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/condition.rb +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/continue.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/debug.rb +38 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/delete.rb +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/disable.rb +33 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/disable/breakpoints.rb +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/disable/display.rb +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/display.rb +66 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/down.rb +45 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/edit.rb +69 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/enable.rb +33 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/enable/breakpoints.rb +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/enable/display.rb +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/finish.rb +57 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/frame.rb +57 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/help.rb +64 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/history.rb +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/info.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/info/breakpoints.rb +65 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/info/display.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/info/file.rb +80 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/info/line.rb +35 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/info/program.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/interrupt.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/irb.rb +50 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/kill.rb +45 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/list.rb +159 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/method.rb +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/next.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/pry.rb +41 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/quit.rb +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/restart.rb +64 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/save.rb +72 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/set.rb +79 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/show.rb +45 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/skip.rb +85 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/source.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/step.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/thread.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/thread/current.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/thread/list.rb +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/thread/resume.rb +45 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/thread/stop.rb +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/thread/switch.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/tracevar.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/undisplay.rb +51 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/untracevar.rb +36 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/up.rb +45 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/var.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/var/all.rb +41 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/var/args.rb +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/var/const.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/var/global.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/var/instance.rb +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/var/local.rb +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/commands/where.rb +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/context.rb +157 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/core.rb +115 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/errors.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/frame.rb +185 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/helpers/bin.rb +47 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/helpers/eval.rb +126 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/helpers/file.rb +63 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/helpers/frame.rb +75 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/helpers/parse.rb +75 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/helpers/path.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/helpers/reflection.rb +19 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/helpers/string.rb +33 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/helpers/thread.rb +67 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/helpers/toggle.rb +62 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/helpers/var.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/history.rb +130 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/interface.rb +146 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/interfaces/local_interface.rb +63 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/interfaces/remote_interface.rb +50 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/interfaces/script_interface.rb +33 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/interfaces/test_interface.rb +67 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/option_setter.rb +95 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/printers/base.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/printers/plain.rb +44 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/printers/texts/base.yml +115 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/printers/texts/plain.yml +33 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/processors/command_processor.rb +173 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/processors/control_processor.rb +24 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/processors/post_mortem_processor.rb +18 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/processors/script_processor.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/remote.rb +85 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/remote/client.rb +57 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/remote/server.rb +47 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/runner.rb +198 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/setting.rb +79 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/settings/autoirb.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/settings/autolist.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/settings/autopry.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/settings/autosave.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/settings/basename.rb +16 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/settings/callstyle.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/settings/fullpath.rb +16 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/settings/histfile.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/settings/histsize.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/settings/linetrace.rb +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/settings/listsize.rb +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/settings/post_mortem.rb +27 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/settings/savefile.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/settings/stack_on_error.rb +15 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/settings/width.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/source_file_formatter.rb +71 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/subcommands.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/byebug-11.1.3/lib/byebug/version.rb +8 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/MIT-LICENSE +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/README_INDEX.rdoc +123 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/bin/coderay +215 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay.rb +284 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/duo.rb +81 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders.rb +18 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/_map.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/comment_filter.rb +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/count.rb +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/debug.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/debug_lint.rb +63 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/div.rb +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/encoder.rb +190 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/filter.rb +58 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/html.rb +333 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/html/css.rb +65 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/html/numbering.rb +108 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/html/output.rb +164 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/json.rb +83 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/lines_of_code.rb +45 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/lint.rb +59 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/null.rb +18 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/page.rb +24 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/span.rb +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/statistic.rb +95 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/terminal.rb +195 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/text.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/token_kind_filter.rb +111 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/xml.rb +72 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/encoders/yaml.rb +50 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/for_redcloth.rb +95 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/helpers/file_type.rb +151 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/helpers/plugin.rb +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/helpers/plugin_host.rb +221 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/helpers/word_list.rb +72 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners.rb +27 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/_map.rb +24 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/c.rb +189 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/clojure.rb +217 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/cpp.rb +217 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/css.rb +196 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/debug.rb +75 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/delphi.rb +144 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/diff.rb +221 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/erb.rb +81 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/go.rb +208 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/groovy.rb +268 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/haml.rb +168 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/html.rb +275 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/java.rb +174 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/java/builtin_types.rb +421 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/java_script.rb +236 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/json.rb +98 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/lua.rb +280 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/php.rb +527 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/python.rb +287 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/raydebug.rb +75 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/ruby.rb +477 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/ruby/patterns.rb +178 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/ruby/string_state.rb +79 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/sass.rb +232 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/scanner.rb +337 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/sql.rb +169 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/taskpaper.rb +36 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/text.rb +26 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/xml.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/scanners/yaml.rb +140 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/styles.rb +15 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/styles/_map.rb +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/styles/alpha.rb +153 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/styles/style.rb +18 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/token_kinds.rb +85 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/tokens.rb +164 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/tokens_proxy.rb +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/coderay-1.1.3/lib/coderay/version.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/.rspec +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/Code-of-Conduct.md +74 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/Contributing.md +118 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/History.md +319 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/License.md +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/Manifest.txt +45 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/README.rdoc +84 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/Rakefile +74 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/autotest/discover.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/bin/htmldiff +35 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/bin/ldiff +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/docs/COPYING.txt +339 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/docs/artistic.txt +127 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/lib/diff-lcs.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/lib/diff/lcs.rb +739 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/lib/diff/lcs/array.rb +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/lib/diff/lcs/backports.rb +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/lib/diff/lcs/block.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/lib/diff/lcs/callbacks.rb +325 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/lib/diff/lcs/change.rb +174 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/lib/diff/lcs/htmldiff.rb +150 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/lib/diff/lcs/hunk.rb +358 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/lib/diff/lcs/internals.rb +304 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/lib/diff/lcs/ldiff.rb +171 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/lib/diff/lcs/string.rb +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/change_spec.rb +89 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/diff_spec.rb +51 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/fixtures/aX +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/fixtures/bXaX +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/fixtures/ds1.csv +50 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/fixtures/ds2.csv +51 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff +4 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff-c +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff-e +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff-f +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/fixtures/ldiff/output.diff-u +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/hunk_spec.rb +83 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/issues_spec.rb +154 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/lcs_spec.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/ldiff_spec.rb +87 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/patch_spec.rb +416 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/sdiff_spec.rb +214 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/spec_helper.rb +375 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/traverse_balanced_spec.rb +310 -0
- data/vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/traverse_sequences_spec.rb +139 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/CHANGELOG.md +380 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/LICENSE.md +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/README.md +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/Rakefile +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/examples/client_spec.rb +84 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/examples/client_test.rb +79 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday.rb +185 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/adapter.rb +105 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/adapter/test.rb +275 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/adapter/typhoeus.rb +15 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/adapter_registry.rb +30 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/autoload.rb +87 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/connection.rb +622 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/dependency_loader.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/encoders/flat_params_encoder.rb +105 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/encoders/nested_params_encoder.rb +176 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/error.rb +152 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/file_part.rb +128 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/logging/formatter.rb +105 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/methods.rb +6 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/middleware.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/middleware_registry.rb +129 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/options.rb +218 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/options/connection_options.rb +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/options/env.rb +181 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/options/proxy_options.rb +32 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/options/request_options.rb +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/options/ssl_options.rb +59 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/param_part.rb +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/parameters.rb +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/rack_builder.rb +249 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/request.rb +156 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/request/authorization.rb +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/request/basic_authentication.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/request/instrumentation.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/request/multipart.rb +106 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/request/retry.rb +239 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/request/token_authentication.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/request/url_encoded.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/response.rb +101 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/response/logger.rb +33 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/response/raise_error.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/utils.rb +117 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/utils/headers.rb +139 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/utils/params_hash.rb +61 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/lib/faraday/version.rb +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/external_adapters/faraday_specs_setup.rb +14 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/adapter/em_http_spec.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/adapter/em_synchrony_spec.rb +18 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/adapter/excon_spec.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/adapter/httpclient_spec.rb +73 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/adapter/net_http_spec.rb +64 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/adapter/patron_spec.rb +18 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/adapter/rack_spec.rb +8 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/adapter/test_spec.rb +345 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/adapter/typhoeus_spec.rb +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/adapter_registry_spec.rb +28 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/adapter_spec.rb +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/composite_read_io_spec.rb +80 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/connection_spec.rb +736 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/error_spec.rb +60 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/middleware_spec.rb +52 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/options/env_spec.rb +70 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/options/options_spec.rb +297 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/options/proxy_options_spec.rb +44 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/options/request_options_spec.rb +19 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/params_encoders/flat_spec.rb +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/params_encoders/nested_spec.rb +142 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/rack_builder_spec.rb +345 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/request/authorization_spec.rb +88 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/request/instrumentation_spec.rb +76 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/request/multipart_spec.rb +302 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/request/retry_spec.rb +242 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/request/url_encoded_spec.rb +83 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/request_spec.rb +120 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/response/logger_spec.rb +220 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/response/middleware_spec.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/response/raise_error_spec.rb +169 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/response_spec.rb +75 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/utils/headers_spec.rb +82 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday/utils_spec.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/faraday_spec.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/spec_helper.rb +132 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/support/disabling_stub.rb +14 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/support/fake_safe_buffer.rb +15 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/support/helper_methods.rb +133 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/support/shared_examples/adapter.rb +105 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/support/shared_examples/params_encoder.rb +18 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/support/shared_examples/request_method.rb +262 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/support/streaming_response_checker.rb +35 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/support/webmock_rack_app.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-em_http-1.0.0/LICENSE.md +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-em_http-1.0.0/README.md +61 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-em_http-1.0.0/lib/faraday/adapter/em_http.rb +289 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-em_http-1.0.0/lib/faraday/adapter/em_http_ssl_patch.rb +62 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-em_http-1.0.0/lib/faraday/em_http.rb +11 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-em_http-1.0.0/lib/faraday/em_http/version.rb +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-em_synchrony-1.0.0/LICENSE.md +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-em_synchrony-1.0.0/README.md +65 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-em_synchrony-1.0.0/lib/faraday/adapter/em_synchrony.rb +153 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-em_synchrony-1.0.0/lib/faraday/adapter/em_synchrony/parallel_manager.rb +69 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-em_synchrony-1.0.0/lib/faraday/em_synchrony.rb +12 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-em_synchrony-1.0.0/lib/faraday/em_synchrony/version.rb +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-excon-1.1.0/LICENSE.md +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-excon-1.1.0/README.md +61 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-excon-1.1.0/lib/faraday/adapter/excon.rb +124 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-excon-1.1.0/lib/faraday/excon.rb +11 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-excon-1.1.0/lib/faraday/excon/version.rb +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-httpclient-1.0.1/LICENSE.md +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-httpclient-1.0.1/README.md +62 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-httpclient-1.0.1/lib/faraday/adapter/httpclient.rb +154 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-httpclient-1.0.1/lib/faraday/httpclient.rb +11 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-httpclient-1.0.1/lib/faraday/httpclient/version.rb +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-net_http-1.0.1/LICENSE.md +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-net_http-1.0.1/README.md +57 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-net_http-1.0.1/lib/faraday/adapter/net_http.rb +213 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-net_http-1.0.1/lib/faraday/net_http.rb +10 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-net_http-1.0.1/lib/faraday/net_http/version.rb +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-net_http_persistent-1.2.0/LICENSE.md +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-net_http_persistent-1.2.0/README.md +73 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-net_http_persistent-1.2.0/lib/faraday/adapter/net_http_persistent.rb +110 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-net_http_persistent-1.2.0/lib/faraday/net_http_persistent.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-net_http_persistent-1.2.0/lib/faraday/net_http_persistent/version.rb +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-patron-1.0.0/LICENSE.md +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-patron-1.0.0/README.md +62 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-patron-1.0.0/lib/faraday/adapter/patron.rb +132 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-patron-1.0.0/lib/faraday/patron.rb +11 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-patron-1.0.0/lib/faraday/patron/version.rb +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-rack-1.0.0/LICENSE.md +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-rack-1.0.0/README.md +61 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-rack-1.0.0/lib/faraday/adapter/rack.rb +75 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-rack-1.0.0/lib/faraday/rack.rb +11 -0
- data/vendor/bundle/ruby/2.6.0/gems/faraday-rack-1.0.0/lib/faraday/rack/version.rb +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/LICENSE.txt +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/.sitearchdir.-.jaro_winkler.time +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +266 -0
- data/vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/adj_matrix.c +97 -0
- data/vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/adj_matrix.h +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/adj_matrix.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/codepoints.c +61 -0
- data/vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/codepoints.h +13 -0
- data/vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/codepoints.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/extconf.rb +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/jaro.c +121 -0
- data/vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/jaro.h +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/jaro.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/jaro_winkler.c +72 -0
- data/vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/jaro_winkler.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/jaro_winkler_ext.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler.rb +15 -0
- data/vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/adjusting_table.rb +14 -0
- data/vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/jaro_winkler_ext.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/jaro_winkler_pure.rb +135 -0
- data/vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/version.rb +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/method_source-1.0.0/.circleci/config.yml +139 -0
- data/vendor/bundle/ruby/2.6.0/gems/method_source-1.0.0/.gemtest +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/method_source-1.0.0/.yardopts +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/method_source-1.0.0/CHANGELOG.md +10 -0
- data/vendor/bundle/ruby/2.6.0/gems/method_source-1.0.0/Gemfile +2 -0
- data/vendor/bundle/ruby/2.6.0/gems/method_source-1.0.0/LICENSE +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/method_source-1.0.0/README.markdown +93 -0
- data/vendor/bundle/ruby/2.6.0/gems/method_source-1.0.0/Rakefile +81 -0
- data/vendor/bundle/ruby/2.6.0/gems/method_source-1.0.0/lib/method_source.rb +141 -0
- data/vendor/bundle/ruby/2.6.0/gems/method_source-1.0.0/lib/method_source/code_helpers.rb +154 -0
- data/vendor/bundle/ruby/2.6.0/gems/method_source-1.0.0/lib/method_source/source_location.rb +138 -0
- data/vendor/bundle/ruby/2.6.0/gems/method_source-1.0.0/lib/method_source/version.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/method_source-1.0.0/method_source.gemspec +33 -0
- data/vendor/bundle/ruby/2.6.0/gems/method_source-1.0.0/spec/method_source/code_helpers_spec.rb +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/method_source-1.0.0/spec/method_source_spec.rb +143 -0
- data/vendor/bundle/ruby/2.6.0/gems/method_source-1.0.0/spec/spec_helper.rb +101 -0
- data/vendor/bundle/ruby/2.6.0/gems/multipart-post-2.1.1/.gitignore +6 -0
- data/vendor/bundle/ruby/2.6.0/gems/multipart-post-2.1.1/.rspec +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/multipart-post-2.1.1/.travis.yml +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/multipart-post-2.1.1/.yardopts +6 -0
- data/vendor/bundle/ruby/2.6.0/gems/multipart-post-2.1.1/Gemfile +6 -0
- data/vendor/bundle/ruby/2.6.0/gems/multipart-post-2.1.1/History.txt +64 -0
- data/vendor/bundle/ruby/2.6.0/gems/multipart-post-2.1.1/LICENSE +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/multipart-post-2.1.1/Manifest.txt +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/multipart-post-2.1.1/README.md +127 -0
- data/vendor/bundle/ruby/2.6.0/gems/multipart-post-2.1.1/Rakefile +6 -0
- data/vendor/bundle/ruby/2.6.0/gems/multipart-post-2.1.1/lib/composite_io.rb +108 -0
- data/vendor/bundle/ruby/2.6.0/gems/multipart-post-2.1.1/lib/multipart_post.rb +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/multipart-post-2.1.1/lib/multipartable.rb +48 -0
- data/vendor/bundle/ruby/2.6.0/gems/multipart-post-2.1.1/lib/net/http/post/multipart.rb +28 -0
- data/vendor/bundle/ruby/2.6.0/gems/multipart-post-2.1.1/lib/parts.rb +126 -0
- data/vendor/bundle/ruby/2.6.0/gems/multipart-post-2.1.1/multipart-post.gemspec +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/multipart-post-2.1.1/spec/composite_io_spec.rb +138 -0
- data/vendor/bundle/ruby/2.6.0/gems/multipart-post-2.1.1/spec/multibyte.txt +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/multipart-post-2.1.1/spec/net/http/post/multipart_spec.rb +123 -0
- data/vendor/bundle/ruby/2.6.0/gems/multipart-post-2.1.1/spec/parts_spec.rb +102 -0
- data/vendor/bundle/ruby/2.6.0/gems/multipart-post-2.1.1/spec/spec_helper.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/parallel-1.20.1/MIT-LICENSE.txt +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/parallel-1.20.1/lib/parallel.rb +523 -0
- data/vendor/bundle/ruby/2.6.0/gems/parallel-1.20.1/lib/parallel/processor_count.rb +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/parallel-1.20.1/lib/parallel/version.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/LICENSE.txt +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/bin/ruby-parse +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/bin/ruby-rewrite +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/gauntlet_parser.rb +123 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser.rb +85 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/all.rb +14 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/ast/node.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/ast/processor.rb +288 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/base.rb +291 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/builders/default.rb +2224 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/clobbering_error.rb +13 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/color.rb +32 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/context.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/current.rb +110 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/current_arg_stack.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/deprecation.rb +13 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/diagnostic.rb +163 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/diagnostic/engine.rb +104 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/lexer.rb +23840 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/lexer/dedenter.rb +82 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/lexer/explanation.rb +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/lexer/literal.rb +269 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/lexer/stack_state.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/macruby.rb +6149 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/max_numparam_stack.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/messages.rb +114 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/meta.rb +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/rewriter.rb +105 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/ruby18.rb +5667 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/ruby19.rb +6092 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/ruby20.rb +6527 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/ruby21.rb +6578 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/ruby22.rb +6613 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/ruby23.rb +6624 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/ruby24.rb +6694 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/ruby25.rb +6662 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/ruby26.rb +6676 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/ruby27.rb +7862 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/ruby28.rb +8047 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/ruby30.rb +8060 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/ruby31.rb +8226 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/rubymotion.rb +6086 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/runner.rb +282 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/runner/ruby_parse.rb +157 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/runner/ruby_rewrite.rb +101 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/buffer.rb +355 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/comment.rb +134 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/comment/associator.rb +233 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/map.rb +186 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/map/collection.rb +18 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/map/condition.rb +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/map/constant.rb +32 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/map/definition.rb +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/map/for.rb +19 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/map/heredoc.rb +19 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/map/index.rb +33 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/map/keyword.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/map/method_definition.rb +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/map/objc_kwarg.rb +19 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/map/operator.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/map/rescue_body.rb +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/map/send.rb +36 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/map/ternary.rb +18 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/map/variable.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/range.rb +326 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/rewriter.rb +513 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/rewriter/action.rb +44 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/tree_rewriter.rb +431 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/source/tree_rewriter/action.rb +242 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/static_environment.rb +60 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/syntax_error.rb +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/tree_rewriter.rb +133 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/variables_stack.rb +36 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/lib/parser/version.rb +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/parser-3.0.2.0/parser.gemspec +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/CHANGELOG.md +1076 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/LICENSE +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/README.md +452 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/bin/pry +13 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry.rb +146 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/basic_object.rb +10 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/block_command.rb +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/class_command.rb +194 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/cli.rb +227 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/code.rb +365 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/code/code_file.rb +114 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/code/code_range.rb +73 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/code/loc.rb +105 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/code_object.rb +197 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/color_printer.rb +66 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/command.rb +520 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/command_set.rb +418 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/command_state.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/amend_line.rb +103 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/bang.rb +24 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/bang_pry.rb +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/cat.rb +70 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/cat/abstract_formatter.rb +32 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/cat/exception_formatter.rb +90 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/cat/file_formatter.rb +77 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/cat/input_expression_formatter.rb +48 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/cd.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/change_inspector.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/change_prompt.rb +51 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/clear_screen.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/code_collector.rb +182 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/disable_pry.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/easter_eggs.rb +101 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/edit.rb +223 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/edit/exception_patcher.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/edit/file_and_line_locator.rb +47 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/exit.rb +47 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/exit_all.rb +33 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/exit_program.rb +27 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/find_method.rb +199 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/fix_indent.rb +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/help.rb +171 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/hist.rb +182 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/import_set.rb +27 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/jump_to.rb +33 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/list_inspectors.rb +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/ls.rb +135 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/ls/constants.rb +75 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/ls/formatter.rb +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/ls/globals.rb +50 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/ls/grep.rb +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/ls/instance_vars.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/ls/interrogatable.rb +24 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/ls/jruby_hacks.rb +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/ls/local_names.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/ls/local_vars.rb +47 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/ls/ls_entity.rb +65 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/ls/methods.rb +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/ls/methods_helper.rb +50 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/ls/self_methods.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/nesting.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/play.rb +113 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/pry_backtrace.rb +30 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/pry_version.rb +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/raise_up.rb +38 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/reload_code.rb +74 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/reset.rb +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/ri.rb +75 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/save_file.rb +63 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/shell_command.rb +75 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/shell_mode.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/show_doc.rb +94 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/show_info.rb +234 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/show_input.rb +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/show_source.rb +117 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/stat.rb +44 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/switch_to.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/toggle_color.rb +28 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/watch_expression.rb +110 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/watch_expression/expression.rb +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/whereami.rb +205 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/commands/wtf.rb +95 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/config.rb +321 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/config/attributable.rb +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/config/lazy_value.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/config/memoized_value.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/config/value.rb +24 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/control_d_handler.rb +28 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/core_extensions.rb +144 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/editor.rb +155 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/env.rb +18 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/exception_handler.rb +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/exceptions.rb +73 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/forwardable.rb +27 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/helpers.rb +8 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/helpers/base_helpers.rb +71 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/helpers/command_helpers.rb +146 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/helpers/documentation_helpers.rb +83 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/helpers/options_helpers.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/helpers/platform.rb +60 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/helpers/table.rb +121 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/helpers/text.rb +118 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/history.rb +153 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/hooks.rb +180 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/indent.rb +412 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/input_completer.rb +283 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/input_lock.rb +129 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/inspector.rb +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/last_exception.rb +61 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/method.rb +599 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/method/disowned.rb +67 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/method/patcher.rb +131 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/method/weird_method_locator.rb +222 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/object_path.rb +91 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/output.rb +136 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/pager.rb +249 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/plugins.rb +139 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/prompt.rb +214 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/pry_class.rb +388 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/pry_instance.rb +701 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/repl.rb +257 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/repl_file_loader.rb +79 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/ring.rb +89 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/slop.rb +672 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/slop/LICENSE +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/slop/commands.rb +190 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/slop/option.rb +210 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/syntax_highlighter.rb +26 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/system_command_handler.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/testable.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/testable/evalable.rb +24 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/testable/mockable.rb +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/testable/pry_tester.rb +88 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/testable/utility.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/testable/variables.rb +52 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/version.rb +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/warning.rb +27 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/wrapped_module.rb +387 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-0.13.1/lib/pry/wrapped_module/candidate.rb +138 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/CHANGELOG.md +214 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/LICENSE +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/README.md +192 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/byebug/processors/pry_processor.rb +166 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry-byebug.rb +4 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry-byebug/base.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry-byebug/cli.rb +6 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry-byebug/commands.rb +12 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry-byebug/commands/backtrace.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry-byebug/commands/breakpoint.rb +137 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry-byebug/commands/continue.rb +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry-byebug/commands/down.rb +35 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry-byebug/commands/exit_all.rb +18 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry-byebug/commands/finish.rb +28 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry-byebug/commands/frame.rb +35 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry-byebug/commands/next.rb +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry-byebug/commands/step.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry-byebug/commands/up.rb +35 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry-byebug/control_d_handler.rb +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/breakpoints.rb +82 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/location.rb +24 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/multiline.rb +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry-byebug/helpers/navigation.rb +19 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry-byebug/pry_ext.rb +18 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry-byebug/pry_remote_ext.rb +44 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry-byebug/version.rb +8 -0
- data/vendor/bundle/ruby/2.6.0/gems/pry-byebug-3.9.0/lib/pry/byebug/breakpoints.rb +167 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/.gitignore +16 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/Gemfile +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/LICENSE +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/Mavenfile +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/README.md +72 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/Rakefile +41 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/bin/console +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/bin/setup +6 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/.sitearchdir.time +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/Makefile +273 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/api.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/depend +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/dumper.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/emitter.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/extconf.rb +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/loader.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/parser.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/psych.c +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/psych.h +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/psych.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/psych.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/psych_emitter.c +555 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/psych_emitter.h +8 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/psych_emitter.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/psych_parser.c +579 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/psych_parser.h +6 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/psych_parser.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/psych_to_ruby.c +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/psych_to_ruby.h +8 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/psych_to_ruby.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/psych_yaml_tree.c +12 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/psych_yaml_tree.h +8 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/psych_yaml_tree.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/reader.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/scanner.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/writer.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/yaml/LICENSE +19 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/yaml/api.c +1393 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/yaml/config.h +80 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/yaml/dumper.c +394 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/yaml/emitter.c +2358 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/yaml/loader.c +544 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/yaml/parser.c +1375 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/yaml/reader.c +469 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/yaml/scanner.c +3598 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/yaml/writer.c +141 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/yaml/yaml.h +1985 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/ext/psych/yaml/yaml_private.h +688 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych.rb +741 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/class_loader.rb +104 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/coder.rb +95 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/core_ext.rb +19 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/exception.rb +14 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/handler.rb +255 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/handlers/document_stream.rb +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/handlers/recorder.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/json/ruby_events.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/json/stream.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/json/tree_builder.rb +13 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/json/yaml_events.rb +30 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/nodes.rb +78 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/nodes/alias.rb +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/nodes/document.rb +63 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/nodes/mapping.rb +59 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/nodes/node.rb +75 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/nodes/scalar.rb +70 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/nodes/sequence.rb +84 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/nodes/stream.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/omap.rb +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/parser.rb +52 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/scalar_scanner.rb +136 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/set.rb +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/stream.rb +38 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/streaming.rb +28 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/syntax_error.rb +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/tree_builder.rb +137 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/versions.rb +10 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/visitors.rb +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/visitors/depth_first.rb +27 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/visitors/emitter.rb +52 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/visitors/json_tree.rb +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/visitors/to_ruby.rb +434 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/visitors/visitor.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/visitors/yaml_tree.rb +585 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/lib/psych/y.rb +10 -0
- data/vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/psych.gemspec +67 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/.gitignore +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/.rubocop.yml +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/.rubocop_todo.yml +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/.travis.yml +24 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/Changelog.md +93 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/Gemfile +28 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/Guardfile +8 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/LICENSE +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/README.markdown +224 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/Rakefile +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/appveyor.yml +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow.rb +11 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow/color.rb +143 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow/ext/string.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow/global.rb +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow/null_presenter.rb +93 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow/presenter.rb +135 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow/refinement.rb +12 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow/string_utils.rb +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow/version.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow/wrapper.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/lib/rainbow/x11_color_names.rb +151 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/rainbow.gemspec +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/spec/integration/instance_spec.rb +33 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/spec/integration/rainbow_spec.rb +157 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/spec/integration/refinement_spec.rb +36 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/spec/integration/string_spec.rb +81 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/spec/integration/uncolor_spec.rb +14 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/spec/spec_helper.rb +10 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/spec/support/presenter_shared_examples.rb +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/spec/unit/color_spec.rb +296 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/spec/unit/null_presenter_spec.rb +110 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/spec/unit/presenter_spec.rb +199 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/spec/unit/string_utils_spec.rb +94 -0
- data/vendor/bundle/ruby/2.6.0/gems/rainbow-3.0.0/spec/unit/wrapper_spec.rb +32 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/History.rdoc +2403 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/README.rdoc +155 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/doc/command_line_usage.rdoc +158 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/doc/example/Rakefile1 +38 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/doc/example/Rakefile2 +35 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/doc/example/a.c +6 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/doc/example/b.c +6 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/doc/example/main.c +11 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/doc/glossary.rdoc +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/doc/jamis.rb +592 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/doc/proto_rake.rdoc +127 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/doc/rake.1 +156 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/doc/rakefile.rdoc +622 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/doc/rational.rdoc +151 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/exe/rake +27 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake.rb +71 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/application.rb +831 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/backtrace.rb +24 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/clean.rb +78 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/cloneable.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/cpu_counter.rb +107 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/default_loader.rb +15 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/dsl_definition.rb +195 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/early_time.rb +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/ext/core.rb +26 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/ext/string.rb +176 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/file_creation_task.rb +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/file_list.rb +435 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/file_task.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/file_utils.rb +134 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/file_utils_ext.rb +134 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/invocation_chain.rb +57 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/invocation_exception_mixin.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/late_time.rb +18 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/linked_list.rb +112 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/loaders/makefile.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/multi_task.rb +14 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/name_space.rb +38 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/packagetask.rb +222 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/phony.rb +16 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/private_reader.rb +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/promise.rb +100 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/pseudo_status.rb +30 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/rake_module.rb +67 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb +27 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/rule_recursion_overflow_error.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/scope.rb +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/task.rb +434 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/task_argument_error.rb +8 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/task_arguments.rb +109 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/task_manager.rb +331 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/tasklib.rb +12 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/testtask.rb +189 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/thread_history_display.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/thread_pool.rb +163 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/trace_output.rb +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/version.rb +10 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/lib/rake/win32.rb +51 -0
- data/vendor/bundle/ruby/2.6.0/gems/rake-13.0.6/rake.gemspec +100 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-3.10.0/LICENSE.md +27 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-3.10.0/README.md +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-3.10.0/lib/rspec.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-3.10.0/lib/rspec/version.rb +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/.document +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/.yardopts +8 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/Changelog.md +2327 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/LICENSE.md +26 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/README.md +384 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/exe/rspec +4 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/autorun.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core.rb +186 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/backtrace_formatter.rb +65 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/bisect/coordinator.rb +62 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/bisect/example_minimizer.rb +173 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/bisect/fork_runner.rb +138 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/bisect/server.rb +61 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/bisect/shell_command.rb +126 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/bisect/shell_runner.rb +73 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/bisect/utilities.rb +58 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/configuration.rb +2372 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/configuration_options.rb +233 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/did_you_mean.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/drb.rb +120 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/dsl.rb +98 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/example.rb +663 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/example_group.rb +901 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/example_status_persister.rb +235 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/filter_manager.rb +231 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/flat_map.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters.rb +273 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters/base_bisect_formatter.rb +45 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters/base_formatter.rb +70 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters/base_text_formatter.rb +75 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters/bisect_drb_formatter.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters/bisect_progress_formatter.rb +157 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters/console_codes.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters/deprecation_formatter.rb +223 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters/documentation_formatter.rb +102 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters/exception_presenter.rb +521 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters/failure_list_formatter.rb +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters/fallback_message_formatter.rb +28 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters/helpers.rb +110 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters/html_formatter.rb +153 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters/html_printer.rb +414 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters/html_snippet_extractor.rb +120 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters/json_formatter.rb +102 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters/profile_formatter.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters/progress_formatter.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters/protocol.rb +182 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters/snippet_extractor.rb +134 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/formatters/syntax_highlighter.rb +91 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/hooks.rb +646 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/invocations.rb +87 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/memoized_helpers.rb +554 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/metadata.rb +498 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/metadata_filter.rb +255 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/minitest_assertions_adapter.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/mocking_adapters/flexmock.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/mocking_adapters/mocha.rb +57 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/mocking_adapters/null.rb +14 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/mocking_adapters/rr.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/mocking_adapters/rspec.rb +32 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/notifications.rb +521 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/option_parser.rb +324 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/ordering.rb +158 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/output_wrapper.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/pending.rb +165 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/profiler.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/project_initializer.rb +48 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/project_initializer/.rspec +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/project_initializer/spec/spec_helper.rb +100 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/rake_task.rb +188 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/reporter.rb +265 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/ruby_project.rb +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/runner.rb +212 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/sandbox.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/set.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/shared_context.rb +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/shared_example_group.rb +271 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/shell_escape.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/test_unit_assertions_adapter.rb +30 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/version.rb +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/warnings.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-core-3.10.1/lib/rspec/core/world.rb +277 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/.document +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/.yardopts +6 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/Changelog.md +1240 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/LICENSE.md +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/README.md +320 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/expectations.rb +82 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/expectations/block_snippet_extractor.rb +253 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/expectations/configuration.rb +230 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/expectations/expectation_target.rb +127 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/expectations/fail_with.rb +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/expectations/failure_aggregator.rb +212 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/expectations/handler.rb +182 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/expectations/minitest_integration.rb +58 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/expectations/syntax.rb +132 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/expectations/version.rb +8 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers.rb +1041 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/aliased_matcher.rb +116 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in.rb +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/all.rb +86 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/base_matcher.rb +193 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/be.rb +191 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/be_between.rb +77 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/be_instance_of.rb +26 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/be_kind_of.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/be_within.rb +72 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/change.rb +428 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/compound.rb +276 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/contain_exactly.rb +302 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/count_expectation.rb +169 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/cover.rb +24 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/eq.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/eql.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/equal.rb +81 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/exist.rb +90 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/has.rb +167 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/have_attributes.rb +114 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/include.rb +206 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/match.rb +106 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/operators.rb +128 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/output.rb +200 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/raise_error.rb +259 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/respond_to.rb +200 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/satisfy.rb +60 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/start_or_end_with.rb +94 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/throw_symbol.rb +132 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/built_in/yield.rb +355 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/composable.rb +171 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/dsl.rb +540 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/english_phrasing.rb +58 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +82 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/fail_matchers.rb +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/generated_descriptions.rb +41 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/matcher_delegator.rb +35 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-expectations-3.10.1/lib/rspec/matchers/matcher_protocol.rb +99 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/.document +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/.yardopts +6 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/Changelog.md +1167 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/LICENSE.md +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/README.md +463 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks.rb +133 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance.rb +11 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance/chain.rb +111 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance/error_generator.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance/expect_chain_chain.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance/expectation_chain.rb +50 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance/message_chains.rb +83 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance/proxy.rb +116 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance/recorder.rb +295 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance/stub_chain.rb +51 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/any_instance/stub_chain_chain.rb +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/argument_list_matcher.rb +100 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/argument_matchers.rb +322 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/configuration.rb +212 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/error_generator.rb +369 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/example_methods.rb +434 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/instance_method_stasher.rb +146 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/marshal_extension.rb +41 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/matchers/expectation_customization.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/matchers/have_received.rb +134 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/matchers/receive.rb +132 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/matchers/receive_message_chain.rb +82 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/matchers/receive_messages.rb +77 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/message_chain.rb +87 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/message_expectation.rb +751 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/method_double.rb +288 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/method_reference.rb +202 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/minitest_integration.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/mutate_const.rb +339 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/object_reference.rb +149 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/order_group.rb +81 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/proxy.rb +519 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/space.rb +238 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/standalone.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/syntax.rb +325 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/targets.rb +124 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/test_double.rb +171 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/verifying_double.rb +129 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/verifying_message_expectation.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/verifying_proxy.rb +220 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-mocks-3.10.2/lib/rspec/mocks/version.rb +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/Changelog.md +332 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/LICENSE.md +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/README.md +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support.rb +154 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/caller_filter.rb +83 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/comparable_version.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/differ.rb +215 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/directory_maker.rb +63 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/encoded_string.rb +161 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/fuzzy_matcher.rb +48 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/hunk_generator.rb +47 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/matcher_definition.rb +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/method_signature_verifier.rb +438 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/mutex.rb +73 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/object_formatter.rb +275 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/recursive_const_methods.rb +76 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/reentrant_mutex.rb +61 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/ruby_features.rb +191 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/source.rb +85 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/source/location.rb +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/source/node.rb +110 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/source/token.rb +87 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/spec.rb +82 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/spec/deprecation_helpers.rb +48 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/spec/diff_helpers.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/spec/formatting_support.rb +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/spec/in_sub_process.rb +67 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/spec/library_wide_checks.rb +150 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/spec/shell_out.rb +105 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/spec/stderr_splitter.rb +75 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/spec/string_matcher.rb +45 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/spec/with_isolated_directory.rb +13 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/spec/with_isolated_stderr.rb +13 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/version.rb +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/warnings.rb +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/rspec-support-3.10.2/lib/rspec/support/with_keywords_when_needed.rb +33 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/LICENSE.txt +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/README.md +221 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/assets/logo.png +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/assets/output.html.erb +261 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/bin/console +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/bin/setup +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/config/default.yml +4408 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/exe/rubocop +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop.rb +654 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/builder.rb +75 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node.rb +642 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/and_node.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/args_node.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/array_node.rb +57 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/block_node.rb +115 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/break_node.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/case_node.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/def_node.rb +71 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/defined_node.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/ensure_node.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/for_node.rb +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/hash_node.rb +109 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/if_node.rb +175 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/keyword_splat_node.rb +45 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/mixin/basic_literal_node.rb +16 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/mixin/binary_operator_node.rb +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/mixin/collection_node.rb +15 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/mixin/conditional_node.rb +45 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/mixin/hash_element_node.rb +125 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb +251 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb +114 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/mixin/modifier_node.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/mixin/parameterized_node.rb +61 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/mixin/predicate_operator_node.rb +35 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/or_node.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/pair_node.rb +63 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/range_node.rb +11 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/regexp_node.rb +35 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/resbody_node.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/retry_node.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/send_node.rb +13 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/str_node.rb +16 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/super_node.rb +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/symbol_node.rb +12 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/until_node.rb +35 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/when_node.rb +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/while_node.rb +35 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/node/yield_node.rb +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/sexp.rb +16 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/ast/traversal.rb +183 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cached_data.rb +58 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cli.rb +307 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/comment_config.rb +200 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/config.rb +716 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/config_loader.rb +214 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/config_loader_resolver.rb +198 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/config_store.rb +48 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/autocorrect_logic.rb +33 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/badge.rb +73 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/bundler/duplicated_gem.rb +73 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/bundler/gem_comment.rb +64 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/bundler/insecure_protocol_source.rb +69 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/bundler/ordered_gems.rb +73 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/commissioner.rb +119 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/cop.rb +244 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/corrector.rb +172 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/correctors/alignment_corrector.rb +120 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/correctors/condition_corrector.rb +28 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/correctors/each_to_for_corrector.rb +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/correctors/empty_line_corrector.rb +26 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/correctors/for_to_each_corrector.rb +73 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb +136 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/correctors/line_break_corrector.rb +61 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/correctors/ordered_gem_corrector.rb +44 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/correctors/parentheses_corrector.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/correctors/percent_literal_corrector.rb +117 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/correctors/punctuation_corrector.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/correctors/space_corrector.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/correctors/string_literal_corrector.rb +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/correctors/unused_arg_corrector.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/force.rb +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/gemspec/duplicated_assignment.rb +104 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/gemspec/ordered_dependencies.rb +107 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/gemspec/required_ruby_version.rb +85 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/generator.rb +217 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/generator/configuration_injector.rb +61 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/generator/require_file_injector.rb +78 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/ignored_node.rb +38 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/internal_affairs.rb +8 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/internal_affairs/node_destructuring.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/internal_affairs/node_type_predicate.rb +44 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/internal_affairs/offense_location_keyword.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/internal_affairs/redundant_location_argument.rb +61 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/internal_affairs/redundant_message_argument.rb +73 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/internal_affairs/useless_message_assertion.rb +52 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/access_modifier_indentation.rb +109 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/align_array.rb +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/align_hash.rb +315 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/align_parameters.rb +94 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/block_alignment.rb +244 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/block_end_newline.rb +63 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/case_indentation.rb +161 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/class_structure.rb +340 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/closing_heredoc_indentation.rb +126 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb +203 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/comment_indentation.rb +144 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/condition_position.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/def_end_alignment.rb +74 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/dot_position.rb +105 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/else_alignment.rb +134 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/empty_comment.rb +160 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb +142 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/empty_line_after_magic_comment.rb +64 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/empty_line_between_defs.rb +151 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/empty_lines.rb +76 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb +146 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/empty_lines_around_arguments.rb +99 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/empty_lines_around_begin_body.rb +45 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/empty_lines_around_block_body.rb +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/empty_lines_around_class_body.rb +91 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb +136 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/empty_lines_around_method_body.rb +45 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/empty_lines_around_module_body.rb +63 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/end_alignment.rb +189 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/end_of_line.rb +87 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/extra_spacing.rb +246 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/first_array_element_line_break.rb +45 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/first_hash_element_line_break.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/first_method_argument_line_break.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/first_method_parameter_line_break.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/first_parameter_indentation.rb +244 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/indent_array.rb +167 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/indent_assignment.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/indent_hash.rb +184 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/indent_heredoc.rb +294 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/indentation_consistency.rb +201 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/indentation_width.rb +364 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/initial_indentation.rb +59 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/leading_blank_lines.rb +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/leading_comment_space.rb +60 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/multiline_array_brace_layout.rb +118 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/multiline_assignment_layout.rb +95 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/multiline_block_layout.rb +124 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb +122 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb +134 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/multiline_method_call_indentation.rb +222 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb +131 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/multiline_operation_indentation.rb +114 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/rescue_ensure_alignment.rb +175 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_after_colon.rb +47 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_after_comma.rb +35 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_after_method_name.rb +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_after_not.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_after_semicolon.rb +32 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_around_block_parameters.rb +165 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb +92 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_around_keyword.rb +232 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_around_operators.rb +163 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_before_block_braces.rb +119 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_before_comma.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_before_comment.rb +35 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_before_first_arg.rb +67 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_before_semicolon.rb +27 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_in_lambda_literal.rb +94 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb +228 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_inside_block_braces.rb +229 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb +207 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_inside_parens.rb +113 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb +65 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_inside_range_literal.rb +63 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_inside_reference_brackets.rb +151 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/space_inside_string_interpolation.rb +81 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/tab.rb +87 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/trailing_blank_lines.rb +113 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/layout/trailing_whitespace.rb +61 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/ambiguous_block_association.rb +62 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/ambiguous_operator.rb +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/assignment_in_condition.rb +84 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/big_decimal_new.rb +44 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/boolean_symbol.rb +38 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/circular_argument_reference.rb +72 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/debugger.rb +79 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/deprecated_class_methods.rb +111 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb +81 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/duplicate_case_condition.rb +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/duplicate_methods.rb +241 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/duplicated_key.rb +38 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/each_with_object_argument.rb +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/else_layout.rb +66 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/empty_ensure.rb +60 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/empty_expression.rb +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/empty_interpolation.rb +36 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/empty_when.rb +38 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/end_in_method.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/ensure_return.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/erb_new_arguments.rb +107 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/flip_flop.rb +32 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/float_out_of_range.rb +35 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/format_parameter_mismatch.rb +190 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/handle_exceptions.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/implicit_string_concatenation.rb +101 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/ineffective_access_modifier.rb +127 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/inherit_exception.rb +80 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/interpolation_check.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/literal_as_condition.rb +138 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/literal_in_interpolation.rb +82 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/loop.rb +63 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/missing_cop_enable_directive.rb +84 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/multiple_compare.rb +48 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/nested_method_definition.rb +104 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/nested_percent_literal.rb +51 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/next_without_accumulator.rb +50 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb +85 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/number_conversion.rb +59 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/ordered_magic_comments.rb +86 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb +64 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/percent_string_array.rb +73 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/percent_symbol_array.rb +69 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/rand_one.rb +45 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/redundant_with_index.rb +82 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/redundant_with_object.rb +83 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/regexp_as_condition.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/require_parentheses.rb +66 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/rescue_exception.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/rescue_type.rb +94 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/return_in_void_context.rb +74 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/safe_navigation_chain.rb +69 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/safe_navigation_consistency.rb +94 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/safe_navigation_with_empty.rb +38 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/script_permission.rb +70 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/shadowed_argument.rb +182 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/shadowed_exception.rb +178 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/string_conversion_in_interpolation.rb +59 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/syntax.rb +59 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/to_json.rb +38 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb +62 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/unified_integer.rb +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/unneeded_cop_disable_directive.rb +263 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/unneeded_cop_enable_directive.rb +116 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/unneeded_require_statement.rb +50 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/unneeded_splat_expansion.rb +167 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/unreachable_code.rb +99 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/unused_block_argument.rb +149 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/unused_method_argument.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/uri_escape_unescape.rb +76 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/uri_regexp.rb +73 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/useless_access_modifier.rb +240 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/useless_assignment.rb +133 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/useless_comparison.rb +28 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/useless_else_without_rescue.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/useless_setter_call.rb +165 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/lint/void.rb +170 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/message_annotator.rb +119 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/metrics/abc_size.rb +24 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/metrics/block_length.rb +50 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/metrics/block_nesting.rb +65 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/metrics/class_length.rb +36 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/metrics/cyclomatic_complexity.rb +32 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/metrics/line_length.rb +204 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/metrics/method_length.rb +36 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/metrics/module_length.rb +36 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/metrics/parameter_lists.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/metrics/perceived_complexity.rb +62 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb +67 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/alignment.rb +74 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/annotation_comment.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/array_hash_indentation.rb +85 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/array_min_size.rb +59 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/array_syntax.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/check_assignment.rb +44 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/classish_length.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/code_length.rb +38 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/configurable_enforced_style.rb +98 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/configurable_formatting.rb +47 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/configurable_max.rb +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/configurable_naming.rb +16 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/configurable_numbering.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/def_node.rb +33 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/documentation_comment.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/duplication.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/empty_lines_around_body.rb +172 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/empty_parameter.rb +24 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/end_keyword_alignment.rb +67 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/enforce_superclass.rb +30 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/first_element_line_break.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/frozen_string_literal.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/hash_alignment.rb +143 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/heredoc.rb +32 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/ignored_methods.rb +19 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/ignored_pattern.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/integer_node.rb +14 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/match_range.rb +26 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/method_complexity.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/method_preference.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/min_body_length.rb +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/multiline_expression_indentation.rb +255 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb +141 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/negative_conditional.rb +32 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/nil_methods.rb +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/on_normal_if_unless.rb +14 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/ordered_gem_node.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/parentheses.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/parser_diagnostic.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/percent_array.rb +52 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/percent_literal.rb +38 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/preceding_following_alignment.rb +94 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/preferred_delimiters.rb +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/range_help.rb +117 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/rescue_node.rb +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/safe_assignment.rb +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/safe_mode.rb +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/space_after_punctuation.rb +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/space_before_punctuation.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/statement_modifier.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/string_help.rb +35 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/string_literals_help.rb +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/surrounding_space.rb +144 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/target_rails_version.rb +16 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/target_ruby_version.rb +16 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/too_many_lines.rb +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/trailing_body.rb +26 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/trailing_comma.rb +216 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/uncommunicative_name.rb +106 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/mixin/unused_argument.rb +33 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/naming/accessor_method_name.rb +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/naming/ascii_identifiers.rb +72 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/naming/binary_operator_parameter_name.rb +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/naming/class_and_module_camel_case.rb +33 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/naming/constant_name.rb +81 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/naming/file_name.rb +205 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/naming/heredoc_delimiter_case.rb +62 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/naming/memoized_instance_variable_name.rb +171 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/naming/method_name.rb +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/naming/predicate_name.rb +108 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/naming/uncommunicative_block_param_name.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/naming/uncommunicative_method_param_name.rb +58 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/naming/variable_name.rb +51 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/naming/variable_number.rb +61 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/offense.rb +194 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/caller.rb +69 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/case_when_splat.rb +177 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/casecmp.rb +108 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/chain_array_allocation.rb +78 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/compare_with_block.rb +122 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/count.rb +102 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/detect.rb +110 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/double_start_end_with.rb +94 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/end_with.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/fixed_size.rb +97 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/flat_map.rb +78 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/inefficient_hash_search.rb +99 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/lstrip_rstrip.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/open_struct.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/range_include.rb +50 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/redundant_block_call.rb +93 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/redundant_match.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/redundant_merge.rb +183 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/redundant_sort_by.rb +50 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/regexp_match.rb +265 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/reverse_each.rb +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/sample.rb +145 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/size.rb +77 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/start_with.rb +59 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/string_replacement.rb +173 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/times_map.rb +71 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/unfreeze_string.rb +50 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/unneeded_sort.rb +165 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/performance/uri_default_parser.rb +47 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/action_filter.rb +117 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/active_record_aliases.rb +48 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/active_support_aliases.rb +69 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/application_job.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/application_record.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/assert_not.rb +44 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/belongs_to.rb +120 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/blank.rb +158 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/bulk_change_table.rb +289 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/create_table_with_timestamps.rb +91 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/date.rb +156 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/delegate.rb +135 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/delegate_allow_blank.rb +51 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/dynamic_find_by.rb +91 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/enum_uniqueness.rb +45 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/environment_comparison.rb +66 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/exit.rb +67 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/file_path.rb +108 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/find_by.rb +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/find_each.rb +52 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/has_and_belongs_to_many.rb +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb +106 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/http_positional_arguments.rb +117 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/http_status.rb +186 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/ignored_skip_action_filter_option.rb +94 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/inverse_of.rb +246 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/lexically_scoped_action_filter.rb +149 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/link_to_blank.rb +90 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/not_null_column.rb +67 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/output.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/output_safety.rb +99 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/pluralization_grammar.rb +107 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/presence.rb +124 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/present.rb +149 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/read_write_attribute.rb +74 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb +135 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/reflection_class_name.rb +38 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/refute_methods.rb +76 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/relative_date_constant.rb +93 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/request_referer.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/reversible_migration.rb +286 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/safe_navigation.rb +91 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/save_bang.rb +316 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/scope_args.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/skips_model_validations.rb +88 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/time_zone.rb +231 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/uniq_before_pluck.rb +105 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/unknown_env.rb +63 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/rails/validation.rb +106 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/registry.rb +190 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/security/eval.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/security/json_load.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/security/marshal_load.rb +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/security/open.rb +71 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/security/yaml_load.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/severity.rb +77 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/access_modifier_declarations.rb +111 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/alias.rb +141 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/and_or.rb +146 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/array_join.rb +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/ascii_comments.rb +61 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/attr.rb +62 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/auto_resource_cleanup.rb +51 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/bare_percent_literals.rb +78 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/begin_block.rb +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/block_comments.rb +62 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/block_delimiters.rb +315 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/braces_around_hash_parameters.rb +190 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/case_equality.rb +30 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/character_literal.rb +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/class_and_module_children.rb +153 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/class_check.rb +59 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/class_methods.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/class_vars.rb +48 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/collection_methods.rb +77 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/colon_method_call.rb +48 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/colon_method_definition.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/command_literal.rb +187 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/comment_annotation.rb +97 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/commented_keyword.rb +87 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/conditional_assignment.rb +698 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/constant_visibility.rb +66 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/copyright.rb +95 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/date_time.rb +77 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/def_with_parentheses.rb +57 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/dir.rb +48 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/documentation.rb +101 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/documentation_method.rb +81 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/double_negation.rb +35 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/each_for_simple_loop.rb +58 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/each_with_object.rb +110 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/empty_block_parameter.rb +48 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/empty_case_condition.rb +107 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/empty_else.rb +175 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/empty_lambda_parameter.rb +45 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/empty_literal.rb +123 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/empty_method.rb +115 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/encoding.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/end_block.rb +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/eval_with_location.rb +148 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/even_odd.rb +58 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/expand_path_arguments.rb +194 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/for.rb +88 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/format_string.rb +123 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/format_string_token.rb +170 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/frozen_string_literal_comment.rb +180 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/global_vars.rb +80 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/guard_clause.rb +92 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/hash_syntax.rb +214 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/identical_conditional_branches.rb +130 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/if_inside_else.rb +45 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/if_unless_modifier.rb +91 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/if_with_semicolon.rb +30 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/implicit_runtime_error.rb +32 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/infinite_loop.rb +127 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/inline_comment.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/inverse_methods.rb +167 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/ip_addresses.rb +76 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/lambda.rb +129 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/lambda_call.rb +93 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/line_end_concatenation.rb +121 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/method_call_with_args_parentheses.rb +368 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/method_call_without_args_parentheses.rb +77 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/method_called_on_do_end_block.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/method_def_parentheses.rb +158 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/method_missing_super.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/min_max.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/missing_else.rb +180 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/missing_respond_to_missing.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/mixin_grouping.rb +150 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/mixin_usage.rb +80 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/module_function.rb +105 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/multiline_block_chain.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/multiline_if_modifier.rb +67 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/multiline_if_then.rb +50 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/multiline_memoization.rb +94 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/multiline_method_signature.rb +61 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/multiline_ternary_operator.rb +38 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/multiple_comparison.rb +92 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/mutable_constant.rb +174 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/negated_if.rb +99 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/negated_while.rb +48 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/nested_modifier.rb +89 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/nested_parenthesized_calls.rb +67 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/nested_ternary_operator.rb +32 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/next.rb +244 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/nil_comparison.rb +75 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/non_nil_check.rb +124 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/not.rb +82 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/numeric_literal_prefix.rb +124 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/numeric_literals.rb +110 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/numeric_predicate.rb +145 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/one_line_conditional.rb +99 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/option_hash.rb +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/optional_arguments.rb +61 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/or_assignment.rb +90 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/parallel_assignment.rb +287 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/parentheses_around_condition.rb +103 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/percent_literal_delimiters.rb +127 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/percent_q_literals.rb +73 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/perl_backrefs.rb +38 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/preferred_hash_methods.rb +75 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/proc.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/raise_args.rb +145 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/random_with_offset.rb +161 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/redundant_begin.rb +91 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/redundant_conditional.rb +97 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/redundant_exception.rb +60 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/redundant_freeze.rb +67 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/redundant_parentheses.rb +222 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/redundant_return.rb +169 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/redundant_self.rb +154 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/regexp_literal.rb +228 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/rescue_modifier.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/rescue_standard_error.rb +124 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/return_nil.rb +89 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/safe_navigation.rb +253 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/self_assignment.rb +97 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/semicolon.rb +90 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/send.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/signal_exception.rb +211 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/single_line_block_params.rb +95 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/single_line_methods.rb +76 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/special_global_vars.rb +213 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/stabby_lambda_parentheses.rb +86 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/stderr_puts.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/string_hash_keys.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/string_literals.rb +129 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/string_literals_in_interpolation.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/string_methods.rb +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/struct_inheritance.rb +32 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/symbol_array.rb +119 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/symbol_literal.rb +32 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/symbol_proc.rb +130 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/ternary_parentheses.rb +194 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/trailing_body_on_class.rb +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/trailing_body_on_method_definition.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/trailing_body_on_module.rb +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/trailing_comma_in_arguments.rb +92 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/trailing_comma_in_array_literal.rb +58 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/trailing_method_end_statement.rb +93 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/trailing_underscore_variable.rb +161 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/trivial_accessors.rb +191 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/unless_else.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/unneeded_capital_w.rb +51 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/unneeded_condition.rb +112 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/unneeded_interpolation.rb +98 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/unneeded_percent_q.rb +112 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/unpack_first.rb +65 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/variable_interpolation.rb +58 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/when_then.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/while_until_do.rb +59 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/while_until_modifier.rb +61 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/word_array.rb +102 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/yoda_condition.rb +140 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/style/zero_length_predicate.rb +117 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/team.rb +190 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/util.rb +129 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/variable_force.rb +464 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/variable_force/assignment.rb +96 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/variable_force/branch.rb +322 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/variable_force/branchable.rb +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/variable_force/reference.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/variable_force/scope.rb +109 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/variable_force/variable.rb +104 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/cop/variable_force/variable_table.rb +129 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/core_ext/string.rb +47 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/error.rb +11 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/file_finder.rb +47 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/formatter/auto_gen_config_formatter.rb +16 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/formatter/base_formatter.rb +123 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/formatter/clang_style_formatter.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/formatter/colorizable.rb +41 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/formatter/disabled_config_formatter.rb +219 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/formatter/disabled_lines_formatter.rb +57 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/formatter/emacs_style_formatter.rb +24 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/formatter/file_list_formatter.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/formatter/formatter_set.rb +105 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/formatter/fuubar_style_formatter.rb +80 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/formatter/html_formatter.rb +141 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/formatter/json_formatter.rb +80 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/formatter/offense_count_formatter.rb +74 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/formatter/progress_formatter.rb +63 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/formatter/quiet_formatter.rb +13 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/formatter/simple_text_formatter.rb +126 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/formatter/tap_formatter.rb +71 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/formatter/text_util.rb +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/formatter/worst_offenders_formatter.rb +62 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/magic_comment.rb +210 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/name_similarity.rb +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/node_pattern.rb +584 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/options.rb +441 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/path_util.rb +85 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/platform.rb +11 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/processed_source.rb +210 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/rake_task.rb +79 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/remote_config.rb +104 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/result_cache.rb +191 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/rspec/cop_helper.rb +95 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/rspec/expect_offense.rb +237 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/rspec/host_environment_simulation_helper.rb +28 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/rspec/shared_contexts.rb +96 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/rspec/shared_examples.rb +59 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/rspec/support.rb +14 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/runner.rb +353 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/string_interpreter.rb +57 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/string_util.rb +14 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/target_finder.rb +187 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/token.rb +114 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/version.rb +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/warning.rb +11 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubocop-0.66.0/lib/rubocop/yaml_duplication_checker.rb +33 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/LICENSE.txt +19 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/README.md +131 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/Rakefile +2 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar.rb +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/base.rb +183 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/length.rb +100 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/components.rb +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/components/bar.rb +102 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/components/percentage.rb +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/components/rate.rb +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/components/time.rb +101 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/components/title.rb +13 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/errors/invalid_progress_error.rb +4 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/format.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/format/formatter.rb +27 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/format/molecule.rb +60 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/format/string.rb +36 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/output.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/outputs/non_tty.rb +47 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/outputs/null.rb +33 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/outputs/tty.rb +32 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/progress.rb +118 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/refinements.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/refinements/enumerator.rb +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/throttle.rb +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/time.rb +32 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/timer.rb +72 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/version.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby2_keywords-0.0.5/ChangeLog +214 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby2_keywords-0.0.5/LICENSE +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby2_keywords-0.0.5/README.md +75 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby2_keywords-0.0.5/lib/ruby2_keywords.rb +57 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby2_keywords-0.0.5/logs/ChangeLog-0.0.0 +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby2_keywords-0.0.5/logs/ChangeLog-0.0.1 +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby2_keywords-0.0.5/logs/ChangeLog-0.0.2 +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby2_keywords-0.0.5/logs/ChangeLog-0.0.3 +124 -0
- data/vendor/bundle/ruby/2.6.0/gems/ruby2_keywords-0.0.5/logs/ChangeLog-0.0.4 +53 -0
- data/vendor/bundle/ruby/2.6.0/gems/unicode-display_width-1.5.0/CHANGELOG.md +121 -0
- data/vendor/bundle/ruby/2.6.0/gems/unicode-display_width-1.5.0/MIT-LICENSE.txt +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/unicode-display_width-1.5.0/README.md +124 -0
- data/vendor/bundle/ruby/2.6.0/gems/unicode-display_width-1.5.0/data/display_width.marshal.gz +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width.rb +51 -0
- data/vendor/bundle/ruby/2.6.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/constants.rb +8 -0
- data/vendor/bundle/ruby/2.6.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/index.rb +12 -0
- data/vendor/bundle/ruby/2.6.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/no_string_ext.rb +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/string_ext.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/specifications/ast-2.4.2.gemspec +50 -0
- data/vendor/bundle/ruby/2.6.0/specifications/byebug-11.1.3.gemspec +39 -0
- data/vendor/bundle/ruby/2.6.0/specifications/coderay-1.1.3.gemspec +25 -0
- data/vendor/bundle/ruby/2.6.0/specifications/diff-lcs-1.4.4.gemspec +59 -0
- data/vendor/bundle/ruby/2.6.0/specifications/faraday-1.7.0.gemspec +0 -0
- data/vendor/bundle/ruby/2.6.0/specifications/faraday-em_http-1.0.0.gemspec +64 -0
- data/vendor/bundle/ruby/2.6.0/specifications/faraday-em_synchrony-1.0.0.gemspec +70 -0
- data/vendor/bundle/ruby/2.6.0/specifications/faraday-excon-1.1.0.gemspec +64 -0
- data/vendor/bundle/ruby/2.6.0/specifications/faraday-httpclient-1.0.1.gemspec +64 -0
- data/vendor/bundle/ruby/2.6.0/specifications/faraday-net_http-1.0.1.gemspec +61 -0
- data/vendor/bundle/ruby/2.6.0/specifications/faraday-net_http_persistent-1.2.0.gemspec +58 -0
- data/vendor/bundle/ruby/2.6.0/specifications/faraday-patron-1.0.0.gemspec +64 -0
- data/vendor/bundle/ruby/2.6.0/specifications/faraday-rack-1.0.0.gemspec +64 -0
- data/vendor/bundle/ruby/2.6.0/specifications/jaro_winkler-1.5.4.gemspec +44 -0
- data/vendor/bundle/ruby/2.6.0/specifications/method_source-1.0.0.gemspec +35 -0
- data/vendor/bundle/ruby/2.6.0/specifications/multipart-post-2.1.1.gemspec +38 -0
- data/vendor/bundle/ruby/2.6.0/specifications/parallel-1.20.1.gemspec +21 -0
- data/vendor/bundle/ruby/2.6.0/specifications/parser-3.0.2.0.gemspec +63 -0
- data/vendor/bundle/ruby/2.6.0/specifications/pry-0.13.1.gemspec +39 -0
- data/vendor/bundle/ruby/2.6.0/specifications/pry-byebug-3.9.0.gemspec +38 -0
- data/vendor/bundle/ruby/2.6.0/specifications/psych-4.0.1.gemspec +26 -0
- data/vendor/bundle/ruby/2.6.0/specifications/rainbow-3.0.0.gemspec +33 -0
- data/vendor/bundle/ruby/2.6.0/specifications/rake-13.0.6.gemspec +26 -0
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-3.10.0.gemspec +43 -0
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-core-3.10.1.gemspec +63 -0
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-expectations-3.10.1.gemspec +51 -0
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-mocks-3.10.2.gemspec +51 -0
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-support-3.10.2.gemspec +39 -0
- data/vendor/bundle/ruby/2.6.0/specifications/rubocop-0.66.0.gemspec +62 -0
- data/vendor/bundle/ruby/2.6.0/specifications/ruby-progressbar-1.11.0.gemspec +43 -0
- data/vendor/bundle/ruby/2.6.0/specifications/ruby2_keywords-0.0.5.gemspec +22 -0
- data/vendor/bundle/ruby/2.6.0/specifications/unicode-display_width-1.5.0.gemspec +39 -0
- metadata +1967 -187
- data/docs/Account.md +0 -96
- data/docs/AccountNumber.md +0 -32
- data/docs/AccountOwner.md +0 -40
- data/docs/Category.md +0 -32
- data/docs/Challenge.md +0 -30
- data/docs/ChallengeImageOptions.md +0 -22
- data/docs/ChallengeOptions.md +0 -20
- data/docs/ConnectWidget.md +0 -20
- data/docs/Credential.md +0 -26
- data/docs/EnhanceTransaction.md +0 -48
- data/docs/Holding.md +0 -52
- data/docs/InlineResponse200.md +0 -18
- data/docs/Institution.md +0 -36
- data/docs/Member.md +0 -40
- data/docs/MemberStatus.md +0 -34
- data/docs/Merchant.md +0 -28
- data/docs/OAuthWindow.md +0 -20
- data/docs/Pagination.md +0 -24
- data/docs/Statement.md +0 -32
- data/docs/Tag.md +0 -22
- data/docs/Tagging.md +0 -26
- data/docs/Transaction.md +0 -88
- data/docs/TransactionRule.md +0 -30
- data/docs/User.md +0 -26
- data/docs/Widget.md +0 -22
- data/lib/mx-platform-ruby/models/account.rb +0 -569
- data/lib/mx-platform-ruby/models/account_number.rb +0 -281
- data/lib/mx-platform-ruby/models/account_owner.rb +0 -317
- data/lib/mx-platform-ruby/models/category.rb +0 -281
- data/lib/mx-platform-ruby/models/challenge.rb +0 -276
- data/lib/mx-platform-ruby/models/challenge_image_options.rb +0 -236
- data/lib/mx-platform-ruby/models/challenge_options.rb +0 -227
- data/lib/mx-platform-ruby/models/connect_widget.rb +0 -227
- data/lib/mx-platform-ruby/models/credential.rb +0 -254
- data/lib/mx-platform-ruby/models/enhance_transaction.rb +0 -353
- data/lib/mx-platform-ruby/models/holding.rb +0 -371
- data/lib/mx-platform-ruby/models/inline_response200.rb +0 -218
- data/lib/mx-platform-ruby/models/institution.rb +0 -299
- data/lib/mx-platform-ruby/models/member.rb +0 -317
- data/lib/mx-platform-ruby/models/member_status.rb +0 -292
- data/lib/mx-platform-ruby/models/merchant.rb +0 -263
- data/lib/mx-platform-ruby/models/o_auth_window.rb +0 -227
- data/lib/mx-platform-ruby/models/pagination.rb +0 -245
- data/lib/mx-platform-ruby/models/statement.rb +0 -281
- data/lib/mx-platform-ruby/models/tag.rb +0 -236
- data/lib/mx-platform-ruby/models/tagging.rb +0 -254
- data/lib/mx-platform-ruby/models/transaction.rb +0 -533
- data/lib/mx-platform-ruby/models/transaction_rule.rb +0 -272
- data/lib/mx-platform-ruby/models/user.rb +0 -254
- data/lib/mx-platform-ruby/models/widget.rb +0 -236
- data/openapi/mx_platform_ruby.yml +0 -11
- data/pkg/mx-platform-ruby-0.2.0.gem +0 -0
- data/pkg/mx-platform-ruby-0.2.1.gem +0 -0
- data/spec/models/account_number_spec.rb +0 -76
- data/spec/models/account_owner_spec.rb +0 -100
- data/spec/models/account_spec.rb +0 -268
- data/spec/models/category_spec.rb +0 -76
- data/spec/models/challenge_image_options_spec.rb +0 -46
- data/spec/models/challenge_options_spec.rb +0 -40
- data/spec/models/challenge_spec.rb +0 -70
- data/spec/models/connect_widget_spec.rb +0 -40
- data/spec/models/credential_spec.rb +0 -58
- data/spec/models/enhance_transaction_spec.rb +0 -124
- data/spec/models/holding_spec.rb +0 -136
- data/spec/models/inline_response200_spec.rb +0 -34
- data/spec/models/institution_spec.rb +0 -88
- data/spec/models/member_spec.rb +0 -100
- data/spec/models/member_status_spec.rb +0 -82
- data/spec/models/merchant_spec.rb +0 -64
- data/spec/models/o_auth_window_spec.rb +0 -40
- data/spec/models/pagination_spec.rb +0 -52
- data/spec/models/statement_spec.rb +0 -76
- data/spec/models/tag_spec.rb +0 -46
- data/spec/models/tagging_spec.rb +0 -58
- data/spec/models/transaction_rule_spec.rb +0 -70
- data/spec/models/transaction_spec.rb +0 -244
- data/spec/models/user_spec.rb +0 -58
- data/spec/models/widget_spec.rb +0 -46
@@ -0,0 +1,291 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Parser
|
4
|
+
|
5
|
+
##
|
6
|
+
# Base class for version-specific parsers.
|
7
|
+
#
|
8
|
+
# @api public
|
9
|
+
#
|
10
|
+
# @!attribute [r] diagnostics
|
11
|
+
# @return [Parser::Diagnostic::Engine]
|
12
|
+
#
|
13
|
+
# @!attribute [r] static_env
|
14
|
+
# @return [Parser::StaticEnvironment]
|
15
|
+
#
|
16
|
+
class Base < Racc::Parser
|
17
|
+
##
|
18
|
+
# Parses a string of Ruby code and returns the AST. If the source
|
19
|
+
# cannot be parsed, {SyntaxError} is raised and a diagnostic is
|
20
|
+
# printed to `stderr`.
|
21
|
+
#
|
22
|
+
# @example
|
23
|
+
# Parser::Base.parse('puts "hello"')
|
24
|
+
#
|
25
|
+
# @param [String] string The block of code to parse.
|
26
|
+
# @param [String] file The name of the file the code originated from.
|
27
|
+
# @param [Numeric] line The initial line number.
|
28
|
+
# @return [Parser::AST::Node]
|
29
|
+
#
|
30
|
+
def self.parse(string, file='(string)', line=1)
|
31
|
+
parser = default_parser
|
32
|
+
source_buffer = setup_source_buffer(file, line, string, parser.default_encoding)
|
33
|
+
parser.parse(source_buffer)
|
34
|
+
end
|
35
|
+
|
36
|
+
##
|
37
|
+
# Parses a string of Ruby code and returns the AST and comments. If the
|
38
|
+
# source cannot be parsed, {SyntaxError} is raised and a diagnostic is
|
39
|
+
# printed to `stderr`.
|
40
|
+
#
|
41
|
+
# @example
|
42
|
+
# Parser::Base.parse_with_comments('puts "hello"')
|
43
|
+
#
|
44
|
+
# @param [String] string The block of code to parse.
|
45
|
+
# @param [String] file The name of the file the code originated from.
|
46
|
+
# @param [Numeric] line The initial line number.
|
47
|
+
# @return [Array]
|
48
|
+
#
|
49
|
+
def self.parse_with_comments(string, file='(string)', line=1)
|
50
|
+
parser = default_parser
|
51
|
+
source_buffer = setup_source_buffer(file, line, string, parser.default_encoding)
|
52
|
+
parser.parse_with_comments(source_buffer)
|
53
|
+
end
|
54
|
+
|
55
|
+
##
|
56
|
+
# Parses Ruby source code by reading it from a file. If the source
|
57
|
+
# cannot be parsed, {SyntaxError} is raised and a diagnostic is
|
58
|
+
# printed to `stderr`.
|
59
|
+
#
|
60
|
+
# @param [String] filename Path to the file to parse.
|
61
|
+
# @return [Parser::AST::Node]
|
62
|
+
# @see #parse
|
63
|
+
#
|
64
|
+
def self.parse_file(filename)
|
65
|
+
parse(File.read(filename), filename)
|
66
|
+
end
|
67
|
+
|
68
|
+
##
|
69
|
+
# Parses Ruby source code by reading it from a file and returns the AST and
|
70
|
+
# comments. If the source cannot be parsed, {SyntaxError} is raised and a
|
71
|
+
# diagnostic is printed to `stderr`.
|
72
|
+
#
|
73
|
+
# @param [String] filename Path to the file to parse.
|
74
|
+
# @return [Array]
|
75
|
+
# @see #parse
|
76
|
+
#
|
77
|
+
def self.parse_file_with_comments(filename)
|
78
|
+
parse_with_comments(File.read(filename), filename)
|
79
|
+
end
|
80
|
+
|
81
|
+
##
|
82
|
+
# @return [Parser::Base] parser with the default options set.
|
83
|
+
#
|
84
|
+
def self.default_parser
|
85
|
+
parser = new
|
86
|
+
|
87
|
+
parser.diagnostics.all_errors_are_fatal = true
|
88
|
+
parser.diagnostics.ignore_warnings = true
|
89
|
+
|
90
|
+
parser.diagnostics.consumer = lambda do |diagnostic|
|
91
|
+
$stderr.puts(diagnostic.render)
|
92
|
+
end
|
93
|
+
|
94
|
+
parser
|
95
|
+
end
|
96
|
+
|
97
|
+
def self.setup_source_buffer(file, line, string, encoding)
|
98
|
+
string = string.dup.force_encoding(encoding)
|
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 :lexer
|
113
|
+
attr_reader :diagnostics
|
114
|
+
attr_reader :builder
|
115
|
+
attr_reader :static_env
|
116
|
+
attr_reader :source_buffer
|
117
|
+
attr_reader :context
|
118
|
+
attr_reader :max_numparam_stack
|
119
|
+
attr_reader :current_arg_stack
|
120
|
+
attr_reader :pattern_variables
|
121
|
+
attr_reader :pattern_hash_keys
|
122
|
+
|
123
|
+
##
|
124
|
+
# @param [Parser::Builders::Default] builder The AST builder to use.
|
125
|
+
#
|
126
|
+
def initialize(builder=Parser::Builders::Default.new)
|
127
|
+
@diagnostics = Diagnostic::Engine.new
|
128
|
+
|
129
|
+
@static_env = StaticEnvironment.new
|
130
|
+
|
131
|
+
# Stack that holds current parsing context
|
132
|
+
@context = Context.new
|
133
|
+
|
134
|
+
# Maximum numbered parameters stack
|
135
|
+
@max_numparam_stack = MaxNumparamStack.new
|
136
|
+
|
137
|
+
# Current argument names stack
|
138
|
+
@current_arg_stack = CurrentArgStack.new
|
139
|
+
|
140
|
+
# Stack of set of variables used in the current pattern
|
141
|
+
@pattern_variables = VariablesStack.new
|
142
|
+
|
143
|
+
# Stack of set of keys used in the current hash in pattern matchinig
|
144
|
+
@pattern_hash_keys = VariablesStack.new
|
145
|
+
|
146
|
+
@lexer = Lexer.new(version)
|
147
|
+
@lexer.diagnostics = @diagnostics
|
148
|
+
@lexer.static_env = @static_env
|
149
|
+
@lexer.context = @context
|
150
|
+
|
151
|
+
@builder = builder
|
152
|
+
@builder.parser = self
|
153
|
+
|
154
|
+
# Last emitted token
|
155
|
+
@last_token = nil
|
156
|
+
|
157
|
+
if self.class::Racc_debug_parser && ENV['RACC_DEBUG']
|
158
|
+
@yydebug = true
|
159
|
+
end
|
160
|
+
|
161
|
+
reset
|
162
|
+
end
|
163
|
+
|
164
|
+
##
|
165
|
+
# Resets the state of the parser.
|
166
|
+
#
|
167
|
+
def reset
|
168
|
+
@source_buffer = nil
|
169
|
+
|
170
|
+
@lexer.reset
|
171
|
+
@static_env.reset
|
172
|
+
@context.reset
|
173
|
+
@current_arg_stack.reset
|
174
|
+
@pattern_variables.reset
|
175
|
+
@pattern_hash_keys.reset
|
176
|
+
|
177
|
+
self
|
178
|
+
end
|
179
|
+
|
180
|
+
##
|
181
|
+
# Parses a source buffer and returns the AST, or `nil` in case of a non fatal error.
|
182
|
+
#
|
183
|
+
# @param [Parser::Source::Buffer] source_buffer The source buffer to parse.
|
184
|
+
# @return [Parser::AST::Node, nil]
|
185
|
+
#
|
186
|
+
def parse(source_buffer)
|
187
|
+
@lexer.source_buffer = source_buffer
|
188
|
+
@source_buffer = source_buffer
|
189
|
+
|
190
|
+
do_parse || nil # Force `false` to `nil`, see https://github.com/ruby/racc/pull/136
|
191
|
+
ensure
|
192
|
+
# Don't keep references to the source file.
|
193
|
+
@source_buffer = nil
|
194
|
+
@lexer.source_buffer = nil
|
195
|
+
end
|
196
|
+
|
197
|
+
##
|
198
|
+
# Parses a source buffer and returns the AST and the source code comments.
|
199
|
+
#
|
200
|
+
# @see #parse
|
201
|
+
# @see Parser::Source::Comment#associate
|
202
|
+
# @return [Array]
|
203
|
+
#
|
204
|
+
def parse_with_comments(source_buffer)
|
205
|
+
@lexer.comments = []
|
206
|
+
|
207
|
+
[ parse(source_buffer), @lexer.comments ]
|
208
|
+
ensure
|
209
|
+
@lexer.comments = nil
|
210
|
+
end
|
211
|
+
|
212
|
+
##
|
213
|
+
# Parses a source buffer and returns the AST, the source code comments,
|
214
|
+
# and the tokens emitted by the lexer. In case of a fatal error, a {SyntaxError}
|
215
|
+
# is raised, unless `recover` is true. In case of an error
|
216
|
+
# (non-fatal or recovered), `nil` is returned instead of the AST, and
|
217
|
+
# comments as well as tokens are only returned up to the location of
|
218
|
+
# the error.
|
219
|
+
#
|
220
|
+
# Currently, token stream format returned by #tokenize is not documented,
|
221
|
+
# but is considered part of a public API and only changed according
|
222
|
+
# to Semantic Versioning.
|
223
|
+
#
|
224
|
+
# However, note that the exact token composition of various constructs
|
225
|
+
# might vary. For example, a string `"foo"` is represented equally well
|
226
|
+
# by `:tSTRING_BEG " :tSTRING_CONTENT foo :tSTRING_END "` and
|
227
|
+
# `:tSTRING "foo"`; such details must not be relied upon.
|
228
|
+
#
|
229
|
+
# @param [Parser::Source::Buffer] source_buffer
|
230
|
+
# @param [Boolean] recover If true, recover from syntax errors. False by default.
|
231
|
+
# @return [Array]
|
232
|
+
#
|
233
|
+
def tokenize(source_buffer, recover=false)
|
234
|
+
@lexer.tokens = []
|
235
|
+
@lexer.comments = []
|
236
|
+
|
237
|
+
begin
|
238
|
+
ast = parse(source_buffer)
|
239
|
+
rescue Parser::SyntaxError
|
240
|
+
raise if !recover
|
241
|
+
end
|
242
|
+
|
243
|
+
[ ast, @lexer.comments, @lexer.tokens ]
|
244
|
+
ensure
|
245
|
+
@lexer.tokens = nil
|
246
|
+
@lexer.comments = nil
|
247
|
+
end
|
248
|
+
|
249
|
+
private
|
250
|
+
|
251
|
+
def next_token
|
252
|
+
token = @lexer.advance
|
253
|
+
@last_token = token
|
254
|
+
token
|
255
|
+
end
|
256
|
+
|
257
|
+
def check_kwarg_name(name_t)
|
258
|
+
case name_t[0]
|
259
|
+
when /^[a-z_]/
|
260
|
+
# OK
|
261
|
+
when /^[A-Z]/
|
262
|
+
diagnostic :error, :argument_const, nil, name_t
|
263
|
+
end
|
264
|
+
end
|
265
|
+
|
266
|
+
def diagnostic(level, reason, arguments, location_t, highlights_ts=[])
|
267
|
+
_, location = location_t
|
268
|
+
|
269
|
+
highlights = highlights_ts.map do |token|
|
270
|
+
_, range = token
|
271
|
+
range
|
272
|
+
end
|
273
|
+
|
274
|
+
@diagnostics.process(
|
275
|
+
Diagnostic.new(level, reason, arguments, location, highlights))
|
276
|
+
|
277
|
+
if level == :error
|
278
|
+
yyerror
|
279
|
+
end
|
280
|
+
end
|
281
|
+
|
282
|
+
def on_error(error_token_id, error_value, value_stack)
|
283
|
+
token_name = token_to_str(error_token_id)
|
284
|
+
_, location = error_value
|
285
|
+
|
286
|
+
@diagnostics.process(Diagnostic.new(
|
287
|
+
:error, :unexpected_token, { :token => token_name }, location))
|
288
|
+
end
|
289
|
+
end
|
290
|
+
|
291
|
+
end
|
@@ -0,0 +1,2224 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Parser
|
4
|
+
|
5
|
+
##
|
6
|
+
# Default AST builder. Uses {AST::Node}s.
|
7
|
+
#
|
8
|
+
class Builders::Default
|
9
|
+
class << self
|
10
|
+
##
|
11
|
+
# AST compatibility attribute; since `-> {}` is not semantically
|
12
|
+
# equivalent to `lambda {}`, all new code should set this attribute
|
13
|
+
# to true.
|
14
|
+
#
|
15
|
+
# If set to false (the default), `-> {}` is emitted as
|
16
|
+
# `s(:block, s(:send, nil, :lambda), s(:args), nil)`.
|
17
|
+
#
|
18
|
+
# If set to true, `-> {}` is emitted as
|
19
|
+
# `s(:block, s(:lambda), s(:args), nil)`.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
attr_accessor :emit_lambda
|
23
|
+
end
|
24
|
+
|
25
|
+
@emit_lambda = false
|
26
|
+
|
27
|
+
class << self
|
28
|
+
##
|
29
|
+
# AST compatibility attribute; block arguments of `m { |a| }` are
|
30
|
+
# not semantically equivalent to block arguments of `m { |a,| }` or `m { |a, b| }`,
|
31
|
+
# all new code should set this attribute to true.
|
32
|
+
#
|
33
|
+
# If set to false (the default), arguments of `m { |a| }` are emitted as
|
34
|
+
# `s(:args, s(:arg, :a))`.
|
35
|
+
#
|
36
|
+
# If set to true, arguments of `m { |a| }` are emitted as
|
37
|
+
# `s(:args, s(:procarg0, :a)).
|
38
|
+
#
|
39
|
+
# @return [Boolean]
|
40
|
+
attr_accessor :emit_procarg0
|
41
|
+
end
|
42
|
+
|
43
|
+
@emit_procarg0 = false
|
44
|
+
|
45
|
+
class << self
|
46
|
+
##
|
47
|
+
# AST compatibility attribute; locations of `__ENCODING__` are not the same
|
48
|
+
# as locations of `Encoding::UTF_8` causing problems during rewriting,
|
49
|
+
# all new code should set this attribute to true.
|
50
|
+
#
|
51
|
+
# If set to false (the default), `__ENCODING__` is emitted as
|
52
|
+
# ` s(:const, s(:const, nil, :Encoding), :UTF_8)`.
|
53
|
+
#
|
54
|
+
# If set to true, `__ENCODING__` is emitted as
|
55
|
+
# `s(:__ENCODING__)`.
|
56
|
+
#
|
57
|
+
# @return [Boolean]
|
58
|
+
attr_accessor :emit_encoding
|
59
|
+
end
|
60
|
+
|
61
|
+
@emit_encoding = false
|
62
|
+
|
63
|
+
class << self
|
64
|
+
##
|
65
|
+
# AST compatibility attribute; indexed assignment, `x[] = 1`, is not
|
66
|
+
# semantically equivalent to calling the method directly, `x.[]=(1)`.
|
67
|
+
# Specifically, in the former case, the expression's value is always 1,
|
68
|
+
# and in the latter case, the expression's value is the return value
|
69
|
+
# of the `[]=` method.
|
70
|
+
#
|
71
|
+
# If set to false (the default), `self[1]` is emitted as
|
72
|
+
# `s(:send, s(:self), :[], s(:int, 1))`, and `self[1] = 2` is
|
73
|
+
# emitted as `s(:send, s(:self), :[]=, s(:int, 1), s(:int, 2))`.
|
74
|
+
#
|
75
|
+
# If set to true, `self[1]` is emitted as
|
76
|
+
# `s(:index, s(:self), s(:int, 1))`, and `self[1] = 2` is
|
77
|
+
# emitted as `s(:indexasgn, s(:self), s(:int, 1), s(:int, 2))`.
|
78
|
+
#
|
79
|
+
# @return [Boolean]
|
80
|
+
attr_accessor :emit_index
|
81
|
+
end
|
82
|
+
|
83
|
+
@emit_index = false
|
84
|
+
|
85
|
+
class << self
|
86
|
+
##
|
87
|
+
# AST compatibility attribute; causes a single non-mlhs
|
88
|
+
# block argument to be wrapped in s(:procarg0).
|
89
|
+
#
|
90
|
+
# If set to false (the default), block arguments `|a|` are emitted as
|
91
|
+
# `s(:args, s(:procarg0, :a))`
|
92
|
+
#
|
93
|
+
# If set to true, block arguments `|a|` are emitted as
|
94
|
+
# `s(:args, s(:procarg0, s(:arg, :a))`
|
95
|
+
#
|
96
|
+
# @return [Boolean]
|
97
|
+
attr_accessor :emit_arg_inside_procarg0
|
98
|
+
end
|
99
|
+
|
100
|
+
@emit_arg_inside_procarg0 = false
|
101
|
+
|
102
|
+
class << self
|
103
|
+
##
|
104
|
+
# AST compatibility attribute; arguments forwarding initially
|
105
|
+
# didn't have support for leading arguments
|
106
|
+
# (i.e. `def m(a, ...); end` was a syntax error). However, Ruby 3.0
|
107
|
+
# added support for any number of arguments in front of the `...`.
|
108
|
+
#
|
109
|
+
# If set to false (the default):
|
110
|
+
# 1. `def m(...) end` is emitted as
|
111
|
+
# s(:def, :m, s(:forward_args), nil)
|
112
|
+
# 2. `def m(a, b, ...) end` is emitted as
|
113
|
+
# s(:def, :m,
|
114
|
+
# s(:args, s(:arg, :a), s(:arg, :b), s(:forward_arg)))
|
115
|
+
#
|
116
|
+
# If set to true it uses a single format:
|
117
|
+
# 1. `def m(...) end` is emitted as
|
118
|
+
# s(:def, :m, s(:args, s(:forward_arg)))
|
119
|
+
# 2. `def m(a, b, ...) end` is emitted as
|
120
|
+
# s(:def, :m, s(:args, s(:arg, :a), s(:arg, :b), s(:forward_arg)))
|
121
|
+
#
|
122
|
+
# It does't matter that much on 2.7 (because there can't be any leading arguments),
|
123
|
+
# but on 3.0 it should be better enabled to use a single AST format.
|
124
|
+
#
|
125
|
+
# @return [Boolean]
|
126
|
+
attr_accessor :emit_forward_arg
|
127
|
+
end
|
128
|
+
|
129
|
+
@emit_forward_arg = false
|
130
|
+
|
131
|
+
class << self
|
132
|
+
##
|
133
|
+
# AST compatibility attribute; Starting from Ruby 2.7 keyword arguments
|
134
|
+
# of method calls that are passed explicitly as a hash (i.e. with curly braces)
|
135
|
+
# are treated as positional arguments and Ruby 2.7 emits a warning on such method
|
136
|
+
# call. Ruby 3.0 given an ArgumentError.
|
137
|
+
#
|
138
|
+
# If set to false (the default) the last hash argument is emitted as `hash`:
|
139
|
+
#
|
140
|
+
# ```
|
141
|
+
# (send nil :foo
|
142
|
+
# (hash
|
143
|
+
# (pair
|
144
|
+
# (sym :bar)
|
145
|
+
# (int 42))))
|
146
|
+
# ```
|
147
|
+
#
|
148
|
+
# If set to true it is emitted as `kwargs`:
|
149
|
+
#
|
150
|
+
# ```
|
151
|
+
# (send nil :foo
|
152
|
+
# (kwargs
|
153
|
+
# (pair
|
154
|
+
# (sym :bar)
|
155
|
+
# (int 42))))
|
156
|
+
# ```
|
157
|
+
#
|
158
|
+
# Note that `kwargs` node is just a replacement for `hash` argument,
|
159
|
+
# so if there's are multiple arguments (or a `kwsplat`) all of them
|
160
|
+
# are wrapped into `kwargs` instead of `hash`:
|
161
|
+
#
|
162
|
+
# ```
|
163
|
+
# (send nil :foo
|
164
|
+
# (hash
|
165
|
+
# (pair
|
166
|
+
# (sym :a)
|
167
|
+
# (int 42))
|
168
|
+
# (kwsplat
|
169
|
+
# (send nil :b))
|
170
|
+
# (pair
|
171
|
+
# (sym :c)
|
172
|
+
# (int 10))))
|
173
|
+
# ```
|
174
|
+
attr_accessor :emit_kwargs
|
175
|
+
end
|
176
|
+
|
177
|
+
@emit_kwargs = false
|
178
|
+
|
179
|
+
class << self
|
180
|
+
##
|
181
|
+
# AST compatibility attribute; Starting from 3.0 Ruby returns
|
182
|
+
# true/false from single-line pattern matching with `in` keyword.
|
183
|
+
#
|
184
|
+
# Before 3.0 there was an exception if given value doesn't match pattern.
|
185
|
+
#
|
186
|
+
# NOTE: This attribute affects only Ruby 2.7 grammar.
|
187
|
+
# 3.0 grammar always emits `match_pattern`/`match_pattern_p`
|
188
|
+
#
|
189
|
+
# If compatibility attribute set to false `foo in bar` is emitted as `in_match`:
|
190
|
+
#
|
191
|
+
# ```
|
192
|
+
# (in-match
|
193
|
+
# (send nil :foo)
|
194
|
+
# (match-var :bar))
|
195
|
+
# ```
|
196
|
+
#
|
197
|
+
# If set to true it's emitted as `match_pattern_p`:
|
198
|
+
# ```
|
199
|
+
# (match-pattern-p
|
200
|
+
# (send nil :foo)
|
201
|
+
# (match-var :bar))
|
202
|
+
# ```
|
203
|
+
attr_accessor :emit_match_pattern
|
204
|
+
end
|
205
|
+
|
206
|
+
@emit_match_pattern = false
|
207
|
+
|
208
|
+
class << self
|
209
|
+
##
|
210
|
+
# @api private
|
211
|
+
def modernize
|
212
|
+
@emit_lambda = true
|
213
|
+
@emit_procarg0 = true
|
214
|
+
@emit_encoding = true
|
215
|
+
@emit_index = true
|
216
|
+
@emit_arg_inside_procarg0 = true
|
217
|
+
@emit_forward_arg = true
|
218
|
+
@emit_kwargs = true
|
219
|
+
@emit_match_pattern = true
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
##
|
224
|
+
# @api private
|
225
|
+
attr_accessor :parser
|
226
|
+
|
227
|
+
##
|
228
|
+
# If set to true (the default), `__FILE__` and `__LINE__` are transformed to
|
229
|
+
# literal nodes. For example, `s(:str, "lib/foo.rb")` and `s(:int, 10)`.
|
230
|
+
#
|
231
|
+
# If set to false, `__FILE__` and `__LINE__` are emitted as-is,
|
232
|
+
# i.e. as `s(:__FILE__)` and `s(:__LINE__)` nodes.
|
233
|
+
#
|
234
|
+
# Source maps are identical in both cases.
|
235
|
+
#
|
236
|
+
# @return [Boolean]
|
237
|
+
attr_accessor :emit_file_line_as_literals
|
238
|
+
|
239
|
+
##
|
240
|
+
# Initializes attributes:
|
241
|
+
#
|
242
|
+
# * `emit_file_line_as_literals`: `true`
|
243
|
+
def initialize
|
244
|
+
@emit_file_line_as_literals = true
|
245
|
+
end
|
246
|
+
|
247
|
+
# @!parse private
|
248
|
+
|
249
|
+
#
|
250
|
+
# Literals
|
251
|
+
#
|
252
|
+
|
253
|
+
# Singletons
|
254
|
+
|
255
|
+
def nil(nil_t)
|
256
|
+
n0(:nil,
|
257
|
+
token_map(nil_t))
|
258
|
+
end
|
259
|
+
|
260
|
+
def true(true_t)
|
261
|
+
n0(:true,
|
262
|
+
token_map(true_t))
|
263
|
+
end
|
264
|
+
|
265
|
+
def false(false_t)
|
266
|
+
n0(:false,
|
267
|
+
token_map(false_t))
|
268
|
+
end
|
269
|
+
|
270
|
+
# Numerics
|
271
|
+
|
272
|
+
def integer(integer_t)
|
273
|
+
numeric(:int, integer_t)
|
274
|
+
end
|
275
|
+
|
276
|
+
def float(float_t)
|
277
|
+
numeric(:float, float_t)
|
278
|
+
end
|
279
|
+
|
280
|
+
def rational(rational_t)
|
281
|
+
numeric(:rational, rational_t)
|
282
|
+
end
|
283
|
+
|
284
|
+
def complex(complex_t)
|
285
|
+
numeric(:complex, complex_t)
|
286
|
+
end
|
287
|
+
|
288
|
+
def numeric(kind, token)
|
289
|
+
n(kind, [ value(token) ],
|
290
|
+
Source::Map::Operator.new(nil, loc(token)))
|
291
|
+
end
|
292
|
+
private :numeric
|
293
|
+
|
294
|
+
def unary_num(unary_t, numeric)
|
295
|
+
value, = *numeric
|
296
|
+
operator_loc = loc(unary_t)
|
297
|
+
|
298
|
+
case value(unary_t)
|
299
|
+
when '+'
|
300
|
+
value = +value
|
301
|
+
when '-'
|
302
|
+
value = -value
|
303
|
+
end
|
304
|
+
|
305
|
+
numeric.updated(nil, [ value ],
|
306
|
+
:location =>
|
307
|
+
Source::Map::Operator.new(
|
308
|
+
operator_loc,
|
309
|
+
operator_loc.join(numeric.loc.expression)))
|
310
|
+
end
|
311
|
+
|
312
|
+
def __LINE__(__LINE__t)
|
313
|
+
n0(:__LINE__,
|
314
|
+
token_map(__LINE__t))
|
315
|
+
end
|
316
|
+
|
317
|
+
# Strings
|
318
|
+
|
319
|
+
def string(string_t)
|
320
|
+
n(:str, [ string_value(string_t) ],
|
321
|
+
delimited_string_map(string_t))
|
322
|
+
end
|
323
|
+
|
324
|
+
def string_internal(string_t)
|
325
|
+
n(:str, [ string_value(string_t) ],
|
326
|
+
unquoted_map(string_t))
|
327
|
+
end
|
328
|
+
|
329
|
+
def string_compose(begin_t, parts, end_t)
|
330
|
+
if collapse_string_parts?(parts)
|
331
|
+
if begin_t.nil? && end_t.nil?
|
332
|
+
parts.first
|
333
|
+
else
|
334
|
+
n(:str, parts.first.children,
|
335
|
+
string_map(begin_t, parts, end_t))
|
336
|
+
end
|
337
|
+
else
|
338
|
+
n(:dstr, [ *parts ],
|
339
|
+
string_map(begin_t, parts, end_t))
|
340
|
+
end
|
341
|
+
end
|
342
|
+
|
343
|
+
def character(char_t)
|
344
|
+
n(:str, [ string_value(char_t) ],
|
345
|
+
prefix_string_map(char_t))
|
346
|
+
end
|
347
|
+
|
348
|
+
def __FILE__(__FILE__t)
|
349
|
+
n0(:__FILE__,
|
350
|
+
token_map(__FILE__t))
|
351
|
+
end
|
352
|
+
|
353
|
+
# Symbols
|
354
|
+
|
355
|
+
def symbol(symbol_t)
|
356
|
+
n(:sym, [ string_value(symbol_t).to_sym ],
|
357
|
+
prefix_string_map(symbol_t))
|
358
|
+
end
|
359
|
+
|
360
|
+
def symbol_internal(symbol_t)
|
361
|
+
n(:sym, [ string_value(symbol_t).to_sym ],
|
362
|
+
unquoted_map(symbol_t))
|
363
|
+
end
|
364
|
+
|
365
|
+
def symbol_compose(begin_t, parts, end_t)
|
366
|
+
if collapse_string_parts?(parts)
|
367
|
+
str = parts.first
|
368
|
+
|
369
|
+
n(:sym, [ str.children.first.to_sym ],
|
370
|
+
collection_map(begin_t, str.loc.expression, end_t))
|
371
|
+
elsif @parser.version == 18 && parts.empty?
|
372
|
+
diagnostic :error, :empty_symbol, nil, loc(begin_t).join(loc(end_t))
|
373
|
+
else
|
374
|
+
n(:dsym, [ *parts ],
|
375
|
+
collection_map(begin_t, parts, end_t))
|
376
|
+
end
|
377
|
+
end
|
378
|
+
|
379
|
+
# Executable strings
|
380
|
+
|
381
|
+
def xstring_compose(begin_t, parts, end_t)
|
382
|
+
n(:xstr, [ *parts ],
|
383
|
+
string_map(begin_t, parts, end_t))
|
384
|
+
end
|
385
|
+
|
386
|
+
# Indented (interpolated, noninterpolated, executable) strings
|
387
|
+
|
388
|
+
def dedent_string(node, dedent_level)
|
389
|
+
if !dedent_level.nil?
|
390
|
+
dedenter = Lexer::Dedenter.new(dedent_level)
|
391
|
+
|
392
|
+
case node.type
|
393
|
+
when :str
|
394
|
+
str = node.children.first
|
395
|
+
dedenter.dedent(str)
|
396
|
+
when :dstr, :xstr
|
397
|
+
children = node.children.map do |str_node|
|
398
|
+
if str_node.type == :str
|
399
|
+
str = str_node.children.first
|
400
|
+
dedenter.dedent(str)
|
401
|
+
next nil if str.empty?
|
402
|
+
else
|
403
|
+
dedenter.interrupt
|
404
|
+
end
|
405
|
+
str_node
|
406
|
+
end
|
407
|
+
|
408
|
+
node = node.updated(nil, children.compact)
|
409
|
+
end
|
410
|
+
end
|
411
|
+
|
412
|
+
node
|
413
|
+
end
|
414
|
+
|
415
|
+
# Regular expressions
|
416
|
+
|
417
|
+
def regexp_options(regopt_t)
|
418
|
+
options = value(regopt_t).
|
419
|
+
each_char.sort.uniq.
|
420
|
+
map(&:to_sym)
|
421
|
+
|
422
|
+
n(:regopt, options,
|
423
|
+
token_map(regopt_t))
|
424
|
+
end
|
425
|
+
|
426
|
+
def regexp_compose(begin_t, parts, end_t, options)
|
427
|
+
begin
|
428
|
+
static_regexp(parts, options)
|
429
|
+
rescue RegexpError => e
|
430
|
+
diagnostic :error, :invalid_regexp, { :message => e.message },
|
431
|
+
loc(begin_t).join(loc(end_t))
|
432
|
+
end
|
433
|
+
|
434
|
+
n(:regexp, (parts << options),
|
435
|
+
regexp_map(begin_t, end_t, options))
|
436
|
+
end
|
437
|
+
|
438
|
+
# Arrays
|
439
|
+
|
440
|
+
def array(begin_t, elements, end_t)
|
441
|
+
n(:array, elements,
|
442
|
+
collection_map(begin_t, elements, end_t))
|
443
|
+
end
|
444
|
+
|
445
|
+
def splat(star_t, arg=nil)
|
446
|
+
if arg.nil?
|
447
|
+
n0(:splat,
|
448
|
+
unary_op_map(star_t))
|
449
|
+
else
|
450
|
+
n(:splat, [ arg ],
|
451
|
+
unary_op_map(star_t, arg))
|
452
|
+
end
|
453
|
+
end
|
454
|
+
|
455
|
+
def word(parts)
|
456
|
+
if collapse_string_parts?(parts)
|
457
|
+
parts.first
|
458
|
+
else
|
459
|
+
n(:dstr, [ *parts ],
|
460
|
+
collection_map(nil, parts, nil))
|
461
|
+
end
|
462
|
+
end
|
463
|
+
|
464
|
+
def words_compose(begin_t, parts, end_t)
|
465
|
+
n(:array, [ *parts ],
|
466
|
+
collection_map(begin_t, parts, end_t))
|
467
|
+
end
|
468
|
+
|
469
|
+
def symbols_compose(begin_t, parts, end_t)
|
470
|
+
parts = parts.map do |part|
|
471
|
+
case part.type
|
472
|
+
when :str
|
473
|
+
value, = *part
|
474
|
+
part.updated(:sym, [ value.to_sym ])
|
475
|
+
when :dstr
|
476
|
+
part.updated(:dsym)
|
477
|
+
else
|
478
|
+
part
|
479
|
+
end
|
480
|
+
end
|
481
|
+
|
482
|
+
n(:array, [ *parts ],
|
483
|
+
collection_map(begin_t, parts, end_t))
|
484
|
+
end
|
485
|
+
|
486
|
+
# Hashes
|
487
|
+
|
488
|
+
def pair(key, assoc_t, value)
|
489
|
+
n(:pair, [ key, value ],
|
490
|
+
binary_op_map(key, assoc_t, value))
|
491
|
+
end
|
492
|
+
|
493
|
+
def pair_list_18(list)
|
494
|
+
if list.size % 2 != 0
|
495
|
+
diagnostic :error, :odd_hash, nil, list.last.loc.expression
|
496
|
+
else
|
497
|
+
list.
|
498
|
+
each_slice(2).map do |key, value|
|
499
|
+
n(:pair, [ key, value ],
|
500
|
+
binary_op_map(key, nil, value))
|
501
|
+
end
|
502
|
+
end
|
503
|
+
end
|
504
|
+
|
505
|
+
def pair_keyword(key_t, value)
|
506
|
+
key_map, pair_map = pair_keyword_map(key_t, value)
|
507
|
+
|
508
|
+
key = n(:sym, [ value(key_t).to_sym ], key_map)
|
509
|
+
|
510
|
+
n(:pair, [ key, value ], pair_map)
|
511
|
+
end
|
512
|
+
|
513
|
+
def pair_quoted(begin_t, parts, end_t, value)
|
514
|
+
end_t, pair_map = pair_quoted_map(begin_t, end_t, value)
|
515
|
+
|
516
|
+
key = symbol_compose(begin_t, parts, end_t)
|
517
|
+
|
518
|
+
n(:pair, [ key, value ], pair_map)
|
519
|
+
end
|
520
|
+
|
521
|
+
def kwsplat(dstar_t, arg)
|
522
|
+
n(:kwsplat, [ arg ],
|
523
|
+
unary_op_map(dstar_t, arg))
|
524
|
+
end
|
525
|
+
|
526
|
+
def associate(begin_t, pairs, end_t)
|
527
|
+
n(:hash, [ *pairs ],
|
528
|
+
collection_map(begin_t, pairs, end_t))
|
529
|
+
end
|
530
|
+
|
531
|
+
# Ranges
|
532
|
+
|
533
|
+
def range_inclusive(lhs, dot2_t, rhs)
|
534
|
+
n(:irange, [ lhs, rhs ],
|
535
|
+
range_map(lhs, dot2_t, rhs))
|
536
|
+
end
|
537
|
+
|
538
|
+
def range_exclusive(lhs, dot3_t, rhs)
|
539
|
+
n(:erange, [ lhs, rhs ],
|
540
|
+
range_map(lhs, dot3_t, rhs))
|
541
|
+
end
|
542
|
+
|
543
|
+
#
|
544
|
+
# Access
|
545
|
+
#
|
546
|
+
|
547
|
+
def self(token)
|
548
|
+
n0(:self,
|
549
|
+
token_map(token))
|
550
|
+
end
|
551
|
+
|
552
|
+
def ident(token)
|
553
|
+
n(:ident, [ value(token).to_sym ],
|
554
|
+
variable_map(token))
|
555
|
+
end
|
556
|
+
|
557
|
+
def ivar(token)
|
558
|
+
n(:ivar, [ value(token).to_sym ],
|
559
|
+
variable_map(token))
|
560
|
+
end
|
561
|
+
|
562
|
+
def gvar(token)
|
563
|
+
n(:gvar, [ value(token).to_sym ],
|
564
|
+
variable_map(token))
|
565
|
+
end
|
566
|
+
|
567
|
+
def cvar(token)
|
568
|
+
n(:cvar, [ value(token).to_sym ],
|
569
|
+
variable_map(token))
|
570
|
+
end
|
571
|
+
|
572
|
+
def back_ref(token)
|
573
|
+
n(:back_ref, [ value(token).to_sym ],
|
574
|
+
token_map(token))
|
575
|
+
end
|
576
|
+
|
577
|
+
def nth_ref(token)
|
578
|
+
n(:nth_ref, [ value(token) ],
|
579
|
+
token_map(token))
|
580
|
+
end
|
581
|
+
|
582
|
+
def accessible(node)
|
583
|
+
case node.type
|
584
|
+
when :__FILE__
|
585
|
+
if @emit_file_line_as_literals
|
586
|
+
n(:str, [ node.loc.expression.source_buffer.name ],
|
587
|
+
node.loc.dup)
|
588
|
+
else
|
589
|
+
node
|
590
|
+
end
|
591
|
+
|
592
|
+
when :__LINE__
|
593
|
+
if @emit_file_line_as_literals
|
594
|
+
n(:int, [ node.loc.expression.line ],
|
595
|
+
node.loc.dup)
|
596
|
+
else
|
597
|
+
node
|
598
|
+
end
|
599
|
+
|
600
|
+
when :__ENCODING__
|
601
|
+
if !self.class.emit_encoding
|
602
|
+
n(:const, [ n(:const, [ nil, :Encoding], nil), :UTF_8 ],
|
603
|
+
node.loc.dup)
|
604
|
+
else
|
605
|
+
node
|
606
|
+
end
|
607
|
+
|
608
|
+
when :ident
|
609
|
+
name, = *node
|
610
|
+
|
611
|
+
if @parser.static_env.declared?(name)
|
612
|
+
if name.to_s == parser.current_arg_stack.top
|
613
|
+
diagnostic :error, :circular_argument_reference,
|
614
|
+
{ :var_name => name.to_s }, node.loc.expression
|
615
|
+
end
|
616
|
+
|
617
|
+
node.updated(:lvar)
|
618
|
+
else
|
619
|
+
name, = *node
|
620
|
+
n(:send, [ nil, name ],
|
621
|
+
var_send_map(node))
|
622
|
+
end
|
623
|
+
|
624
|
+
else
|
625
|
+
node
|
626
|
+
end
|
627
|
+
end
|
628
|
+
|
629
|
+
def const(name_t)
|
630
|
+
n(:const, [ nil, value(name_t).to_sym ],
|
631
|
+
constant_map(nil, nil, name_t))
|
632
|
+
end
|
633
|
+
|
634
|
+
def const_global(t_colon3, name_t)
|
635
|
+
cbase = n0(:cbase, token_map(t_colon3))
|
636
|
+
|
637
|
+
n(:const, [ cbase, value(name_t).to_sym ],
|
638
|
+
constant_map(cbase, t_colon3, name_t))
|
639
|
+
end
|
640
|
+
|
641
|
+
def const_fetch(scope, t_colon2, name_t)
|
642
|
+
n(:const, [ scope, value(name_t).to_sym ],
|
643
|
+
constant_map(scope, t_colon2, name_t))
|
644
|
+
end
|
645
|
+
|
646
|
+
def __ENCODING__(__ENCODING__t)
|
647
|
+
n0(:__ENCODING__,
|
648
|
+
token_map(__ENCODING__t))
|
649
|
+
end
|
650
|
+
|
651
|
+
#
|
652
|
+
# Assignment
|
653
|
+
#
|
654
|
+
|
655
|
+
def assignable(node)
|
656
|
+
case node.type
|
657
|
+
when :cvar
|
658
|
+
node.updated(:cvasgn)
|
659
|
+
|
660
|
+
when :ivar
|
661
|
+
node.updated(:ivasgn)
|
662
|
+
|
663
|
+
when :gvar
|
664
|
+
node.updated(:gvasgn)
|
665
|
+
|
666
|
+
when :const
|
667
|
+
unless @parser.context.dynamic_const_definition_allowed?
|
668
|
+
diagnostic :error, :dynamic_const, nil, node.loc.expression
|
669
|
+
end
|
670
|
+
|
671
|
+
node.updated(:casgn)
|
672
|
+
|
673
|
+
when :ident
|
674
|
+
name, = *node
|
675
|
+
|
676
|
+
var_name = node.children[0].to_s
|
677
|
+
name_loc = node.loc.expression
|
678
|
+
|
679
|
+
check_assignment_to_numparam(var_name, name_loc)
|
680
|
+
check_reserved_for_numparam(var_name, name_loc)
|
681
|
+
|
682
|
+
@parser.static_env.declare(name)
|
683
|
+
|
684
|
+
node.updated(:lvasgn)
|
685
|
+
|
686
|
+
when :nil, :self, :true, :false,
|
687
|
+
:__FILE__, :__LINE__, :__ENCODING__
|
688
|
+
diagnostic :error, :invalid_assignment, nil, node.loc.expression
|
689
|
+
|
690
|
+
when :back_ref, :nth_ref
|
691
|
+
diagnostic :error, :backref_assignment, nil, node.loc.expression
|
692
|
+
end
|
693
|
+
end
|
694
|
+
|
695
|
+
def const_op_assignable(node)
|
696
|
+
node.updated(:casgn)
|
697
|
+
end
|
698
|
+
|
699
|
+
def assign(lhs, eql_t, rhs)
|
700
|
+
(lhs << rhs).updated(nil, nil,
|
701
|
+
:location => lhs.loc.
|
702
|
+
with_operator(loc(eql_t)).
|
703
|
+
with_expression(join_exprs(lhs, rhs)))
|
704
|
+
end
|
705
|
+
|
706
|
+
def op_assign(lhs, op_t, rhs)
|
707
|
+
case lhs.type
|
708
|
+
when :gvasgn, :ivasgn, :lvasgn, :cvasgn, :casgn, :send, :csend, :index
|
709
|
+
operator = value(op_t)[0..-1].to_sym
|
710
|
+
source_map = lhs.loc.
|
711
|
+
with_operator(loc(op_t)).
|
712
|
+
with_expression(join_exprs(lhs, rhs))
|
713
|
+
|
714
|
+
if lhs.type == :index
|
715
|
+
lhs = lhs.updated(:indexasgn)
|
716
|
+
end
|
717
|
+
|
718
|
+
case operator
|
719
|
+
when :'&&'
|
720
|
+
n(:and_asgn, [ lhs, rhs ], source_map)
|
721
|
+
when :'||'
|
722
|
+
n(:or_asgn, [ lhs, rhs ], source_map)
|
723
|
+
else
|
724
|
+
n(:op_asgn, [ lhs, operator, rhs ], source_map)
|
725
|
+
end
|
726
|
+
|
727
|
+
when :back_ref, :nth_ref
|
728
|
+
diagnostic :error, :backref_assignment, nil, lhs.loc.expression
|
729
|
+
end
|
730
|
+
end
|
731
|
+
|
732
|
+
def multi_lhs(begin_t, items, end_t)
|
733
|
+
n(:mlhs, [ *items ],
|
734
|
+
collection_map(begin_t, items, end_t))
|
735
|
+
end
|
736
|
+
|
737
|
+
def multi_assign(lhs, eql_t, rhs)
|
738
|
+
n(:masgn, [ lhs, rhs ],
|
739
|
+
binary_op_map(lhs, eql_t, rhs))
|
740
|
+
end
|
741
|
+
|
742
|
+
#
|
743
|
+
# Class and module definition
|
744
|
+
#
|
745
|
+
|
746
|
+
def def_class(class_t, name,
|
747
|
+
lt_t, superclass,
|
748
|
+
body, end_t)
|
749
|
+
n(:class, [ name, superclass, body ],
|
750
|
+
module_definition_map(class_t, name, lt_t, end_t))
|
751
|
+
end
|
752
|
+
|
753
|
+
def def_sclass(class_t, lshft_t, expr,
|
754
|
+
body, end_t)
|
755
|
+
n(:sclass, [ expr, body ],
|
756
|
+
module_definition_map(class_t, nil, lshft_t, end_t))
|
757
|
+
end
|
758
|
+
|
759
|
+
def def_module(module_t, name,
|
760
|
+
body, end_t)
|
761
|
+
n(:module, [ name, body ],
|
762
|
+
module_definition_map(module_t, name, nil, end_t))
|
763
|
+
end
|
764
|
+
|
765
|
+
#
|
766
|
+
# Method (un)definition
|
767
|
+
#
|
768
|
+
|
769
|
+
def def_method(def_t, name_t, args,
|
770
|
+
body, end_t)
|
771
|
+
check_reserved_for_numparam(value(name_t), loc(name_t))
|
772
|
+
|
773
|
+
n(:def, [ value(name_t).to_sym, args, body ],
|
774
|
+
definition_map(def_t, nil, name_t, end_t))
|
775
|
+
end
|
776
|
+
|
777
|
+
def def_endless_method(def_t, name_t, args,
|
778
|
+
assignment_t, body)
|
779
|
+
check_reserved_for_numparam(value(name_t), loc(name_t))
|
780
|
+
|
781
|
+
n(:def, [ value(name_t).to_sym, args, body ],
|
782
|
+
endless_definition_map(def_t, nil, name_t, assignment_t, body))
|
783
|
+
end
|
784
|
+
|
785
|
+
def def_singleton(def_t, definee, dot_t,
|
786
|
+
name_t, args,
|
787
|
+
body, end_t)
|
788
|
+
validate_definee(definee)
|
789
|
+
check_reserved_for_numparam(value(name_t), loc(name_t))
|
790
|
+
|
791
|
+
n(:defs, [ definee, value(name_t).to_sym, args, body ],
|
792
|
+
definition_map(def_t, dot_t, name_t, end_t))
|
793
|
+
end
|
794
|
+
|
795
|
+
def def_endless_singleton(def_t, definee, dot_t,
|
796
|
+
name_t, args,
|
797
|
+
assignment_t, body)
|
798
|
+
validate_definee(definee)
|
799
|
+
check_reserved_for_numparam(value(name_t), loc(name_t))
|
800
|
+
|
801
|
+
n(:defs, [ definee, value(name_t).to_sym, args, body ],
|
802
|
+
endless_definition_map(def_t, dot_t, name_t, assignment_t, body))
|
803
|
+
end
|
804
|
+
|
805
|
+
def undef_method(undef_t, names)
|
806
|
+
n(:undef, [ *names ],
|
807
|
+
keyword_map(undef_t, nil, names, nil))
|
808
|
+
end
|
809
|
+
|
810
|
+
def alias(alias_t, to, from)
|
811
|
+
n(:alias, [ to, from ],
|
812
|
+
keyword_map(alias_t, nil, [to, from], nil))
|
813
|
+
end
|
814
|
+
|
815
|
+
#
|
816
|
+
# Formal arguments
|
817
|
+
#
|
818
|
+
|
819
|
+
def args(begin_t, args, end_t, check_args=true)
|
820
|
+
args = check_duplicate_args(args) if check_args
|
821
|
+
n(:args, args,
|
822
|
+
collection_map(begin_t, args, end_t))
|
823
|
+
end
|
824
|
+
|
825
|
+
def numargs(max_numparam)
|
826
|
+
n(:numargs, [ max_numparam ], nil)
|
827
|
+
end
|
828
|
+
|
829
|
+
def forward_only_args(begin_t, dots_t, end_t)
|
830
|
+
if self.class.emit_forward_arg
|
831
|
+
arg = forward_arg(dots_t)
|
832
|
+
n(:args, [ arg ],
|
833
|
+
collection_map(begin_t, [ arg ], end_t))
|
834
|
+
else
|
835
|
+
n(:forward_args, [], collection_map(begin_t, token_map(dots_t), end_t))
|
836
|
+
end
|
837
|
+
end
|
838
|
+
|
839
|
+
def forward_arg(dots_t)
|
840
|
+
n(:forward_arg, [], token_map(dots_t))
|
841
|
+
end
|
842
|
+
|
843
|
+
def arg(name_t)
|
844
|
+
check_reserved_for_numparam(value(name_t), loc(name_t))
|
845
|
+
|
846
|
+
n(:arg, [ value(name_t).to_sym ],
|
847
|
+
variable_map(name_t))
|
848
|
+
end
|
849
|
+
|
850
|
+
def optarg(name_t, eql_t, value)
|
851
|
+
check_reserved_for_numparam(value(name_t), loc(name_t))
|
852
|
+
|
853
|
+
n(:optarg, [ value(name_t).to_sym, value ],
|
854
|
+
variable_map(name_t).
|
855
|
+
with_operator(loc(eql_t)).
|
856
|
+
with_expression(loc(name_t).join(value.loc.expression)))
|
857
|
+
end
|
858
|
+
|
859
|
+
def restarg(star_t, name_t=nil)
|
860
|
+
if name_t
|
861
|
+
check_reserved_for_numparam(value(name_t), loc(name_t))
|
862
|
+
n(:restarg, [ value(name_t).to_sym ],
|
863
|
+
arg_prefix_map(star_t, name_t))
|
864
|
+
else
|
865
|
+
n0(:restarg,
|
866
|
+
arg_prefix_map(star_t))
|
867
|
+
end
|
868
|
+
end
|
869
|
+
|
870
|
+
def kwarg(name_t)
|
871
|
+
check_reserved_for_numparam(value(name_t), loc(name_t))
|
872
|
+
|
873
|
+
n(:kwarg, [ value(name_t).to_sym ],
|
874
|
+
kwarg_map(name_t))
|
875
|
+
end
|
876
|
+
|
877
|
+
def kwoptarg(name_t, value)
|
878
|
+
check_reserved_for_numparam(value(name_t), loc(name_t))
|
879
|
+
|
880
|
+
n(:kwoptarg, [ value(name_t).to_sym, value ],
|
881
|
+
kwarg_map(name_t, value))
|
882
|
+
end
|
883
|
+
|
884
|
+
def kwrestarg(dstar_t, name_t=nil)
|
885
|
+
if name_t
|
886
|
+
check_reserved_for_numparam(value(name_t), loc(name_t))
|
887
|
+
|
888
|
+
n(:kwrestarg, [ value(name_t).to_sym ],
|
889
|
+
arg_prefix_map(dstar_t, name_t))
|
890
|
+
else
|
891
|
+
n0(:kwrestarg,
|
892
|
+
arg_prefix_map(dstar_t))
|
893
|
+
end
|
894
|
+
end
|
895
|
+
|
896
|
+
def kwnilarg(dstar_t, nil_t)
|
897
|
+
n0(:kwnilarg,
|
898
|
+
arg_prefix_map(dstar_t, nil_t))
|
899
|
+
end
|
900
|
+
|
901
|
+
def shadowarg(name_t)
|
902
|
+
check_reserved_for_numparam(value(name_t), loc(name_t))
|
903
|
+
|
904
|
+
n(:shadowarg, [ value(name_t).to_sym ],
|
905
|
+
variable_map(name_t))
|
906
|
+
end
|
907
|
+
|
908
|
+
def blockarg(amper_t, name_t)
|
909
|
+
check_reserved_for_numparam(value(name_t), loc(name_t))
|
910
|
+
|
911
|
+
n(:blockarg, [ value(name_t).to_sym ],
|
912
|
+
arg_prefix_map(amper_t, name_t))
|
913
|
+
end
|
914
|
+
|
915
|
+
def procarg0(arg)
|
916
|
+
if self.class.emit_procarg0
|
917
|
+
if arg.type == :arg && self.class.emit_arg_inside_procarg0
|
918
|
+
n(:procarg0, [ arg ],
|
919
|
+
Source::Map::Collection.new(nil, nil, arg.location.expression))
|
920
|
+
else
|
921
|
+
arg.updated(:procarg0)
|
922
|
+
end
|
923
|
+
else
|
924
|
+
arg
|
925
|
+
end
|
926
|
+
end
|
927
|
+
|
928
|
+
# Ruby 1.8 block arguments
|
929
|
+
|
930
|
+
def arg_expr(expr)
|
931
|
+
if expr.type == :lvasgn
|
932
|
+
expr.updated(:arg)
|
933
|
+
else
|
934
|
+
n(:arg_expr, [ expr ],
|
935
|
+
expr.loc.dup)
|
936
|
+
end
|
937
|
+
end
|
938
|
+
|
939
|
+
def restarg_expr(star_t, expr=nil)
|
940
|
+
if expr.nil?
|
941
|
+
n0(:restarg, token_map(star_t))
|
942
|
+
elsif expr.type == :lvasgn
|
943
|
+
expr.updated(:restarg)
|
944
|
+
else
|
945
|
+
n(:restarg_expr, [ expr ],
|
946
|
+
expr.loc.dup)
|
947
|
+
end
|
948
|
+
end
|
949
|
+
|
950
|
+
def blockarg_expr(amper_t, expr)
|
951
|
+
if expr.type == :lvasgn
|
952
|
+
expr.updated(:blockarg)
|
953
|
+
else
|
954
|
+
n(:blockarg_expr, [ expr ],
|
955
|
+
expr.loc.dup)
|
956
|
+
end
|
957
|
+
end
|
958
|
+
|
959
|
+
# MacRuby Objective-C arguments
|
960
|
+
|
961
|
+
def objc_kwarg(kwname_t, assoc_t, name_t)
|
962
|
+
kwname_l = loc(kwname_t)
|
963
|
+
if assoc_t.nil? # a: b, not a => b
|
964
|
+
kwname_l = kwname_l.resize(kwname_l.size - 1)
|
965
|
+
operator_l = kwname_l.end.resize(1)
|
966
|
+
else
|
967
|
+
operator_l = loc(assoc_t)
|
968
|
+
end
|
969
|
+
|
970
|
+
n(:objc_kwarg, [ value(kwname_t).to_sym, value(name_t).to_sym ],
|
971
|
+
Source::Map::ObjcKwarg.new(kwname_l, operator_l, loc(name_t),
|
972
|
+
kwname_l.join(loc(name_t))))
|
973
|
+
end
|
974
|
+
|
975
|
+
def objc_restarg(star_t, name=nil)
|
976
|
+
if name.nil?
|
977
|
+
n0(:restarg, arg_prefix_map(star_t))
|
978
|
+
elsif name.type == :arg # regular restarg
|
979
|
+
name.updated(:restarg, nil,
|
980
|
+
{ :location => name.loc.with_operator(loc(star_t)) })
|
981
|
+
else # restarg with objc_kwarg inside
|
982
|
+
n(:objc_restarg, [ name ],
|
983
|
+
unary_op_map(star_t, name))
|
984
|
+
end
|
985
|
+
end
|
986
|
+
|
987
|
+
#
|
988
|
+
# Method calls
|
989
|
+
#
|
990
|
+
|
991
|
+
def call_type_for_dot(dot_t)
|
992
|
+
if !dot_t.nil? && value(dot_t) == :anddot
|
993
|
+
:csend
|
994
|
+
else
|
995
|
+
# This case is a bit tricky. ruby23.y returns the token tDOT with
|
996
|
+
# the value :dot, and the token :tANDDOT with the value :anddot.
|
997
|
+
#
|
998
|
+
# But, ruby{18..22}.y (which unconditionally expect tDOT) just
|
999
|
+
# return "." there, since they are to be kept close to the corresponding
|
1000
|
+
# Ruby MRI grammars.
|
1001
|
+
#
|
1002
|
+
# Thankfully, we don't have to care.
|
1003
|
+
:send
|
1004
|
+
end
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
def forwarded_args(dots_t)
|
1008
|
+
n(:forwarded_args, [], token_map(dots_t))
|
1009
|
+
end
|
1010
|
+
|
1011
|
+
def call_method(receiver, dot_t, selector_t,
|
1012
|
+
lparen_t=nil, args=[], rparen_t=nil)
|
1013
|
+
type = call_type_for_dot(dot_t)
|
1014
|
+
|
1015
|
+
if self.class.emit_kwargs
|
1016
|
+
rewrite_hash_args_to_kwargs(args)
|
1017
|
+
end
|
1018
|
+
|
1019
|
+
if selector_t.nil?
|
1020
|
+
n(type, [ receiver, :call, *args ],
|
1021
|
+
send_map(receiver, dot_t, nil, lparen_t, args, rparen_t))
|
1022
|
+
else
|
1023
|
+
n(type, [ receiver, value(selector_t).to_sym, *args ],
|
1024
|
+
send_map(receiver, dot_t, selector_t, lparen_t, args, rparen_t))
|
1025
|
+
end
|
1026
|
+
end
|
1027
|
+
|
1028
|
+
def call_lambda(lambda_t)
|
1029
|
+
if self.class.emit_lambda
|
1030
|
+
n0(:lambda, expr_map(loc(lambda_t)))
|
1031
|
+
else
|
1032
|
+
n(:send, [ nil, :lambda ],
|
1033
|
+
send_map(nil, nil, lambda_t))
|
1034
|
+
end
|
1035
|
+
end
|
1036
|
+
|
1037
|
+
def block(method_call, begin_t, args, body, end_t)
|
1038
|
+
_receiver, _selector, *call_args = *method_call
|
1039
|
+
|
1040
|
+
if method_call.type == :yield
|
1041
|
+
diagnostic :error, :block_given_to_yield, nil, method_call.loc.keyword, [loc(begin_t)]
|
1042
|
+
end
|
1043
|
+
|
1044
|
+
last_arg = call_args.last
|
1045
|
+
if last_arg && (last_arg.type == :block_pass || last_arg.type == :forwarded_args)
|
1046
|
+
diagnostic :error, :block_and_blockarg, nil, last_arg.loc.expression, [loc(begin_t)]
|
1047
|
+
end
|
1048
|
+
|
1049
|
+
if args.type == :numargs
|
1050
|
+
block_type = :numblock
|
1051
|
+
args = args.children[0]
|
1052
|
+
else
|
1053
|
+
block_type = :block
|
1054
|
+
end
|
1055
|
+
|
1056
|
+
if [:send, :csend, :index, :super, :zsuper, :lambda].include?(method_call.type)
|
1057
|
+
n(block_type, [ method_call, args, body ],
|
1058
|
+
block_map(method_call.loc.expression, begin_t, end_t))
|
1059
|
+
else
|
1060
|
+
# Code like "return foo 1 do end" is reduced in a weird sequence.
|
1061
|
+
# Here, method_call is actually (return).
|
1062
|
+
actual_send, = *method_call
|
1063
|
+
block =
|
1064
|
+
n(block_type, [ actual_send, args, body ],
|
1065
|
+
block_map(actual_send.loc.expression, begin_t, end_t))
|
1066
|
+
|
1067
|
+
n(method_call.type, [ block ],
|
1068
|
+
method_call.loc.with_expression(join_exprs(method_call, block)))
|
1069
|
+
end
|
1070
|
+
end
|
1071
|
+
|
1072
|
+
def block_pass(amper_t, arg)
|
1073
|
+
n(:block_pass, [ arg ],
|
1074
|
+
unary_op_map(amper_t, arg))
|
1075
|
+
end
|
1076
|
+
|
1077
|
+
def objc_varargs(pair, rest_of_varargs)
|
1078
|
+
value, first_vararg = *pair
|
1079
|
+
vararg_array = array(nil, [ first_vararg, *rest_of_varargs ], nil).
|
1080
|
+
updated(:objc_varargs)
|
1081
|
+
pair.updated(nil, [ value, vararg_array ],
|
1082
|
+
{ :location => pair.loc.with_expression(
|
1083
|
+
pair.loc.expression.join(vararg_array.loc.expression)) })
|
1084
|
+
end
|
1085
|
+
|
1086
|
+
def attr_asgn(receiver, dot_t, selector_t)
|
1087
|
+
method_name = (value(selector_t) + '=').to_sym
|
1088
|
+
type = call_type_for_dot(dot_t)
|
1089
|
+
|
1090
|
+
# Incomplete method call.
|
1091
|
+
n(type, [ receiver, method_name ],
|
1092
|
+
send_map(receiver, dot_t, selector_t))
|
1093
|
+
end
|
1094
|
+
|
1095
|
+
def index(receiver, lbrack_t, indexes, rbrack_t)
|
1096
|
+
if self.class.emit_kwargs
|
1097
|
+
rewrite_hash_args_to_kwargs(indexes)
|
1098
|
+
end
|
1099
|
+
|
1100
|
+
if self.class.emit_index
|
1101
|
+
n(:index, [ receiver, *indexes ],
|
1102
|
+
index_map(receiver, lbrack_t, rbrack_t))
|
1103
|
+
else
|
1104
|
+
n(:send, [ receiver, :[], *indexes ],
|
1105
|
+
send_index_map(receiver, lbrack_t, rbrack_t))
|
1106
|
+
end
|
1107
|
+
end
|
1108
|
+
|
1109
|
+
def index_asgn(receiver, lbrack_t, indexes, rbrack_t)
|
1110
|
+
if self.class.emit_index
|
1111
|
+
n(:indexasgn, [ receiver, *indexes ],
|
1112
|
+
index_map(receiver, lbrack_t, rbrack_t))
|
1113
|
+
else
|
1114
|
+
# Incomplete method call.
|
1115
|
+
n(:send, [ receiver, :[]=, *indexes ],
|
1116
|
+
send_index_map(receiver, lbrack_t, rbrack_t))
|
1117
|
+
end
|
1118
|
+
end
|
1119
|
+
|
1120
|
+
def binary_op(receiver, operator_t, arg)
|
1121
|
+
source_map = send_binary_op_map(receiver, operator_t, arg)
|
1122
|
+
|
1123
|
+
if @parser.version == 18
|
1124
|
+
operator = value(operator_t)
|
1125
|
+
|
1126
|
+
if operator == '!='
|
1127
|
+
method_call = n(:send, [ receiver, :==, arg ], source_map)
|
1128
|
+
elsif operator == '!~'
|
1129
|
+
method_call = n(:send, [ receiver, :=~, arg ], source_map)
|
1130
|
+
end
|
1131
|
+
|
1132
|
+
if %w(!= !~).include?(operator)
|
1133
|
+
return n(:not, [ method_call ],
|
1134
|
+
expr_map(source_map.expression))
|
1135
|
+
end
|
1136
|
+
end
|
1137
|
+
|
1138
|
+
n(:send, [ receiver, value(operator_t).to_sym, arg ],
|
1139
|
+
source_map)
|
1140
|
+
end
|
1141
|
+
|
1142
|
+
def match_op(receiver, match_t, arg)
|
1143
|
+
source_map = send_binary_op_map(receiver, match_t, arg)
|
1144
|
+
|
1145
|
+
if (regexp = static_regexp_node(receiver))
|
1146
|
+
regexp.names.each do |name|
|
1147
|
+
@parser.static_env.declare(name)
|
1148
|
+
end
|
1149
|
+
|
1150
|
+
n(:match_with_lvasgn, [ receiver, arg ],
|
1151
|
+
source_map)
|
1152
|
+
else
|
1153
|
+
n(:send, [ receiver, :=~, arg ],
|
1154
|
+
source_map)
|
1155
|
+
end
|
1156
|
+
end
|
1157
|
+
|
1158
|
+
def unary_op(op_t, receiver)
|
1159
|
+
case value(op_t)
|
1160
|
+
when '+', '-'
|
1161
|
+
method = value(op_t) + '@'
|
1162
|
+
else
|
1163
|
+
method = value(op_t)
|
1164
|
+
end
|
1165
|
+
|
1166
|
+
n(:send, [ receiver, method.to_sym ],
|
1167
|
+
send_unary_op_map(op_t, receiver))
|
1168
|
+
end
|
1169
|
+
|
1170
|
+
def not_op(not_t, begin_t=nil, receiver=nil, end_t=nil)
|
1171
|
+
if @parser.version == 18
|
1172
|
+
n(:not, [ check_condition(receiver) ],
|
1173
|
+
unary_op_map(not_t, receiver))
|
1174
|
+
else
|
1175
|
+
if receiver.nil?
|
1176
|
+
nil_node = n0(:begin, collection_map(begin_t, nil, end_t))
|
1177
|
+
|
1178
|
+
n(:send, [
|
1179
|
+
nil_node, :'!'
|
1180
|
+
], send_unary_op_map(not_t, nil_node))
|
1181
|
+
else
|
1182
|
+
n(:send, [ check_condition(receiver), :'!' ],
|
1183
|
+
send_map(nil, nil, not_t, begin_t, [receiver], end_t))
|
1184
|
+
end
|
1185
|
+
end
|
1186
|
+
end
|
1187
|
+
|
1188
|
+
#
|
1189
|
+
# Control flow
|
1190
|
+
#
|
1191
|
+
|
1192
|
+
# Logical operations: and, or
|
1193
|
+
|
1194
|
+
def logical_op(type, lhs, op_t, rhs)
|
1195
|
+
n(type, [ lhs, rhs ],
|
1196
|
+
binary_op_map(lhs, op_t, rhs))
|
1197
|
+
end
|
1198
|
+
|
1199
|
+
# Conditionals
|
1200
|
+
|
1201
|
+
def condition(cond_t, cond, then_t,
|
1202
|
+
if_true, else_t, if_false, end_t)
|
1203
|
+
n(:if, [ check_condition(cond), if_true, if_false ],
|
1204
|
+
condition_map(cond_t, cond, then_t, if_true, else_t, if_false, end_t))
|
1205
|
+
end
|
1206
|
+
|
1207
|
+
def condition_mod(if_true, if_false, cond_t, cond)
|
1208
|
+
n(:if, [ check_condition(cond), if_true, if_false ],
|
1209
|
+
keyword_mod_map(if_true || if_false, cond_t, cond))
|
1210
|
+
end
|
1211
|
+
|
1212
|
+
def ternary(cond, question_t, if_true, colon_t, if_false)
|
1213
|
+
n(:if, [ check_condition(cond), if_true, if_false ],
|
1214
|
+
ternary_map(cond, question_t, if_true, colon_t, if_false))
|
1215
|
+
end
|
1216
|
+
|
1217
|
+
# Case matching
|
1218
|
+
|
1219
|
+
def when(when_t, patterns, then_t, body)
|
1220
|
+
children = patterns << body
|
1221
|
+
n(:when, children,
|
1222
|
+
keyword_map(when_t, then_t, children, nil))
|
1223
|
+
end
|
1224
|
+
|
1225
|
+
def case(case_t, expr, when_bodies, else_t, else_body, end_t)
|
1226
|
+
n(:case, [ expr, *(when_bodies << else_body)],
|
1227
|
+
condition_map(case_t, expr, nil, nil, else_t, else_body, end_t))
|
1228
|
+
end
|
1229
|
+
|
1230
|
+
# Loops
|
1231
|
+
|
1232
|
+
def loop(type, keyword_t, cond, do_t, body, end_t)
|
1233
|
+
n(type, [ check_condition(cond), body ],
|
1234
|
+
keyword_map(keyword_t, do_t, nil, end_t))
|
1235
|
+
end
|
1236
|
+
|
1237
|
+
def loop_mod(type, body, keyword_t, cond)
|
1238
|
+
if body.type == :kwbegin
|
1239
|
+
type = :"#{type}_post"
|
1240
|
+
end
|
1241
|
+
|
1242
|
+
n(type, [ check_condition(cond), body ],
|
1243
|
+
keyword_mod_map(body, keyword_t, cond))
|
1244
|
+
end
|
1245
|
+
|
1246
|
+
def for(for_t, iterator, in_t, iteratee,
|
1247
|
+
do_t, body, end_t)
|
1248
|
+
n(:for, [ iterator, iteratee, body ],
|
1249
|
+
for_map(for_t, in_t, do_t, end_t))
|
1250
|
+
end
|
1251
|
+
|
1252
|
+
# Keywords
|
1253
|
+
|
1254
|
+
def keyword_cmd(type, keyword_t, lparen_t=nil, args=[], rparen_t=nil)
|
1255
|
+
if type == :yield && args.count > 0
|
1256
|
+
last_arg = args.last
|
1257
|
+
if last_arg.type == :block_pass
|
1258
|
+
diagnostic :error, :block_given_to_yield, nil, loc(keyword_t), [last_arg.loc.expression]
|
1259
|
+
end
|
1260
|
+
end
|
1261
|
+
|
1262
|
+
if %i[yield super].include?(type) && self.class.emit_kwargs
|
1263
|
+
rewrite_hash_args_to_kwargs(args)
|
1264
|
+
end
|
1265
|
+
|
1266
|
+
n(type, args,
|
1267
|
+
keyword_map(keyword_t, lparen_t, args, rparen_t))
|
1268
|
+
end
|
1269
|
+
|
1270
|
+
# BEGIN, END
|
1271
|
+
|
1272
|
+
def preexe(preexe_t, lbrace_t, compstmt, rbrace_t)
|
1273
|
+
n(:preexe, [ compstmt ],
|
1274
|
+
keyword_map(preexe_t, lbrace_t, [], rbrace_t))
|
1275
|
+
end
|
1276
|
+
|
1277
|
+
def postexe(postexe_t, lbrace_t, compstmt, rbrace_t)
|
1278
|
+
n(:postexe, [ compstmt ],
|
1279
|
+
keyword_map(postexe_t, lbrace_t, [], rbrace_t))
|
1280
|
+
end
|
1281
|
+
|
1282
|
+
# Exception handling
|
1283
|
+
|
1284
|
+
def rescue_body(rescue_t,
|
1285
|
+
exc_list, assoc_t, exc_var,
|
1286
|
+
then_t, compound_stmt)
|
1287
|
+
n(:resbody, [ exc_list, exc_var, compound_stmt ],
|
1288
|
+
rescue_body_map(rescue_t, exc_list, assoc_t,
|
1289
|
+
exc_var, then_t, compound_stmt))
|
1290
|
+
end
|
1291
|
+
|
1292
|
+
def begin_body(compound_stmt, rescue_bodies=[],
|
1293
|
+
else_t=nil, else_=nil,
|
1294
|
+
ensure_t=nil, ensure_=nil)
|
1295
|
+
if rescue_bodies.any?
|
1296
|
+
if else_t
|
1297
|
+
compound_stmt =
|
1298
|
+
n(:rescue,
|
1299
|
+
[ compound_stmt, *(rescue_bodies + [ else_ ]) ],
|
1300
|
+
eh_keyword_map(compound_stmt, nil, rescue_bodies, else_t, else_))
|
1301
|
+
else
|
1302
|
+
compound_stmt =
|
1303
|
+
n(:rescue,
|
1304
|
+
[ compound_stmt, *(rescue_bodies + [ nil ]) ],
|
1305
|
+
eh_keyword_map(compound_stmt, nil, rescue_bodies, nil, nil))
|
1306
|
+
end
|
1307
|
+
elsif else_t
|
1308
|
+
statements = []
|
1309
|
+
if !compound_stmt.nil?
|
1310
|
+
if compound_stmt.type == :begin
|
1311
|
+
statements += compound_stmt.children
|
1312
|
+
else
|
1313
|
+
statements.push(compound_stmt)
|
1314
|
+
end
|
1315
|
+
end
|
1316
|
+
statements.push(
|
1317
|
+
n(:begin, [ else_ ],
|
1318
|
+
collection_map(else_t, [ else_ ], nil)))
|
1319
|
+
compound_stmt =
|
1320
|
+
n(:begin, statements,
|
1321
|
+
collection_map(nil, statements, nil))
|
1322
|
+
end
|
1323
|
+
|
1324
|
+
if ensure_t
|
1325
|
+
compound_stmt =
|
1326
|
+
n(:ensure,
|
1327
|
+
[ compound_stmt, ensure_ ],
|
1328
|
+
eh_keyword_map(compound_stmt, ensure_t, [ ensure_ ], nil, nil))
|
1329
|
+
end
|
1330
|
+
|
1331
|
+
compound_stmt
|
1332
|
+
end
|
1333
|
+
|
1334
|
+
#
|
1335
|
+
# Expression grouping
|
1336
|
+
#
|
1337
|
+
|
1338
|
+
def compstmt(statements)
|
1339
|
+
case
|
1340
|
+
when statements.none?
|
1341
|
+
nil
|
1342
|
+
when statements.one?
|
1343
|
+
statements.first
|
1344
|
+
else
|
1345
|
+
n(:begin, statements,
|
1346
|
+
collection_map(nil, statements, nil))
|
1347
|
+
end
|
1348
|
+
end
|
1349
|
+
|
1350
|
+
def begin(begin_t, body, end_t)
|
1351
|
+
if body.nil?
|
1352
|
+
# A nil expression: `()'.
|
1353
|
+
n0(:begin,
|
1354
|
+
collection_map(begin_t, nil, end_t))
|
1355
|
+
elsif body.type == :mlhs ||
|
1356
|
+
(body.type == :begin &&
|
1357
|
+
body.loc.begin.nil? && body.loc.end.nil?)
|
1358
|
+
# Synthesized (begin) from compstmt "a; b" or (mlhs)
|
1359
|
+
# from multi_lhs "(a, b) = *foo".
|
1360
|
+
n(body.type, body.children,
|
1361
|
+
collection_map(begin_t, body.children, end_t))
|
1362
|
+
else
|
1363
|
+
n(:begin, [ body ],
|
1364
|
+
collection_map(begin_t, [ body ], end_t))
|
1365
|
+
end
|
1366
|
+
end
|
1367
|
+
|
1368
|
+
def begin_keyword(begin_t, body, end_t)
|
1369
|
+
if body.nil?
|
1370
|
+
# A nil expression: `begin end'.
|
1371
|
+
n0(:kwbegin,
|
1372
|
+
collection_map(begin_t, nil, end_t))
|
1373
|
+
elsif (body.type == :begin &&
|
1374
|
+
body.loc.begin.nil? && body.loc.end.nil?)
|
1375
|
+
# Synthesized (begin) from compstmt "a; b".
|
1376
|
+
n(:kwbegin, body.children,
|
1377
|
+
collection_map(begin_t, body.children, end_t))
|
1378
|
+
else
|
1379
|
+
n(:kwbegin, [ body ],
|
1380
|
+
collection_map(begin_t, [ body ], end_t))
|
1381
|
+
end
|
1382
|
+
end
|
1383
|
+
|
1384
|
+
#
|
1385
|
+
# PATTERN MATCHING
|
1386
|
+
#
|
1387
|
+
|
1388
|
+
def case_match(case_t, expr, in_bodies, else_t, else_body, end_t)
|
1389
|
+
else_body = n(:empty_else, nil, token_map(else_t)) if else_t && !else_body
|
1390
|
+
n(:case_match, [ expr, *(in_bodies << else_body)],
|
1391
|
+
condition_map(case_t, expr, nil, nil, else_t, else_body, end_t))
|
1392
|
+
end
|
1393
|
+
|
1394
|
+
def in_match(lhs, in_t, rhs)
|
1395
|
+
n(:in_match, [lhs, rhs],
|
1396
|
+
binary_op_map(lhs, in_t, rhs))
|
1397
|
+
end
|
1398
|
+
|
1399
|
+
def match_pattern(lhs, match_t, rhs)
|
1400
|
+
n(:match_pattern, [lhs, rhs],
|
1401
|
+
binary_op_map(lhs, match_t, rhs))
|
1402
|
+
end
|
1403
|
+
|
1404
|
+
def match_pattern_p(lhs, match_t, rhs)
|
1405
|
+
n(:match_pattern_p, [lhs, rhs],
|
1406
|
+
binary_op_map(lhs, match_t, rhs))
|
1407
|
+
end
|
1408
|
+
|
1409
|
+
def in_pattern(in_t, pattern, guard, then_t, body)
|
1410
|
+
children = [pattern, guard, body]
|
1411
|
+
n(:in_pattern, children,
|
1412
|
+
keyword_map(in_t, then_t, children.compact, nil))
|
1413
|
+
end
|
1414
|
+
|
1415
|
+
def if_guard(if_t, if_body)
|
1416
|
+
n(:if_guard, [if_body], guard_map(if_t, if_body))
|
1417
|
+
end
|
1418
|
+
|
1419
|
+
def unless_guard(unless_t, unless_body)
|
1420
|
+
n(:unless_guard, [unless_body], guard_map(unless_t, unless_body))
|
1421
|
+
end
|
1422
|
+
|
1423
|
+
def match_var(name_t)
|
1424
|
+
name = value(name_t).to_sym
|
1425
|
+
name_l = loc(name_t)
|
1426
|
+
|
1427
|
+
check_lvar_name(name, name_l)
|
1428
|
+
check_duplicate_pattern_variable(name, name_l)
|
1429
|
+
@parser.static_env.declare(name)
|
1430
|
+
|
1431
|
+
n(:match_var, [ name ],
|
1432
|
+
variable_map(name_t))
|
1433
|
+
end
|
1434
|
+
|
1435
|
+
def match_hash_var(name_t)
|
1436
|
+
name = value(name_t).to_sym
|
1437
|
+
|
1438
|
+
expr_l = loc(name_t)
|
1439
|
+
name_l = expr_l.adjust(end_pos: -1)
|
1440
|
+
|
1441
|
+
check_lvar_name(name, name_l)
|
1442
|
+
check_duplicate_pattern_variable(name, name_l)
|
1443
|
+
@parser.static_env.declare(name)
|
1444
|
+
|
1445
|
+
n(:match_var, [ name ],
|
1446
|
+
Source::Map::Variable.new(name_l, expr_l))
|
1447
|
+
end
|
1448
|
+
|
1449
|
+
def match_hash_var_from_str(begin_t, strings, end_t)
|
1450
|
+
if strings.length > 1
|
1451
|
+
diagnostic :error, :pm_interp_in_var_name, nil, loc(begin_t).join(loc(end_t))
|
1452
|
+
end
|
1453
|
+
|
1454
|
+
string = strings[0]
|
1455
|
+
|
1456
|
+
case string.type
|
1457
|
+
when :str
|
1458
|
+
# MRI supports plain strings in hash pattern matching
|
1459
|
+
name, = *string
|
1460
|
+
name_l = string.loc.expression
|
1461
|
+
|
1462
|
+
check_lvar_name(name, name_l)
|
1463
|
+
check_duplicate_pattern_variable(name, name_l)
|
1464
|
+
|
1465
|
+
@parser.static_env.declare(name)
|
1466
|
+
|
1467
|
+
if (begin_l = string.loc.begin)
|
1468
|
+
# exclude beginning of the string from the location of the variable
|
1469
|
+
name_l = name_l.adjust(begin_pos: begin_l.length)
|
1470
|
+
end
|
1471
|
+
|
1472
|
+
if (end_l = string.loc.end)
|
1473
|
+
# exclude end of the string from the location of the variable
|
1474
|
+
name_l = name_l.adjust(end_pos: -end_l.length)
|
1475
|
+
end
|
1476
|
+
|
1477
|
+
expr_l = loc(begin_t).join(string.loc.expression).join(loc(end_t))
|
1478
|
+
n(:match_var, [ name.to_sym ],
|
1479
|
+
Source::Map::Variable.new(name_l, expr_l))
|
1480
|
+
when :begin
|
1481
|
+
match_hash_var_from_str(begin_t, string.children, end_t)
|
1482
|
+
else
|
1483
|
+
# we only can get here if there is an interpolation, e.g., ``in "#{ a }":`
|
1484
|
+
diagnostic :error, :pm_interp_in_var_name, nil, loc(begin_t).join(loc(end_t))
|
1485
|
+
end
|
1486
|
+
end
|
1487
|
+
|
1488
|
+
def match_rest(star_t, name_t = nil)
|
1489
|
+
if name_t.nil?
|
1490
|
+
n0(:match_rest,
|
1491
|
+
unary_op_map(star_t))
|
1492
|
+
else
|
1493
|
+
name = match_var(name_t)
|
1494
|
+
n(:match_rest, [ name ],
|
1495
|
+
unary_op_map(star_t, name))
|
1496
|
+
end
|
1497
|
+
end
|
1498
|
+
|
1499
|
+
def hash_pattern(lbrace_t, kwargs, rbrace_t)
|
1500
|
+
args = check_duplicate_args(kwargs)
|
1501
|
+
n(:hash_pattern, args,
|
1502
|
+
collection_map(lbrace_t, args, rbrace_t))
|
1503
|
+
end
|
1504
|
+
|
1505
|
+
def array_pattern(lbrack_t, elements, rbrack_t)
|
1506
|
+
return n(:array_pattern, nil, collection_map(lbrack_t, [], rbrack_t)) if elements.nil?
|
1507
|
+
|
1508
|
+
trailing_comma = false
|
1509
|
+
|
1510
|
+
node_elements = elements.map do |element|
|
1511
|
+
if element.type == :match_with_trailing_comma
|
1512
|
+
trailing_comma = true
|
1513
|
+
element.children.first
|
1514
|
+
else
|
1515
|
+
trailing_comma = false
|
1516
|
+
element
|
1517
|
+
end
|
1518
|
+
end
|
1519
|
+
|
1520
|
+
node_type = trailing_comma ? :array_pattern_with_tail : :array_pattern
|
1521
|
+
|
1522
|
+
n(node_type, node_elements,
|
1523
|
+
collection_map(lbrack_t, elements, rbrack_t))
|
1524
|
+
end
|
1525
|
+
|
1526
|
+
def find_pattern(lbrack_t, elements, rbrack_t)
|
1527
|
+
n(:find_pattern, elements,
|
1528
|
+
collection_map(lbrack_t, elements, rbrack_t))
|
1529
|
+
end
|
1530
|
+
|
1531
|
+
def match_with_trailing_comma(match, comma_t)
|
1532
|
+
n(:match_with_trailing_comma, [ match ], expr_map(match.loc.expression.join(loc(comma_t))))
|
1533
|
+
end
|
1534
|
+
|
1535
|
+
def const_pattern(const, ldelim_t, pattern, rdelim_t)
|
1536
|
+
n(:const_pattern, [const, pattern],
|
1537
|
+
Source::Map::Collection.new(
|
1538
|
+
loc(ldelim_t), loc(rdelim_t),
|
1539
|
+
const.loc.expression.join(loc(rdelim_t))
|
1540
|
+
)
|
1541
|
+
)
|
1542
|
+
end
|
1543
|
+
|
1544
|
+
def pin(pin_t, var)
|
1545
|
+
n(:pin, [ var ],
|
1546
|
+
send_unary_op_map(pin_t, var))
|
1547
|
+
end
|
1548
|
+
|
1549
|
+
def match_alt(left, pipe_t, right)
|
1550
|
+
source_map = binary_op_map(left, pipe_t, right)
|
1551
|
+
|
1552
|
+
n(:match_alt, [ left, right ],
|
1553
|
+
source_map)
|
1554
|
+
end
|
1555
|
+
|
1556
|
+
def match_as(value, assoc_t, as)
|
1557
|
+
source_map = binary_op_map(value, assoc_t, as)
|
1558
|
+
|
1559
|
+
n(:match_as, [ value, as ],
|
1560
|
+
source_map)
|
1561
|
+
end
|
1562
|
+
|
1563
|
+
def match_nil_pattern(dstar_t, nil_t)
|
1564
|
+
n0(:match_nil_pattern,
|
1565
|
+
arg_prefix_map(dstar_t, nil_t))
|
1566
|
+
end
|
1567
|
+
|
1568
|
+
def match_pair(label_type, label, value)
|
1569
|
+
if label_type == :label
|
1570
|
+
check_duplicate_pattern_key(label[0], label[1])
|
1571
|
+
pair_keyword(label, value)
|
1572
|
+
else
|
1573
|
+
begin_t, parts, end_t = label
|
1574
|
+
label_loc = loc(begin_t).join(loc(end_t))
|
1575
|
+
|
1576
|
+
# quoted label like "label": value
|
1577
|
+
if (var_name = static_string(parts))
|
1578
|
+
check_duplicate_pattern_key(var_name, label_loc)
|
1579
|
+
else
|
1580
|
+
diagnostic :error, :pm_interp_in_var_name, nil, label_loc
|
1581
|
+
end
|
1582
|
+
|
1583
|
+
pair_quoted(begin_t, parts, end_t, value)
|
1584
|
+
end
|
1585
|
+
end
|
1586
|
+
|
1587
|
+
def match_label(label_type, label)
|
1588
|
+
if label_type == :label
|
1589
|
+
match_hash_var(label)
|
1590
|
+
else
|
1591
|
+
# quoted label like "label": value
|
1592
|
+
begin_t, strings, end_t = label
|
1593
|
+
match_hash_var_from_str(begin_t, strings, end_t)
|
1594
|
+
end
|
1595
|
+
end
|
1596
|
+
|
1597
|
+
private
|
1598
|
+
|
1599
|
+
#
|
1600
|
+
# VERIFICATION
|
1601
|
+
#
|
1602
|
+
|
1603
|
+
def check_condition(cond)
|
1604
|
+
case cond.type
|
1605
|
+
when :masgn
|
1606
|
+
if @parser.version <= 23
|
1607
|
+
diagnostic :error, :masgn_as_condition, nil, cond.loc.expression
|
1608
|
+
else
|
1609
|
+
cond
|
1610
|
+
end
|
1611
|
+
|
1612
|
+
when :begin
|
1613
|
+
if cond.children.count == 1
|
1614
|
+
cond.updated(nil, [
|
1615
|
+
check_condition(cond.children.last)
|
1616
|
+
])
|
1617
|
+
else
|
1618
|
+
cond
|
1619
|
+
end
|
1620
|
+
|
1621
|
+
when :and, :or, :irange, :erange
|
1622
|
+
lhs, rhs = *cond
|
1623
|
+
|
1624
|
+
type = case cond.type
|
1625
|
+
when :irange then :iflipflop
|
1626
|
+
when :erange then :eflipflop
|
1627
|
+
end
|
1628
|
+
|
1629
|
+
if [:and, :or].include?(cond.type) &&
|
1630
|
+
@parser.version == 18
|
1631
|
+
cond
|
1632
|
+
else
|
1633
|
+
cond.updated(type, [
|
1634
|
+
check_condition(lhs),
|
1635
|
+
check_condition(rhs)
|
1636
|
+
])
|
1637
|
+
end
|
1638
|
+
|
1639
|
+
when :regexp
|
1640
|
+
n(:match_current_line, [ cond ], expr_map(cond.loc.expression))
|
1641
|
+
|
1642
|
+
else
|
1643
|
+
cond
|
1644
|
+
end
|
1645
|
+
end
|
1646
|
+
|
1647
|
+
def check_duplicate_args(args, map={})
|
1648
|
+
args.each do |this_arg|
|
1649
|
+
case this_arg.type
|
1650
|
+
when :arg, :optarg, :restarg, :blockarg,
|
1651
|
+
:kwarg, :kwoptarg, :kwrestarg,
|
1652
|
+
:shadowarg
|
1653
|
+
|
1654
|
+
check_duplicate_arg(this_arg, map)
|
1655
|
+
|
1656
|
+
when :procarg0
|
1657
|
+
|
1658
|
+
if this_arg.children[0].is_a?(Symbol)
|
1659
|
+
# s(:procarg0, :a)
|
1660
|
+
check_duplicate_arg(this_arg, map)
|
1661
|
+
else
|
1662
|
+
# s(:procarg0, s(:arg, :a), ...)
|
1663
|
+
check_duplicate_args(this_arg.children, map)
|
1664
|
+
end
|
1665
|
+
|
1666
|
+
when :mlhs
|
1667
|
+
check_duplicate_args(this_arg.children, map)
|
1668
|
+
end
|
1669
|
+
end
|
1670
|
+
end
|
1671
|
+
|
1672
|
+
def check_duplicate_arg(this_arg, map={})
|
1673
|
+
this_name, = *this_arg
|
1674
|
+
|
1675
|
+
that_arg = map[this_name]
|
1676
|
+
that_name, = *that_arg
|
1677
|
+
|
1678
|
+
if that_arg.nil?
|
1679
|
+
map[this_name] = this_arg
|
1680
|
+
elsif arg_name_collides?(this_name, that_name)
|
1681
|
+
diagnostic :error, :duplicate_argument, nil,
|
1682
|
+
this_arg.loc.name, [ that_arg.loc.name ]
|
1683
|
+
end
|
1684
|
+
end
|
1685
|
+
|
1686
|
+
def check_assignment_to_numparam(name, loc)
|
1687
|
+
# MRI < 2.7 treats numbered parameters as regular variables
|
1688
|
+
# and so it's allowed to perform assignments like `_1 = 42`.
|
1689
|
+
return if @parser.version < 27
|
1690
|
+
|
1691
|
+
assigning_to_numparam =
|
1692
|
+
@parser.context.in_dynamic_block? &&
|
1693
|
+
name =~ /\A_([1-9])\z/ &&
|
1694
|
+
@parser.max_numparam_stack.has_numparams?
|
1695
|
+
|
1696
|
+
if assigning_to_numparam
|
1697
|
+
diagnostic :error, :cant_assign_to_numparam, { :name => name }, loc
|
1698
|
+
end
|
1699
|
+
end
|
1700
|
+
|
1701
|
+
def check_reserved_for_numparam(name, loc)
|
1702
|
+
# MRI < 3.0 accepts assignemnt to variables like _1
|
1703
|
+
# if it's not a numbered parameter. MRI 3.0 and newer throws an error.
|
1704
|
+
return if @parser.version < 30
|
1705
|
+
|
1706
|
+
if name =~ /\A_([1-9])\z/
|
1707
|
+
diagnostic :error, :reserved_for_numparam, { :name => name }, loc
|
1708
|
+
end
|
1709
|
+
end
|
1710
|
+
|
1711
|
+
def arg_name_collides?(this_name, that_name)
|
1712
|
+
case @parser.version
|
1713
|
+
when 18
|
1714
|
+
this_name == that_name
|
1715
|
+
when 19
|
1716
|
+
# Ignore underscore.
|
1717
|
+
this_name != :_ &&
|
1718
|
+
this_name == that_name
|
1719
|
+
else
|
1720
|
+
# Ignore everything beginning with underscore.
|
1721
|
+
this_name && this_name[0] != '_' &&
|
1722
|
+
this_name == that_name
|
1723
|
+
end
|
1724
|
+
end
|
1725
|
+
|
1726
|
+
def check_lvar_name(name, loc)
|
1727
|
+
if name =~ /\A[[[:lower:]]_][[[:alnum:]]_]*\z/
|
1728
|
+
# OK
|
1729
|
+
else
|
1730
|
+
diagnostic :error, :lvar_name, { name: name }, loc
|
1731
|
+
end
|
1732
|
+
end
|
1733
|
+
|
1734
|
+
def check_duplicate_pattern_variable(name, loc)
|
1735
|
+
return if name.to_s.start_with?('_')
|
1736
|
+
|
1737
|
+
if @parser.pattern_variables.declared?(name)
|
1738
|
+
diagnostic :error, :duplicate_variable_name, { name: name.to_s }, loc
|
1739
|
+
end
|
1740
|
+
|
1741
|
+
@parser.pattern_variables.declare(name)
|
1742
|
+
end
|
1743
|
+
|
1744
|
+
def check_duplicate_pattern_key(name, loc)
|
1745
|
+
if @parser.pattern_hash_keys.declared?(name)
|
1746
|
+
diagnostic :error, :duplicate_pattern_key, { name: name.to_s }, loc
|
1747
|
+
end
|
1748
|
+
|
1749
|
+
@parser.pattern_hash_keys.declare(name)
|
1750
|
+
end
|
1751
|
+
|
1752
|
+
#
|
1753
|
+
# SOURCE MAPS
|
1754
|
+
#
|
1755
|
+
|
1756
|
+
def n(type, children, source_map)
|
1757
|
+
AST::Node.new(type, children, :location => source_map)
|
1758
|
+
end
|
1759
|
+
|
1760
|
+
def n0(type, source_map)
|
1761
|
+
n(type, [], source_map)
|
1762
|
+
end
|
1763
|
+
|
1764
|
+
def join_exprs(left_expr, right_expr)
|
1765
|
+
left_expr.loc.expression.
|
1766
|
+
join(right_expr.loc.expression)
|
1767
|
+
end
|
1768
|
+
|
1769
|
+
def token_map(token)
|
1770
|
+
Source::Map.new(loc(token))
|
1771
|
+
end
|
1772
|
+
|
1773
|
+
def delimited_string_map(string_t)
|
1774
|
+
str_range = loc(string_t)
|
1775
|
+
|
1776
|
+
begin_l = str_range.with(end_pos: str_range.begin_pos + 1)
|
1777
|
+
|
1778
|
+
end_l = str_range.with(begin_pos: str_range.end_pos - 1)
|
1779
|
+
|
1780
|
+
Source::Map::Collection.new(begin_l, end_l,
|
1781
|
+
loc(string_t))
|
1782
|
+
end
|
1783
|
+
|
1784
|
+
def prefix_string_map(symbol)
|
1785
|
+
str_range = loc(symbol)
|
1786
|
+
|
1787
|
+
begin_l = str_range.with(end_pos: str_range.begin_pos + 1)
|
1788
|
+
|
1789
|
+
Source::Map::Collection.new(begin_l, nil,
|
1790
|
+
loc(symbol))
|
1791
|
+
end
|
1792
|
+
|
1793
|
+
def unquoted_map(token)
|
1794
|
+
Source::Map::Collection.new(nil, nil,
|
1795
|
+
loc(token))
|
1796
|
+
end
|
1797
|
+
|
1798
|
+
def pair_keyword_map(key_t, value_e)
|
1799
|
+
key_range = loc(key_t)
|
1800
|
+
|
1801
|
+
key_l = key_range.adjust(end_pos: -1)
|
1802
|
+
|
1803
|
+
colon_l = key_range.with(begin_pos: key_range.end_pos - 1)
|
1804
|
+
|
1805
|
+
[ # key map
|
1806
|
+
Source::Map::Collection.new(nil, nil,
|
1807
|
+
key_l),
|
1808
|
+
# pair map
|
1809
|
+
Source::Map::Operator.new(colon_l,
|
1810
|
+
key_range.join(value_e.loc.expression)) ]
|
1811
|
+
end
|
1812
|
+
|
1813
|
+
def pair_quoted_map(begin_t, end_t, value_e)
|
1814
|
+
end_l = loc(end_t)
|
1815
|
+
|
1816
|
+
quote_l = end_l.with(begin_pos: end_l.end_pos - 2,
|
1817
|
+
end_pos: end_l.end_pos - 1)
|
1818
|
+
|
1819
|
+
colon_l = end_l.with(begin_pos: end_l.end_pos - 1)
|
1820
|
+
|
1821
|
+
[ # modified end token
|
1822
|
+
[ value(end_t), quote_l ],
|
1823
|
+
# pair map
|
1824
|
+
Source::Map::Operator.new(colon_l,
|
1825
|
+
loc(begin_t).join(value_e.loc.expression)) ]
|
1826
|
+
end
|
1827
|
+
|
1828
|
+
def expr_map(loc)
|
1829
|
+
Source::Map.new(loc)
|
1830
|
+
end
|
1831
|
+
|
1832
|
+
def collection_map(begin_t, parts, end_t)
|
1833
|
+
if begin_t.nil? || end_t.nil?
|
1834
|
+
if parts.any?
|
1835
|
+
expr_l = join_exprs(parts.first, parts.last)
|
1836
|
+
elsif !begin_t.nil?
|
1837
|
+
expr_l = loc(begin_t)
|
1838
|
+
elsif !end_t.nil?
|
1839
|
+
expr_l = loc(end_t)
|
1840
|
+
end
|
1841
|
+
else
|
1842
|
+
expr_l = loc(begin_t).join(loc(end_t))
|
1843
|
+
end
|
1844
|
+
|
1845
|
+
Source::Map::Collection.new(loc(begin_t), loc(end_t), expr_l)
|
1846
|
+
end
|
1847
|
+
|
1848
|
+
def string_map(begin_t, parts, end_t)
|
1849
|
+
if begin_t && value(begin_t).start_with?('<<')
|
1850
|
+
if parts.any?
|
1851
|
+
expr_l = join_exprs(parts.first, parts.last)
|
1852
|
+
else
|
1853
|
+
expr_l = loc(end_t).begin
|
1854
|
+
end
|
1855
|
+
|
1856
|
+
Source::Map::Heredoc.new(loc(begin_t), expr_l, loc(end_t))
|
1857
|
+
else
|
1858
|
+
collection_map(begin_t, parts, end_t)
|
1859
|
+
end
|
1860
|
+
end
|
1861
|
+
|
1862
|
+
def regexp_map(begin_t, end_t, options_e)
|
1863
|
+
Source::Map::Collection.new(loc(begin_t), loc(end_t),
|
1864
|
+
loc(begin_t).join(options_e.loc.expression))
|
1865
|
+
end
|
1866
|
+
|
1867
|
+
def constant_map(scope, colon2_t, name_t)
|
1868
|
+
if scope.nil?
|
1869
|
+
expr_l = loc(name_t)
|
1870
|
+
else
|
1871
|
+
expr_l = scope.loc.expression.join(loc(name_t))
|
1872
|
+
end
|
1873
|
+
|
1874
|
+
Source::Map::Constant.new(loc(colon2_t), loc(name_t), expr_l)
|
1875
|
+
end
|
1876
|
+
|
1877
|
+
def variable_map(name_t)
|
1878
|
+
Source::Map::Variable.new(loc(name_t))
|
1879
|
+
end
|
1880
|
+
|
1881
|
+
def binary_op_map(left_e, op_t, right_e)
|
1882
|
+
Source::Map::Operator.new(loc(op_t), join_exprs(left_e, right_e))
|
1883
|
+
end
|
1884
|
+
|
1885
|
+
def unary_op_map(op_t, arg_e=nil)
|
1886
|
+
if arg_e.nil?
|
1887
|
+
expr_l = loc(op_t)
|
1888
|
+
else
|
1889
|
+
expr_l = loc(op_t).join(arg_e.loc.expression)
|
1890
|
+
end
|
1891
|
+
|
1892
|
+
Source::Map::Operator.new(loc(op_t), expr_l)
|
1893
|
+
end
|
1894
|
+
|
1895
|
+
def range_map(start_e, op_t, end_e)
|
1896
|
+
if start_e && end_e
|
1897
|
+
expr_l = join_exprs(start_e, end_e)
|
1898
|
+
elsif start_e
|
1899
|
+
expr_l = start_e.loc.expression.join(loc(op_t))
|
1900
|
+
elsif end_e
|
1901
|
+
expr_l = loc(op_t).join(end_e.loc.expression)
|
1902
|
+
end
|
1903
|
+
|
1904
|
+
Source::Map::Operator.new(loc(op_t), expr_l)
|
1905
|
+
end
|
1906
|
+
|
1907
|
+
def arg_prefix_map(op_t, name_t=nil)
|
1908
|
+
if name_t.nil?
|
1909
|
+
expr_l = loc(op_t)
|
1910
|
+
else
|
1911
|
+
expr_l = loc(op_t).join(loc(name_t))
|
1912
|
+
end
|
1913
|
+
|
1914
|
+
Source::Map::Variable.new(loc(name_t), expr_l)
|
1915
|
+
end
|
1916
|
+
|
1917
|
+
def kwarg_map(name_t, value_e=nil)
|
1918
|
+
label_range = loc(name_t)
|
1919
|
+
name_range = label_range.adjust(end_pos: -1)
|
1920
|
+
|
1921
|
+
if value_e
|
1922
|
+
expr_l = loc(name_t).join(value_e.loc.expression)
|
1923
|
+
else
|
1924
|
+
expr_l = loc(name_t)
|
1925
|
+
end
|
1926
|
+
|
1927
|
+
Source::Map::Variable.new(name_range, expr_l)
|
1928
|
+
end
|
1929
|
+
|
1930
|
+
def module_definition_map(keyword_t, name_e, operator_t, end_t)
|
1931
|
+
if name_e
|
1932
|
+
name_l = name_e.loc.expression
|
1933
|
+
end
|
1934
|
+
|
1935
|
+
Source::Map::Definition.new(loc(keyword_t),
|
1936
|
+
loc(operator_t), name_l,
|
1937
|
+
loc(end_t))
|
1938
|
+
end
|
1939
|
+
|
1940
|
+
def definition_map(keyword_t, operator_t, name_t, end_t)
|
1941
|
+
Source::Map::MethodDefinition.new(loc(keyword_t),
|
1942
|
+
loc(operator_t), loc(name_t),
|
1943
|
+
loc(end_t), nil, nil)
|
1944
|
+
end
|
1945
|
+
|
1946
|
+
def endless_definition_map(keyword_t, operator_t, name_t, assignment_t, body_e)
|
1947
|
+
body_l = body_e.loc.expression
|
1948
|
+
|
1949
|
+
Source::Map::MethodDefinition.new(loc(keyword_t),
|
1950
|
+
loc(operator_t), loc(name_t), nil,
|
1951
|
+
loc(assignment_t), body_l)
|
1952
|
+
end
|
1953
|
+
|
1954
|
+
def send_map(receiver_e, dot_t, selector_t, begin_t=nil, args=[], end_t=nil)
|
1955
|
+
if receiver_e
|
1956
|
+
begin_l = receiver_e.loc.expression
|
1957
|
+
elsif selector_t
|
1958
|
+
begin_l = loc(selector_t)
|
1959
|
+
end
|
1960
|
+
|
1961
|
+
if end_t
|
1962
|
+
end_l = loc(end_t)
|
1963
|
+
elsif args.any?
|
1964
|
+
end_l = args.last.loc.expression
|
1965
|
+
elsif selector_t
|
1966
|
+
end_l = loc(selector_t)
|
1967
|
+
end
|
1968
|
+
|
1969
|
+
Source::Map::Send.new(loc(dot_t), loc(selector_t),
|
1970
|
+
loc(begin_t), loc(end_t),
|
1971
|
+
begin_l.join(end_l))
|
1972
|
+
end
|
1973
|
+
|
1974
|
+
def var_send_map(variable_e)
|
1975
|
+
Source::Map::Send.new(nil, variable_e.loc.expression,
|
1976
|
+
nil, nil,
|
1977
|
+
variable_e.loc.expression)
|
1978
|
+
end
|
1979
|
+
|
1980
|
+
def send_binary_op_map(lhs_e, selector_t, rhs_e)
|
1981
|
+
Source::Map::Send.new(nil, loc(selector_t),
|
1982
|
+
nil, nil,
|
1983
|
+
join_exprs(lhs_e, rhs_e))
|
1984
|
+
end
|
1985
|
+
|
1986
|
+
def send_unary_op_map(selector_t, arg_e)
|
1987
|
+
if arg_e.nil?
|
1988
|
+
expr_l = loc(selector_t)
|
1989
|
+
else
|
1990
|
+
expr_l = loc(selector_t).join(arg_e.loc.expression)
|
1991
|
+
end
|
1992
|
+
|
1993
|
+
Source::Map::Send.new(nil, loc(selector_t),
|
1994
|
+
nil, nil,
|
1995
|
+
expr_l)
|
1996
|
+
end
|
1997
|
+
|
1998
|
+
def index_map(receiver_e, lbrack_t, rbrack_t)
|
1999
|
+
Source::Map::Index.new(loc(lbrack_t), loc(rbrack_t),
|
2000
|
+
receiver_e.loc.expression.join(loc(rbrack_t)))
|
2001
|
+
end
|
2002
|
+
|
2003
|
+
def send_index_map(receiver_e, lbrack_t, rbrack_t)
|
2004
|
+
Source::Map::Send.new(nil, loc(lbrack_t).join(loc(rbrack_t)),
|
2005
|
+
nil, nil,
|
2006
|
+
receiver_e.loc.expression.join(loc(rbrack_t)))
|
2007
|
+
end
|
2008
|
+
|
2009
|
+
def block_map(receiver_l, begin_t, end_t)
|
2010
|
+
Source::Map::Collection.new(loc(begin_t), loc(end_t),
|
2011
|
+
receiver_l.join(loc(end_t)))
|
2012
|
+
end
|
2013
|
+
|
2014
|
+
def keyword_map(keyword_t, begin_t, args, end_t)
|
2015
|
+
args ||= []
|
2016
|
+
|
2017
|
+
if end_t
|
2018
|
+
end_l = loc(end_t)
|
2019
|
+
elsif args.any? && !args.last.nil?
|
2020
|
+
end_l = args.last.loc.expression
|
2021
|
+
elsif args.any? && args.count > 1
|
2022
|
+
end_l = args[-2].loc.expression
|
2023
|
+
else
|
2024
|
+
end_l = loc(keyword_t)
|
2025
|
+
end
|
2026
|
+
|
2027
|
+
Source::Map::Keyword.new(loc(keyword_t), loc(begin_t), loc(end_t),
|
2028
|
+
loc(keyword_t).join(end_l))
|
2029
|
+
end
|
2030
|
+
|
2031
|
+
def keyword_mod_map(pre_e, keyword_t, post_e)
|
2032
|
+
Source::Map::Keyword.new(loc(keyword_t), nil, nil,
|
2033
|
+
join_exprs(pre_e, post_e))
|
2034
|
+
end
|
2035
|
+
|
2036
|
+
def condition_map(keyword_t, cond_e, begin_t, body_e, else_t, else_e, end_t)
|
2037
|
+
if end_t
|
2038
|
+
end_l = loc(end_t)
|
2039
|
+
elsif else_e && else_e.loc.expression
|
2040
|
+
end_l = else_e.loc.expression
|
2041
|
+
elsif loc(else_t)
|
2042
|
+
end_l = loc(else_t)
|
2043
|
+
elsif body_e && body_e.loc.expression
|
2044
|
+
end_l = body_e.loc.expression
|
2045
|
+
elsif loc(begin_t)
|
2046
|
+
end_l = loc(begin_t)
|
2047
|
+
else
|
2048
|
+
end_l = cond_e.loc.expression
|
2049
|
+
end
|
2050
|
+
|
2051
|
+
Source::Map::Condition.new(loc(keyword_t),
|
2052
|
+
loc(begin_t), loc(else_t), loc(end_t),
|
2053
|
+
loc(keyword_t).join(end_l))
|
2054
|
+
end
|
2055
|
+
|
2056
|
+
def ternary_map(begin_e, question_t, mid_e, colon_t, end_e)
|
2057
|
+
Source::Map::Ternary.new(loc(question_t), loc(colon_t),
|
2058
|
+
join_exprs(begin_e, end_e))
|
2059
|
+
end
|
2060
|
+
|
2061
|
+
def for_map(keyword_t, in_t, begin_t, end_t)
|
2062
|
+
Source::Map::For.new(loc(keyword_t), loc(in_t),
|
2063
|
+
loc(begin_t), loc(end_t),
|
2064
|
+
loc(keyword_t).join(loc(end_t)))
|
2065
|
+
end
|
2066
|
+
|
2067
|
+
def rescue_body_map(keyword_t, exc_list_e, assoc_t,
|
2068
|
+
exc_var_e, then_t,
|
2069
|
+
compstmt_e)
|
2070
|
+
end_l = compstmt_e.loc.expression if compstmt_e
|
2071
|
+
end_l = loc(then_t) if end_l.nil? && then_t
|
2072
|
+
end_l = exc_var_e.loc.expression if end_l.nil? && exc_var_e
|
2073
|
+
end_l = exc_list_e.loc.expression if end_l.nil? && exc_list_e
|
2074
|
+
end_l = loc(keyword_t) if end_l.nil?
|
2075
|
+
|
2076
|
+
Source::Map::RescueBody.new(loc(keyword_t), loc(assoc_t), loc(then_t),
|
2077
|
+
loc(keyword_t).join(end_l))
|
2078
|
+
end
|
2079
|
+
|
2080
|
+
def eh_keyword_map(compstmt_e, keyword_t, body_es,
|
2081
|
+
else_t, else_e)
|
2082
|
+
if compstmt_e.nil?
|
2083
|
+
if keyword_t.nil?
|
2084
|
+
begin_l = body_es.first.loc.expression
|
2085
|
+
else
|
2086
|
+
begin_l = loc(keyword_t)
|
2087
|
+
end
|
2088
|
+
else
|
2089
|
+
begin_l = compstmt_e.loc.expression
|
2090
|
+
end
|
2091
|
+
|
2092
|
+
if else_t
|
2093
|
+
if else_e.nil?
|
2094
|
+
end_l = loc(else_t)
|
2095
|
+
else
|
2096
|
+
end_l = else_e.loc.expression
|
2097
|
+
end
|
2098
|
+
elsif !body_es.last.nil?
|
2099
|
+
end_l = body_es.last.loc.expression
|
2100
|
+
else
|
2101
|
+
end_l = loc(keyword_t)
|
2102
|
+
end
|
2103
|
+
|
2104
|
+
Source::Map::Condition.new(loc(keyword_t), nil, loc(else_t), nil,
|
2105
|
+
begin_l.join(end_l))
|
2106
|
+
end
|
2107
|
+
|
2108
|
+
def guard_map(keyword_t, guard_body_e)
|
2109
|
+
keyword_l = loc(keyword_t)
|
2110
|
+
guard_body_l = guard_body_e.loc.expression
|
2111
|
+
|
2112
|
+
Source::Map::Keyword.new(keyword_l, nil, nil, keyword_l.join(guard_body_l))
|
2113
|
+
end
|
2114
|
+
|
2115
|
+
#
|
2116
|
+
# HELPERS
|
2117
|
+
#
|
2118
|
+
|
2119
|
+
# Extract a static string from e.g. a regular expression,
|
2120
|
+
# honoring the fact that MRI expands interpolations like #{""}
|
2121
|
+
# at parse time.
|
2122
|
+
def static_string(nodes)
|
2123
|
+
nodes.map do |node|
|
2124
|
+
case node.type
|
2125
|
+
when :str
|
2126
|
+
node.children[0]
|
2127
|
+
when :begin
|
2128
|
+
if (string = static_string(node.children))
|
2129
|
+
string
|
2130
|
+
else
|
2131
|
+
return nil
|
2132
|
+
end
|
2133
|
+
else
|
2134
|
+
return nil
|
2135
|
+
end
|
2136
|
+
end.join
|
2137
|
+
end
|
2138
|
+
|
2139
|
+
def static_regexp(parts, options)
|
2140
|
+
source = static_string(parts)
|
2141
|
+
return nil if source.nil?
|
2142
|
+
|
2143
|
+
source = case
|
2144
|
+
when options.children.include?(:u)
|
2145
|
+
source.encode(Encoding::UTF_8)
|
2146
|
+
when options.children.include?(:e)
|
2147
|
+
source.encode(Encoding::EUC_JP)
|
2148
|
+
when options.children.include?(:s)
|
2149
|
+
source.encode(Encoding::WINDOWS_31J)
|
2150
|
+
when options.children.include?(:n)
|
2151
|
+
source.encode(Encoding::BINARY)
|
2152
|
+
else
|
2153
|
+
source
|
2154
|
+
end
|
2155
|
+
|
2156
|
+
Regexp.new(source, (Regexp::EXTENDED if options.children.include?(:x)))
|
2157
|
+
end
|
2158
|
+
|
2159
|
+
def static_regexp_node(node)
|
2160
|
+
if node.type == :regexp
|
2161
|
+
parts, options = node.children[0..-2], node.children[-1]
|
2162
|
+
static_regexp(parts, options)
|
2163
|
+
end
|
2164
|
+
end
|
2165
|
+
|
2166
|
+
def collapse_string_parts?(parts)
|
2167
|
+
parts.one? &&
|
2168
|
+
[:str, :dstr].include?(parts.first.type)
|
2169
|
+
end
|
2170
|
+
|
2171
|
+
def value(token)
|
2172
|
+
token[0]
|
2173
|
+
end
|
2174
|
+
|
2175
|
+
def string_value(token)
|
2176
|
+
unless token[0].valid_encoding?
|
2177
|
+
diagnostic(:error, :invalid_encoding, nil, token[1])
|
2178
|
+
end
|
2179
|
+
|
2180
|
+
token[0]
|
2181
|
+
end
|
2182
|
+
|
2183
|
+
def loc(token)
|
2184
|
+
# Pass through `nil`s and return nil for tNL.
|
2185
|
+
token[1] if token && token[0]
|
2186
|
+
end
|
2187
|
+
|
2188
|
+
def diagnostic(type, reason, arguments, location, highlights=[])
|
2189
|
+
@parser.diagnostics.process(
|
2190
|
+
Diagnostic.new(type, reason, arguments, location, highlights))
|
2191
|
+
|
2192
|
+
if type == :error
|
2193
|
+
@parser.send :yyerror
|
2194
|
+
end
|
2195
|
+
end
|
2196
|
+
|
2197
|
+
def validate_definee(definee)
|
2198
|
+
case definee.type
|
2199
|
+
when :int, :str, :dstr, :sym, :dsym,
|
2200
|
+
:regexp, :array, :hash
|
2201
|
+
|
2202
|
+
diagnostic :error, :singleton_literal, nil, definee.loc.expression
|
2203
|
+
false
|
2204
|
+
else
|
2205
|
+
true
|
2206
|
+
end
|
2207
|
+
end
|
2208
|
+
|
2209
|
+
def rewrite_hash_args_to_kwargs(args)
|
2210
|
+
if args.any? && kwargs?(args.last)
|
2211
|
+
# foo(..., bar: baz)
|
2212
|
+
args[args.length - 1] = args[args.length - 1].updated(:kwargs)
|
2213
|
+
elsif args.length > 1 && args.last.type == :block_pass && kwargs?(args[args.length - 2])
|
2214
|
+
# foo(..., bar: baz, &blk)
|
2215
|
+
args[args.length - 2] = args[args.length - 2].updated(:kwargs)
|
2216
|
+
end
|
2217
|
+
end
|
2218
|
+
|
2219
|
+
def kwargs?(node)
|
2220
|
+
node.type == :hash && node.loc.begin.nil? && node.loc.end.nil?
|
2221
|
+
end
|
2222
|
+
end
|
2223
|
+
|
2224
|
+
end
|