rails-rfc6570 3.2.0 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/lib/rails/rfc6570/version.rb +1 -1
- data/rails-rfc6570.gemspec +1 -1
- data/spec/dummy/log/test.log +432 -0
- metadata +10 -262
- data/vendor/bundle/ruby/3.3.0/bundler/gems/rubocop-config-943facea9d8f/LICENSE +0 -21
- data/vendor/bundle/ruby/3.3.0/bundler/gems/rubocop-config-943facea9d8f/README.md +0 -23
- data/vendor/bundle/ruby/3.3.0/bundler/gems/rubocop-config-943facea9d8f/rubocop-config.gemspec +0 -31
- data/vendor/bundle/ruby/3.3.0/gems/actionpack-7.2.1/CHANGELOG.md +0 -154
- data/vendor/bundle/ruby/3.3.0/gems/actionpack-7.2.1/MIT-LICENSE +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/actionpack-7.2.1/README.rdoc +0 -57
- data/vendor/bundle/ruby/3.3.0/gems/actionview-7.2.1/CHANGELOG.md +0 -113
- data/vendor/bundle/ruby/3.3.0/gems/actionview-7.2.1/MIT-LICENSE +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/actionview-7.2.1/README.rdoc +0 -40
- data/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.1/CHANGELOG.md +0 -258
- data/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.1/MIT-LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.1/README.rdoc +0 -40
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/CHANGELOG.md +0 -301
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/LICENSE.txt +0 -202
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/README.md +0 -121
- data/vendor/bundle/ruby/3.3.0/gems/addressable-2.8.7/addressable.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/gems/appraisal-2.5.0/MIT-LICENSE +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/appraisal-2.5.0/README.md +0 -243
- data/vendor/bundle/ruby/3.3.0/gems/appraisal-2.5.0/appraisal.gemspec +0 -29
- data/vendor/bundle/ruby/3.3.0/gems/ast-2.4.2/LICENSE.MIT +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/ast-2.4.2/README.YARD.md +0 -12
- data/vendor/bundle/ruby/3.3.0/gems/benchmark-ips-2.13.0/LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/benchmark-ips-2.13.0/README.md +0 -279
- data/vendor/bundle/ruby/3.3.0/gems/bigdecimal-3.1.8/LICENSE +0 -56
- data/vendor/bundle/ruby/3.3.0/gems/bigdecimal-3.1.8/bigdecimal.gemspec +0 -57
- data/vendor/bundle/ruby/3.3.0/gems/builder-3.3.0/MIT-LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/builder-3.3.0/README.md +0 -258
- data/vendor/bundle/ruby/3.3.0/gems/builder-3.3.0/builder.gemspec +0 -49
- data/vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/CHANGELOG.md +0 -934
- data/vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/LICENSE +0 -23
- data/vendor/bundle/ruby/3.3.0/gems/byebug-11.1.3/README.md +0 -199
- data/vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/MIT-LICENSE +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/README_INDEX.rdoc +0 -123
- data/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/CHANGELOG.md +0 -593
- data/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/LICENSE.txt +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/concurrent-ruby-1.3.4/README.md +0 -407
- data/vendor/bundle/ruby/3.3.0/gems/connection_pool-2.4.1/LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/connection_pool-2.4.1/README.md +0 -135
- data/vendor/bundle/ruby/3.3.0/gems/connection_pool-2.4.1/connection_pool.gemspec +0 -24
- data/vendor/bundle/ruby/3.3.0/gems/crass-1.0.6/LICENSE +0 -18
- data/vendor/bundle/ruby/3.3.0/gems/crass-1.0.6/README.md +0 -192
- data/vendor/bundle/ruby/3.3.0/gems/crass-1.0.6/crass.gemspec +0 -31
- data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/README.rdoc +0 -84
- data/vendor/bundle/ruby/3.3.0/gems/docile-1.4.1/LICENSE +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/docile-1.4.1/README.md +0 -409
- data/vendor/bundle/ruby/3.3.0/gems/docile-1.4.1/docile.gemspec +0 -36
- data/vendor/bundle/ruby/3.3.0/gems/drb-2.2.1/LICENSE.txt +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/drb-2.2.1/drb.gemspec +0 -41
- data/vendor/bundle/ruby/3.3.0/gems/erubi-1.13.0/CHANGELOG +0 -107
- data/vendor/bundle/ruby/3.3.0/gems/erubi-1.13.0/MIT-LICENSE +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/erubi-1.13.0/README.rdoc +0 -151
- data/vendor/bundle/ruby/3.3.0/gems/i18n-1.14.5/MIT-LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/i18n-1.14.5/README.md +0 -127
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.7.2/LICENSE.txt +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.7.2/README.md +0 -46
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.14.0/LICENSE.txt +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.14.0/README.md +0 -405
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.14.0/irb.gemspec +0 -46
- data/vendor/bundle/ruby/3.3.0/gems/json-2.7.2/LICENSE +0 -56
- data/vendor/bundle/ruby/3.3.0/gems/json-2.7.2/README.md +0 -416
- data/vendor/bundle/ruby/3.3.0/gems/json-2.7.2/json.gemspec +0 -68
- data/vendor/bundle/ruby/3.3.0/gems/language_server-protocol-3.17.0.3/LICENSE.txt +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/language_server-protocol-3.17.0.3/README.md +0 -88
- data/vendor/bundle/ruby/3.3.0/gems/loofah-2.22.0/CHANGELOG.md +0 -566
- data/vendor/bundle/ruby/3.3.0/gems/loofah-2.22.0/MIT-LICENSE.txt +0 -23
- data/vendor/bundle/ruby/3.3.0/gems/loofah-2.22.0/README.md +0 -363
- data/vendor/bundle/ruby/3.3.0/gems/method_source-1.1.0/CHANGELOG.md +0 -15
- data/vendor/bundle/ruby/3.3.0/gems/method_source-1.1.0/LICENSE +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/method_source-1.1.0/README.markdown +0 -101
- data/vendor/bundle/ruby/3.3.0/gems/method_source-1.1.0/method_source.gemspec +0 -19
- data/vendor/bundle/ruby/3.3.0/gems/minitest-5.25.1/README.rdoc +0 -835
- data/vendor/bundle/ruby/3.3.0/gems/nokogiri-1.16.7-x86_64-linux/LICENSE-DEPENDENCIES.md +0 -2224
- data/vendor/bundle/ruby/3.3.0/gems/nokogiri-1.16.7-x86_64-linux/LICENSE.md +0 -9
- data/vendor/bundle/ruby/3.3.0/gems/nokogiri-1.16.7-x86_64-linux/README.md +0 -290
- data/vendor/bundle/ruby/3.3.0/gems/parallel-1.26.3/MIT-LICENSE.txt +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.4.2/LICENSE.txt +0 -25
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.4.2/parser.gemspec +0 -43
- data/vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/CHANGELOG.md +0 -1141
- data/vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/LICENSE +0 -25
- data/vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/README.md +0 -466
- data/vendor/bundle/ruby/3.3.0/gems/pry-0.14.2/lib/pry/slop/LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/CHANGELOG.md +0 -230
- data/vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/pry-byebug-3.10.1/README.md +0 -189
- data/vendor/bundle/ruby/3.3.0/gems/public_suffix-6.0.1/CHANGELOG.md +0 -491
- data/vendor/bundle/ruby/3.3.0/gems/public_suffix-6.0.1/LICENSE.txt +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/public_suffix-6.0.1/README.md +0 -222
- data/vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/README.ja.rdoc +0 -58
- data/vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/README.rdoc +0 -60
- data/vendor/bundle/ruby/3.3.0/gems/rack-3.1.7/CHANGELOG.md +0 -994
- data/vendor/bundle/ruby/3.3.0/gems/rack-3.1.7/MIT-LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/rack-3.1.7/README.md +0 -328
- data/vendor/bundle/ruby/3.3.0/gems/rack-test-2.1.0/MIT-LICENSE.txt +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/rack-test-2.1.0/README.md +0 -139
- data/vendor/bundle/ruby/3.3.0/gems/rails-dom-testing-2.2.0/MIT-LICENSE +0 -23
- data/vendor/bundle/ruby/3.3.0/gems/rails-dom-testing-2.2.0/README.md +0 -91
- data/vendor/bundle/ruby/3.3.0/gems/rails-html-sanitizer-1.6.0/CHANGELOG.md +0 -201
- data/vendor/bundle/ruby/3.3.0/gems/rails-html-sanitizer-1.6.0/MIT-LICENSE +0 -23
- data/vendor/bundle/ruby/3.3.0/gems/rails-html-sanitizer-1.6.0/README.md +0 -271
- data/vendor/bundle/ruby/3.3.0/gems/railties-7.2.1/CHANGELOG.md +0 -361
- data/vendor/bundle/ruby/3.3.0/gems/railties-7.2.1/MIT-LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/railties-7.2.1/README.rdoc +0 -39
- data/vendor/bundle/ruby/3.3.0/gems/railties-7.2.1/lib/rails/generators/rails/app/templates/README.md.tt +0 -24
- data/vendor/bundle/ruby/3.3.0/gems/railties-7.2.1/lib/rails/generators/rails/plugin/templates/%name%.gemspec.tt +0 -28
- data/vendor/bundle/ruby/3.3.0/gems/railties-7.2.1/lib/rails/generators/rails/plugin/templates/MIT-LICENSE.tt +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/railties-7.2.1/lib/rails/generators/rails/plugin/templates/README.md.tt +0 -28
- data/vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/README.markdown +0 -227
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/MIT-LICENSE +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/README.rdoc +0 -155
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/rake.gemspec +0 -101
- data/vendor/bundle/ruby/3.3.0/gems/rake-release-1.3.0/LICENSE +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/rake-release-1.3.0/README.md +0 -107
- data/vendor/bundle/ruby/3.3.0/gems/rake-release-1.3.0/rake-release.gemspec +0 -23
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.7.0/LICENSE.rdoc +0 -57
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.7.0/README.rdoc +0 -129
- data/vendor/bundle/ruby/3.3.0/gems/regexp_parser-2.9.2/LICENSE +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/regexp_parser-2.9.2/regexp_parser.gemspec +0 -34
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.5.9/README.md +0 -94
- data/vendor/bundle/ruby/3.3.0/gems/rexml-3.3.6/LICENSE.txt +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/rexml-3.3.6/README.md +0 -57
- data/vendor/bundle/ruby/3.3.0/gems/rspec-3.13.0/LICENSE.md +0 -27
- data/vendor/bundle/ruby/3.3.0/gems/rspec-3.13.0/README.md +0 -47
- data/vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.0/LICENSE.md +0 -26
- data/vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.0/README.md +0 -389
- data/vendor/bundle/ruby/3.3.0/gems/rspec-expectations-3.13.2/LICENSE.md +0 -25
- data/vendor/bundle/ruby/3.3.0/gems/rspec-expectations-3.13.2/README.md +0 -326
- data/vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.1/LICENSE.md +0 -25
- data/vendor/bundle/ruby/3.3.0/gems/rspec-mocks-3.13.1/README.md +0 -465
- data/vendor/bundle/ruby/3.3.0/gems/rspec-rails-6.1.4/LICENSE.md +0 -25
- data/vendor/bundle/ruby/3.3.0/gems/rspec-rails-6.1.4/README.md +0 -381
- data/vendor/bundle/ruby/3.3.0/gems/rspec-support-3.13.1/LICENSE.md +0 -23
- data/vendor/bundle/ruby/3.3.0/gems/rspec-support-3.13.1/README.md +0 -40
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-1.65.1/LICENSE.txt +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-1.65.1/README.md +0 -251
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-ast-1.32.1/LICENSE.txt +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-ast-1.32.1/README.md +0 -56
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-capybara-2.21.0/CHANGELOG.md +0 -85
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-capybara-2.21.0/MIT-LICENSE.md +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-capybara-2.21.0/README.md +0 -88
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-factory_bot-2.26.1/CHANGELOG.md +0 -116
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-factory_bot-2.26.1/MIT-LICENSE.md +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-factory_bot-2.26.1/README.md +0 -88
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-performance-1.21.1/LICENSE.txt +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-performance-1.21.1/README.md +0 -97
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec-3.0.4/CHANGELOG.md +0 -1028
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec-3.0.4/MIT-LICENSE.md +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec-3.0.4/README.md +0 -109
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec_rails-2.30.0/CHANGELOG.md +0 -84
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec_rails-2.30.0/MIT-LICENSE.md +0 -21
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec_rails-2.30.0/README.md +0 -90
- data/vendor/bundle/ruby/3.3.0/gems/ruby-progressbar-1.13.0/LICENSE.txt +0 -19
- data/vendor/bundle/ruby/3.3.0/gems/ruby-progressbar-1.13.0/README.md +0 -131
- data/vendor/bundle/ruby/3.3.0/gems/simplecov-0.22.0/CHANGELOG.md +0 -191
- data/vendor/bundle/ruby/3.3.0/gems/simplecov-0.22.0/LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/simplecov-0.22.0/README.md +0 -974
- data/vendor/bundle/ruby/3.3.0/gems/simplecov-cobertura-2.1.0/LICENSE +0 -202
- data/vendor/bundle/ruby/3.3.0/gems/simplecov-cobertura-2.1.0/README.md +0 -62
- data/vendor/bundle/ruby/3.3.0/gems/simplecov-cobertura-2.1.0/simplecov-cobertura.gemspec +0 -29
- data/vendor/bundle/ruby/3.3.0/gems/simplecov-html-0.12.3/CHANGELOG.md +0 -81
- data/vendor/bundle/ruby/3.3.0/gems/simplecov-html-0.12.3/LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/simplecov-html-0.12.3/README.md +0 -30
- data/vendor/bundle/ruby/3.3.0/gems/simplecov-html-0.12.3/simplecov-html.gemspec +0 -23
- data/vendor/bundle/ruby/3.3.0/gems/simplecov_json_formatter-0.1.4/CHANGELOG.md +0 -13
- data/vendor/bundle/ruby/3.3.0/gems/simplecov_json_formatter-0.1.4/README.md +0 -29
- data/vendor/bundle/ruby/3.3.0/gems/strscan-3.1.0/LICENSE.txt +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/thor-1.3.1/LICENSE.md +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/thor-1.3.1/README.md +0 -45
- data/vendor/bundle/ruby/3.3.0/gems/thor-1.3.1/thor.gemspec +0 -33
- data/vendor/bundle/ruby/3.3.0/gems/tzinfo-2.0.6/LICENSE +0 -19
- data/vendor/bundle/ruby/3.3.0/gems/tzinfo-2.0.6/README.md +0 -406
- data/vendor/bundle/ruby/3.3.0/gems/unicode-display_width-2.5.0/CHANGELOG.md +0 -196
- data/vendor/bundle/ruby/3.3.0/gems/unicode-display_width-2.5.0/MIT-LICENSE.txt +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/unicode-display_width-2.5.0/README.md +0 -171
- data/vendor/bundle/ruby/3.3.0/gems/useragent-0.16.10/LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/useragent-0.16.10/README.md +0 -42
- data/vendor/bundle/ruby/3.3.0/gems/webrick-1.8.1/LICENSE.txt +0 -22
- data/vendor/bundle/ruby/3.3.0/gems/webrick-1.8.1/README.md +0 -61
- data/vendor/bundle/ruby/3.3.0/gems/webrick-1.8.1/webrick.gemspec +0 -70
- data/vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.17/MIT-LICENSE +0 -20
- data/vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.6.17/README.md +0 -1494
- data/vendor/bundle/ruby/3.3.0/specifications/actionpack-7.2.1.gemspec +0 -37
- data/vendor/bundle/ruby/3.3.0/specifications/actionview-7.2.1.gemspec +0 -33
- data/vendor/bundle/ruby/3.3.0/specifications/activesupport-7.2.1.gemspec +0 -36
- data/vendor/bundle/ruby/3.3.0/specifications/addressable-2.8.7.gemspec +0 -30
- data/vendor/bundle/ruby/3.3.0/specifications/appraisal-2.5.0.gemspec +0 -31
- data/vendor/bundle/ruby/3.3.0/specifications/ast-2.4.2.gemspec +0 -30
- data/vendor/bundle/ruby/3.3.0/specifications/benchmark-ips-2.13.0.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/specifications/bigdecimal-3.1.8.gemspec +0 -25
- data/vendor/bundle/ruby/3.3.0/specifications/builder-3.3.0.gemspec +0 -22
- data/vendor/bundle/ruby/3.3.0/specifications/byebug-11.1.3.gemspec +0 -31
- data/vendor/bundle/ruby/3.3.0/specifications/coderay-1.1.3.gemspec +0 -25
- data/vendor/bundle/ruby/3.3.0/specifications/concurrent-ruby-1.3.4.gemspec +0 -24
- data/vendor/bundle/ruby/3.3.0/specifications/connection_pool-2.4.1.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/specifications/crass-1.0.6.gemspec +0 -27
- data/vendor/bundle/ruby/3.3.0/specifications/diff-lcs-1.5.1.gemspec +0 -37
- data/vendor/bundle/ruby/3.3.0/specifications/docile-1.4.1.gemspec +0 -22
- data/vendor/bundle/ruby/3.3.0/specifications/drb-2.2.1.gemspec +0 -22
- data/vendor/bundle/ruby/3.3.0/specifications/erubi-1.13.0.gemspec +0 -29
- data/vendor/bundle/ruby/3.3.0/specifications/i18n-1.14.5.gemspec +0 -26
- data/vendor/bundle/ruby/3.3.0/specifications/io-console-0.7.2.gemspec +0 -25
- data/vendor/bundle/ruby/3.3.0/specifications/irb-1.14.0.gemspec +0 -30
- data/vendor/bundle/ruby/3.3.0/specifications/json-2.7.2.gemspec +0 -0
- data/vendor/bundle/ruby/3.3.0/specifications/language_server-protocol-3.17.0.3.gemspec +0 -31
- data/vendor/bundle/ruby/3.3.0/specifications/loofah-2.22.0.gemspec +0 -27
- data/vendor/bundle/ruby/3.3.0/specifications/method_source-1.1.0.gemspec +0 -21
- data/vendor/bundle/ruby/3.3.0/specifications/minitest-5.25.1.gemspec +0 -31
- data/vendor/bundle/ruby/3.3.0/specifications/nokogiri-1.16.7-x86_64-linux.gemspec +0 -31
- data/vendor/bundle/ruby/3.3.0/specifications/parallel-1.26.3.gemspec +0 -21
- data/vendor/bundle/ruby/3.3.0/specifications/parser-3.3.4.2.gemspec +0 -37
- data/vendor/bundle/ruby/3.3.0/specifications/pry-0.14.2.gemspec +0 -29
- data/vendor/bundle/ruby/3.3.0/specifications/pry-byebug-3.10.1.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/specifications/public_suffix-6.0.1.gemspec +0 -24
- data/vendor/bundle/ruby/3.3.0/specifications/racc-1.8.1.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/specifications/rack-3.1.7.gemspec +0 -31
- data/vendor/bundle/ruby/3.3.0/specifications/rack-session-2.0.0.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/specifications/rack-test-2.1.0.gemspec +0 -29
- data/vendor/bundle/ruby/3.3.0/specifications/rackup-2.1.0.gemspec +0 -31
- data/vendor/bundle/ruby/3.3.0/specifications/rails-dom-testing-2.2.0.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/specifications/rails-html-sanitizer-1.6.0.gemspec +0 -27
- data/vendor/bundle/ruby/3.3.0/specifications/railties-7.2.1.gemspec +0 -37
- data/vendor/bundle/ruby/3.3.0/specifications/rainbow-3.1.1.gemspec +0 -25
- data/vendor/bundle/ruby/3.3.0/specifications/rake-13.2.1.gemspec +0 -26
- data/vendor/bundle/ruby/3.3.0/specifications/rake-release-1.3.0.gemspec +0 -26
- data/vendor/bundle/ruby/3.3.0/specifications/rdoc-6.7.0.gemspec +0 -31
- data/vendor/bundle/ruby/3.3.0/specifications/regexp_parser-2.9.2.gemspec +0 -22
- data/vendor/bundle/ruby/3.3.0/specifications/reline-0.5.9.gemspec +0 -26
- data/vendor/bundle/ruby/3.3.0/specifications/rexml-3.3.6.gemspec +0 -29
- data/vendor/bundle/ruby/3.3.0/specifications/rspec-3.13.0.gemspec +0 -31
- data/vendor/bundle/ruby/3.3.0/specifications/rspec-core-3.13.0.gemspec +0 -39
- data/vendor/bundle/ruby/3.3.0/specifications/rspec-expectations-3.13.2.gemspec +0 -33
- data/vendor/bundle/ruby/3.3.0/specifications/rspec-mocks-3.13.1.gemspec +0 -33
- data/vendor/bundle/ruby/3.3.0/specifications/rspec-rails-6.1.4.gemspec +0 -37
- data/vendor/bundle/ruby/3.3.0/specifications/rspec-support-3.13.1.gemspec +0 -29
- data/vendor/bundle/ruby/3.3.0/specifications/rubocop-1.65.1.gemspec +0 -39
- data/vendor/bundle/ruby/3.3.0/specifications/rubocop-ast-1.32.1.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/specifications/rubocop-capybara-2.21.0.gemspec +0 -27
- data/vendor/bundle/ruby/3.3.0/specifications/rubocop-factory_bot-2.26.1.gemspec +0 -27
- data/vendor/bundle/ruby/3.3.0/specifications/rubocop-performance-1.21.1.gemspec +0 -29
- data/vendor/bundle/ruby/3.3.0/specifications/rubocop-rspec-3.0.4.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/specifications/rubocop-rspec_rails-2.30.0.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/specifications/ruby-progressbar-1.13.0.gemspec +0 -29
- data/vendor/bundle/ruby/3.3.0/specifications/simplecov-0.22.0.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/specifications/simplecov-cobertura-2.1.0.gemspec +0 -29
- data/vendor/bundle/ruby/3.3.0/specifications/simplecov-html-0.12.3.gemspec +0 -21
- data/vendor/bundle/ruby/3.3.0/specifications/simplecov_json_formatter-0.1.4.gemspec +0 -21
- data/vendor/bundle/ruby/3.3.0/specifications/strscan-3.1.0.gemspec +0 -24
- data/vendor/bundle/ruby/3.3.0/specifications/thor-1.3.1.gemspec +0 -28
- data/vendor/bundle/ruby/3.3.0/specifications/tzinfo-2.0.6.gemspec +0 -30
- data/vendor/bundle/ruby/3.3.0/specifications/unicode-display_width-2.5.0.gemspec +0 -29
- data/vendor/bundle/ruby/3.3.0/specifications/useragent-0.16.10.gemspec +0 -25
- data/vendor/bundle/ruby/3.3.0/specifications/webrick-1.8.1.gemspec +0 -22
- data/vendor/bundle/ruby/3.3.0/specifications/zeitwerk-2.6.17.gemspec +0 -22
@@ -1,25 +0,0 @@
|
|
1
|
-
License
|
2
|
-
-------
|
3
|
-
|
4
|
-
(The MIT License)
|
5
|
-
|
6
|
-
Copyright (c) 2018 John Mair (banisterfiend)
|
7
|
-
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
9
|
-
a copy of this software and associated documentation files (the
|
10
|
-
'Software'), to deal in the Software without restriction, including
|
11
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
12
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
13
|
-
permit persons to whom the Software is furnished to do so, subject to
|
14
|
-
the following conditions:
|
15
|
-
|
16
|
-
The above copyright notice and this permission notice shall be
|
17
|
-
included in all copies or substantial portions of the Software.
|
18
|
-
|
19
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
20
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
21
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
22
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
23
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
24
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
25
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -1,466 +0,0 @@
|
|
1
|
-
Pry
|
2
|
-
===
|
3
|
-
|
4
|
-
[![Pry Build Status](https://github.com/pry/pry/workflows/pry/badge.svg)](https://github.com/pry/pry/actions)
|
5
|
-
[![Code Climate](https://codeclimate.com/github/pry/pry.svg)](https://codeclimate.com/github/pry/pry)
|
6
|
-
[![Gem Version](https://badge.fury.io/rb/pry.svg)](https://badge.fury.io/rb/pry)
|
7
|
-
[![Documentation Status](https://inch-ci.org/github/pry/pry.svg?branch=master)](https://inch-ci.org/github/pry/pry)
|
8
|
-
[![Downloads](https://img.shields.io/gem/dt/pry.svg?style=flat)](https://rubygems.org/gems/pry)
|
9
|
-
|
10
|
-
![Pry logo](https://www.dropbox.com/s/zp8o63kquby2rln/pry_logo_350.png?raw=1)
|
11
|
-
|
12
|
-
© John Mair ([banisterfiend](https://twitter.com/banisterfiend)) 2018<br> (Creator)
|
13
|
-
|
14
|
-
© Kyrylo Silin ([kyrylosilin](https://twitter.com/kyrylosilin)) 2018<br> (Maintainer)
|
15
|
-
|
16
|
-
**Alumni:**
|
17
|
-
|
18
|
-
* Conrad Irwin
|
19
|
-
* Ryan Fitzgerald
|
20
|
-
* Robert Gleeson
|
21
|
-
|
22
|
-
**Links:**
|
23
|
-
|
24
|
-
* https://pry.github.io/
|
25
|
-
* [YARD API documentation](https://www.rubydoc.info/gems/pry)
|
26
|
-
* [Wiki](https://github.com/pry/pry/wiki)
|
27
|
-
|
28
|
-
Table of Contents
|
29
|
-
=================
|
30
|
-
|
31
|
-
* [Introduction](#introduction)
|
32
|
-
* [Key features](#key-features)
|
33
|
-
* [Installation](#installation)
|
34
|
-
* [Overview](#overview)
|
35
|
-
* [Commands](#commands)
|
36
|
-
* [Navigating around state](#navigating-around-state)
|
37
|
-
* [Runtime invocation](#runtime-invocation)
|
38
|
-
* [Command Shell Integration](#command-shell-integration)
|
39
|
-
* [Code Browsing](#code-browsing)
|
40
|
-
* [Documentation Browsing](#documentation-browsing)
|
41
|
-
* [Edit methods](#edit-methods)
|
42
|
-
* [Live Help System](#live-help-system)
|
43
|
-
* [Use Pry as your Rails Console](#use-pry-as-your-rails-console)
|
44
|
-
* [Syntax Highlighting](#syntax-highlighting)
|
45
|
-
* [Supported Rubies](#supported-rubies)
|
46
|
-
* [Contact](#contact)
|
47
|
-
* [License](#license)
|
48
|
-
* [Contributors](#contributors)
|
49
|
-
|
50
|
-
Introduction
|
51
|
-
------------
|
52
|
-
|
53
|
-
Pry is a runtime developer console and IRB alternative with powerful
|
54
|
-
introspection capabilities. Pry aims to be more than an IRB replacement. It is
|
55
|
-
an attempt to bring REPL driven programming to the Ruby language.
|
56
|
-
|
57
|
-
Key features
|
58
|
-
------------
|
59
|
-
|
60
|
-
* Source code browsing (including core C source with the pry-doc gem)
|
61
|
-
* Documentation browsing
|
62
|
-
* Live help system
|
63
|
-
* Open methods in editors (`edit Class#method`)
|
64
|
-
* Syntax highlighting
|
65
|
-
* Command shell integration (start editors, run git, and rake from within Pry)
|
66
|
-
* Gist integration
|
67
|
-
* Navigation around state (`cd`, `ls` and friends)
|
68
|
-
* Runtime invocation (use Pry as a developer console or debugger)
|
69
|
-
* Exotic object support (BasicObject instances, IClasses, ...)
|
70
|
-
* A powerful and flexible command system
|
71
|
-
* Ability to view and replay history
|
72
|
-
* Many convenience commands inspired by IPython, Smalltalk and other advanced
|
73
|
-
REPLs
|
74
|
-
* A wide-range number of
|
75
|
-
[plugins](https://github.com/pry/pry/wiki/Available-plugins) that provide
|
76
|
-
remote sessions, full debugging functionality, and more.
|
77
|
-
|
78
|
-
Installation
|
79
|
-
------------
|
80
|
-
|
81
|
-
### Bundler
|
82
|
-
|
83
|
-
```ruby
|
84
|
-
gem 'pry', '~> 0.13.1'
|
85
|
-
```
|
86
|
-
|
87
|
-
### Manual
|
88
|
-
|
89
|
-
```sh
|
90
|
-
gem install pry
|
91
|
-
```
|
92
|
-
|
93
|
-
Overview
|
94
|
-
--------
|
95
|
-
|
96
|
-
Pry is fairly flexible and allows significant user
|
97
|
-
[customization](https://github.com/pry/pry/wiki/Customization-and-configuration).
|
98
|
-
It is trivial to read from any object that has a `readline` method and
|
99
|
-
write to any object that has a `puts` method. Many other aspects of Pry are
|
100
|
-
also configurable, making it a good choice for implementing custom shells.
|
101
|
-
|
102
|
-
Pry comes with an executable so it can be invoked at the command line. Just
|
103
|
-
enter `pry` to start. A `pryrc` file in `$XDG_CONFIG_HOME/pry/` or the user's
|
104
|
-
home directory will be loaded if it exists. Type `pry --help` at the command
|
105
|
-
line for more information.
|
106
|
-
|
107
|
-
### Commands
|
108
|
-
|
109
|
-
Nearly every piece of functionality in a Pry session is implemented as a
|
110
|
-
command. Commands are not methods and must start at the beginning of a line,
|
111
|
-
with no whitespace in between. Commands support a flexible syntax and allow
|
112
|
-
'options' in the same way as shell commands, for example the following Pry
|
113
|
-
command will show a list of all private instance methods (in scope) that begin
|
114
|
-
with 'pa'
|
115
|
-
|
116
|
-
```ruby
|
117
|
-
pry(YARD::Parser::SourceParser):5> ls -Mp --grep ^pa
|
118
|
-
YARD::Parser::SourceParser#methods: parse parser_class parser_type parser_type= parser_type_for_filename
|
119
|
-
```
|
120
|
-
|
121
|
-
### Navigating around state
|
122
|
-
|
123
|
-
Pry allows us to pop in and out of different scopes (objects) using the `cd`
|
124
|
-
command. This enables us to explore the run-time view of a program or
|
125
|
-
library. To view which variables and methods are available within a particular
|
126
|
-
scope we use the versatile [ls
|
127
|
-
command.](https://gist.github.com/c0fc686ef923c8b87715)
|
128
|
-
|
129
|
-
Here we will begin Pry at top-level, then Pry on a class and then on an instance
|
130
|
-
variable inside that class:
|
131
|
-
|
132
|
-
```ruby
|
133
|
-
pry(main)> class Hello
|
134
|
-
pry(main)* @x = 20
|
135
|
-
pry(main)* end
|
136
|
-
=> 20
|
137
|
-
pry(main)> cd Hello
|
138
|
-
pry(Hello):1> ls -i
|
139
|
-
instance variables: @x
|
140
|
-
pry(Hello):1> cd @x
|
141
|
-
pry(20):2> self + 10
|
142
|
-
=> 30
|
143
|
-
pry(20):2> cd ..
|
144
|
-
pry(Hello):1> cd ..
|
145
|
-
pry(main)> cd ..
|
146
|
-
```
|
147
|
-
|
148
|
-
The number after the `:` in the pry prompt indicates the nesting level. To
|
149
|
-
display more information about nesting, use the `nesting` command. E.g
|
150
|
-
|
151
|
-
```ruby
|
152
|
-
pry("friend"):3> nesting
|
153
|
-
Nesting status:
|
154
|
-
0. main (Pry top level)
|
155
|
-
1. Hello
|
156
|
-
2. 100
|
157
|
-
3. "friend"
|
158
|
-
=> nil
|
159
|
-
```
|
160
|
-
|
161
|
-
We can then jump back to any of the previous nesting levels by using the
|
162
|
-
`jump-to` command:
|
163
|
-
|
164
|
-
```ruby
|
165
|
-
pry("friend"):3> jump-to 1
|
166
|
-
=> 100
|
167
|
-
pry(Hello):1>
|
168
|
-
```
|
169
|
-
|
170
|
-
### Runtime invocation
|
171
|
-
|
172
|
-
Pry can be invoked in the middle of a running program. It opens a Pry session at
|
173
|
-
the point it's called and makes all program state at that point available. It
|
174
|
-
can be invoked on any object using the `my_object.pry` syntax or on the current
|
175
|
-
binding (or any binding) using `binding.pry`. The Pry session will then begin
|
176
|
-
within the scope of the object (or binding). When the session ends the program
|
177
|
-
continues with any modifications you made to it.
|
178
|
-
|
179
|
-
This functionality can be used for such things as: debugging, implementing
|
180
|
-
developer consoles and applying hot patches.
|
181
|
-
|
182
|
-
code:
|
183
|
-
|
184
|
-
```ruby
|
185
|
-
# test.rb
|
186
|
-
require 'pry'
|
187
|
-
|
188
|
-
class A
|
189
|
-
def hello() puts "hello world!" end
|
190
|
-
end
|
191
|
-
|
192
|
-
a = A.new
|
193
|
-
|
194
|
-
# start a REPL session
|
195
|
-
binding.pry
|
196
|
-
|
197
|
-
# program resumes here (after pry session)
|
198
|
-
puts "program resumes here."
|
199
|
-
```
|
200
|
-
|
201
|
-
Pry session:
|
202
|
-
|
203
|
-
```ruby
|
204
|
-
pry(main)> a.hello
|
205
|
-
hello world!
|
206
|
-
=> nil
|
207
|
-
pry(main)> def a.goodbye
|
208
|
-
pry(main)* puts "goodbye cruel world!"
|
209
|
-
pry(main)* end
|
210
|
-
=> :goodbye
|
211
|
-
pry(main)> a.goodbye
|
212
|
-
goodbye cruel world!
|
213
|
-
=> nil
|
214
|
-
pry(main)> exit
|
215
|
-
|
216
|
-
program resumes here.
|
217
|
-
```
|
218
|
-
|
219
|
-
### Command Shell Integration
|
220
|
-
|
221
|
-
A line of input that begins with a '.' will be forwarded to the command
|
222
|
-
shell. This enables us to navigate the file system, spawn editors, and run git
|
223
|
-
and rake directly from within Pry.
|
224
|
-
|
225
|
-
Further, we can use the `shell-mode` command to incorporate the present working
|
226
|
-
directory into the Pry prompt and bring in (limited at this stage, sorry) file
|
227
|
-
name completion. We can also interpolate Ruby code directly into the shell by
|
228
|
-
using the normal `#{}` string interpolation syntax.
|
229
|
-
|
230
|
-
In the code below we're going to switch to `shell-mode` and edit the `pryrc`
|
231
|
-
file. We'll then cat its contents and reload the file.
|
232
|
-
|
233
|
-
```ruby
|
234
|
-
pry(main)> shell-mode
|
235
|
-
pry main:/home/john/ruby/projects/pry $ .cd ~
|
236
|
-
pry main:/home/john $ .emacsclient .pryrc
|
237
|
-
pry main:/home/john $ .cat .pryrc
|
238
|
-
def hello_world
|
239
|
-
puts "hello world!"
|
240
|
-
end
|
241
|
-
pry main:/home/john $ load ".pryrc"
|
242
|
-
=> true
|
243
|
-
pry main:/home/john $ hello_world
|
244
|
-
hello world!
|
245
|
-
```
|
246
|
-
|
247
|
-
We can also interpolate Ruby code into the shell. In the example below we use
|
248
|
-
the shell command `cat` on a random file from the current directory and count
|
249
|
-
the number of lines in that file with `wc`:
|
250
|
-
|
251
|
-
```ruby
|
252
|
-
pry main:/home/john $ .cat #{Dir['*.*'].sample} | wc -l
|
253
|
-
44
|
254
|
-
```
|
255
|
-
|
256
|
-
### Code Browsing
|
257
|
-
|
258
|
-
You can browse method source code with the `show-source` command. Nearly all
|
259
|
-
Ruby methods (and some C methods, with the pry-doc gem) can have their source
|
260
|
-
viewed. Code that is longer than a page is sent through a pager (such as less),
|
261
|
-
and all code is properly syntax highlighted (even C code).
|
262
|
-
|
263
|
-
The `show-source` command accepts two syntaxes, the typical ri `Class#method`
|
264
|
-
syntax and also simply the name of a method that's in scope. You can optionally
|
265
|
-
pass the `-l` option to `show-source` to include line numbers in the output.
|
266
|
-
|
267
|
-
In the following example we will enter the `Pry` class, list the instance
|
268
|
-
methods beginning with 'se' and display the source code for the `set_last_result` method:
|
269
|
-
|
270
|
-
```ruby
|
271
|
-
pry(main)> cd Pry
|
272
|
-
pry(Pry):1> ls -M --grep se
|
273
|
-
Pry#methods: raise_up raise_up! raise_up_common reset_eval_string select_prompt set_last_result
|
274
|
-
pry(Pry):1> show-source set_last_result -l
|
275
|
-
|
276
|
-
From: /home/john/ruby/projects/pry/lib/pry/pry_instance.rb:405:
|
277
|
-
Owner: Pry
|
278
|
-
Visibility: public
|
279
|
-
Signature: set_last_result(result, code=?)
|
280
|
-
Number of lines: 6
|
281
|
-
|
282
|
-
405: def set_last_result(result, code = "")
|
283
|
-
406: @last_result_is_exception = false
|
284
|
-
407: @output_ring << result
|
285
|
-
408:
|
286
|
-
409: self.last_result = result unless code =~ /\A\s*\z/
|
287
|
-
410: end
|
288
|
-
```
|
289
|
-
|
290
|
-
Note that we can also view C methods (from Ruby Core) using the
|
291
|
-
`pry-doc` plugin; we also show off the alternate syntax for
|
292
|
-
`show-source`:
|
293
|
-
|
294
|
-
```ruby
|
295
|
-
pry(main)> show-source Array#select
|
296
|
-
|
297
|
-
From: array.c in Ruby Core (C Method):
|
298
|
-
Number of lines: 15
|
299
|
-
|
300
|
-
static VALUE
|
301
|
-
rb_ary_select(VALUE ary)
|
302
|
-
{
|
303
|
-
VALUE result;
|
304
|
-
long i;
|
305
|
-
|
306
|
-
RETURN_ENUMERATOR(ary, 0, 0);
|
307
|
-
result = rb_ary_new2(RARRAY_LEN(ary));
|
308
|
-
for (i = 0; i < RARRAY_LEN(ary); i++) {
|
309
|
-
if (RTEST(rb_yield(RARRAY_PTR(ary)[i]))) {
|
310
|
-
rb_ary_push(result, rb_ary_elt(ary, i));
|
311
|
-
}
|
312
|
-
}
|
313
|
-
return result;
|
314
|
-
}
|
315
|
-
```
|
316
|
-
|
317
|
-
### Documentation Browsing
|
318
|
-
|
319
|
-
One use-case for Pry is to explore a program at run-time by `cd`-ing in and out
|
320
|
-
of objects and viewing and invoking methods. In the course of exploring it may
|
321
|
-
be useful to read the documentation for a specific method that you come
|
322
|
-
across. `show-source` command supports two syntaxes - the
|
323
|
-
normal `ri` syntax as well as accepting the name of any method that is currently
|
324
|
-
in scope.
|
325
|
-
|
326
|
-
The Pry documentation system does not rely on pre-generated `rdoc` or `ri`,
|
327
|
-
instead it grabs the comments directly above the method on demand. This results
|
328
|
-
in speedier documentation retrieval and allows the Pry system to retrieve
|
329
|
-
documentation for methods that would not be picked up by `rdoc`. Pry also has a
|
330
|
-
basic understanding of both the rdoc and yard formats and will attempt to syntax
|
331
|
-
highlight the documentation appropriately.
|
332
|
-
|
333
|
-
Nonetheless, the `ri` functionality is very good and has an advantage over Pry's
|
334
|
-
system in that it allows documentation lookup for classes as well as
|
335
|
-
methods. Pry therefore has good integration with `ri` through the `ri`
|
336
|
-
command. The syntax for the command is exactly as it would be in command-line -
|
337
|
-
so it is not necessary to quote strings.
|
338
|
-
|
339
|
-
In our example we will enter the `Gem` class and view the documentation for the
|
340
|
-
`try_activate` method:
|
341
|
-
|
342
|
-
```ruby
|
343
|
-
pry(main)> cd Gem
|
344
|
-
pry(Gem):1> show-source try_activate -d
|
345
|
-
|
346
|
-
From: /Users/john/rbenv/versions/2.7.1/lib/ruby/2.7.0/rubygems.rb:194:
|
347
|
-
Owner: #<Class:Gem>
|
348
|
-
Visibility: public
|
349
|
-
Signature: try_activate(path)
|
350
|
-
Number of lines: 28
|
351
|
-
|
352
|
-
Try to activate a gem containing path. Returns true if
|
353
|
-
activation succeeded or wasn't needed because it was already
|
354
|
-
activated. Returns false if it can't find the path in a gem.
|
355
|
-
|
356
|
-
def self.try_activate(path)
|
357
|
-
# finds the _latest_ version... regardless of loaded specs and their deps
|
358
|
-
# if another gem had a requirement that would mean we shouldn't
|
359
|
-
# activate the latest version, then either it would already be activated
|
360
|
-
# or if it was ambiguous (and thus unresolved) the code in our custom
|
361
|
-
# require will try to activate the more specific version.
|
362
|
-
|
363
|
-
spec = Gem::Specification.find_by_path path
|
364
|
-
pry(Gem):1>
|
365
|
-
```
|
366
|
-
|
367
|
-
We can also use `ri` in the normal way:
|
368
|
-
|
369
|
-
```ruby
|
370
|
-
pry(main) ri Array#each
|
371
|
-
----------------------------------------------------------- Array#each
|
372
|
-
array.each {|item| block } -> array
|
373
|
-
------------------------------------------------------------------------
|
374
|
-
Calls _block_ once for each element in _self_, passing that element
|
375
|
-
as a parameter.
|
376
|
-
|
377
|
-
a = [ "a", "b", "c" ]
|
378
|
-
a.each {|x| print x, " -- " }
|
379
|
-
|
380
|
-
produces:
|
381
|
-
|
382
|
-
a -- b -- c --
|
383
|
-
```
|
384
|
-
|
385
|
-
### Edit methods
|
386
|
-
|
387
|
-
You can use `edit Class#method` or `edit my_method` (if the method is in scope)
|
388
|
-
to open a method for editing directly in your favorite editor. Pry has knowledge
|
389
|
-
of a few different editors and will attempt to open the file at the line the
|
390
|
-
method is defined.
|
391
|
-
|
392
|
-
You can set the editor to use by assigning to the `Pry.editor`
|
393
|
-
accessor. `Pry.editor` will default to `$EDITOR` or failing that will use `nano`
|
394
|
-
as the backup default. The file that is edited will be automatically reloaded
|
395
|
-
after exiting the editor - reloading can be suppressed by passing the
|
396
|
-
`--no-reload` option to `edit`
|
397
|
-
|
398
|
-
In the example below we will set our default editor to "emacsclient" and open
|
399
|
-
the `Pry#repl` method for editing:
|
400
|
-
|
401
|
-
```ruby
|
402
|
-
pry(main)> Pry.editor = "emacsclient"
|
403
|
-
pry(main)> edit Pry#repl
|
404
|
-
```
|
405
|
-
|
406
|
-
### Live Help System
|
407
|
-
|
408
|
-
Many other commands are available in Pry; to see the full list type `help` at
|
409
|
-
the prompt. A short description of each command is provided with basic
|
410
|
-
instructions for use; some commands have a more extensive help that can be
|
411
|
-
accessed via typing `command_name --help`. A command will typically say in its
|
412
|
-
description if the `--help` option is available.
|
413
|
-
|
414
|
-
### Use Pry as your Rails Console
|
415
|
-
|
416
|
-
The recommended way to use Pry as your Rails console is to add [the `pry-rails`
|
417
|
-
gem](https://github.com/rweng/pry-rails) to your Gemfile. This replaces the
|
418
|
-
default console with Pry, in addition to loading the Rails console helpers and
|
419
|
-
adding some useful Rails-specific commands.
|
420
|
-
|
421
|
-
If you don't want to change your Gemfile, you can still run a Pry console in
|
422
|
-
your app's environment using Pry's `-r` flag:
|
423
|
-
|
424
|
-
```sh
|
425
|
-
pry -r ./config/environment
|
426
|
-
```
|
427
|
-
|
428
|
-
Also check out the
|
429
|
-
[wiki](https://github.com/pry/pry/wiki/Setting-up-Rails-or-Heroku-to-use-Pry)
|
430
|
-
for more information about integrating Pry with Rails.
|
431
|
-
|
432
|
-
### Syntax Highlighting
|
433
|
-
|
434
|
-
Syntax highlighting is on by default in Pry. If you want to change the colors,
|
435
|
-
check out the [pry-theme](https://github.com/kyrylo/pry-theme) gem.
|
436
|
-
|
437
|
-
You can toggle the syntax highlighting on and off in a session by using the
|
438
|
-
`toggle-color` command. Alternatively, you can turn it off permanently by
|
439
|
-
putting the line `Pry.color = false` in your `pryrc` file.
|
440
|
-
|
441
|
-
Supported Rubies
|
442
|
-
----------------
|
443
|
-
|
444
|
-
* CRuby >= 2.0.0
|
445
|
-
* JRuby >= 9.0
|
446
|
-
|
447
|
-
Contact
|
448
|
-
-------
|
449
|
-
|
450
|
-
In case you have a problem, question or a bug report, feel free to:
|
451
|
-
|
452
|
-
* ask a question on IRC (#pry on Freenode)
|
453
|
-
* [file an issue](https://github.com/pry/pry/issues)
|
454
|
-
* [tweet at us](https://twitter.com/pryruby)
|
455
|
-
|
456
|
-
License
|
457
|
-
-------
|
458
|
-
|
459
|
-
The project uses the MIT License. See LICENSE.md for details.
|
460
|
-
|
461
|
-
Contributors
|
462
|
-
------------
|
463
|
-
|
464
|
-
Pry is primarily the work of [John Mair (banisterfiend)](https://github.com/banister), for full list
|
465
|
-
of contributors see the
|
466
|
-
[contributors graph](https://github.com/pry/pry/graphs/contributors).
|
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) 2012 Lee Jarvis
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|