オレ達の onk の PR コメントのおかげで pry-doc 0.11.0 がリリースされた 。ありがとうございます。
7ヶ月越しでマージされた PR は以下。変更は単純で raise
を puts
にして pry-doc の対応していない開発版 Ruby を使った時の例外を起こさなくしているのみ。たしか他の変更内容とまとめて puts
が raise
にされてコミットがされていて、そこに意図をあまり感じなかったため一部を元の形にする形で PR としたものだったと記憶する。
当時のバックトレースの抜粋だけれど、開発版である Ruby 2.5.0 と pry-doc を併用するとエラーになるといった問題が解決されていると思います。
% bundle exec rails c /Users/koic/.rbenv/versions/2.5.0-dev/lib/ruby/gems/2.5.0/gems/activesupport-5.0.1/lib/active_support/xml_mini.rb:51: warning: constant ::Fixnum is deprecated /Users/koic/.rbenv/versions/2.5.0-dev/lib/ruby/gems/2.5.0/gems/activesupport-5.0.1/lib/active_support/xml_mini.rb:52: warning: constant ::Bignum is deprecated /Users/koic/.rbenv/versions/2.5.0-dev/lib/ruby/gems/2.5.0/gems/bundler-1.13.7/lib/bundler/runtime.rb:94:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'pry-doc'. (Bundler::GemRequireError) Gem Load Error is: ruby/2.5.0 isn't supported by this pry-doc version Backtrace for gem load error is: /Users/koic/.rbenv/versions/2.5.0-dev/lib/ruby/gems/2.5.0/gems/pry-doc-0.10.0/lib/pry-doc.rb:10:in `load_yardoc' /Users/koic/.rbenv/versions/2.5.0-dev/lib/ruby/gems/2.5.0/gems/pry-doc-0.10.0/lib/pry-doc.rb:20:in `<top (required)>'
良い開発版ライフを。