diff options
author | André Luis Leal Cardoso Junior <andrehjr@gmail.com> | 2022-03-09 19:27:12 -0300 |
---|---|---|
committer | André Luis Leal Cardoso Junior <andrehjr@gmail.com> | 2022-03-10 00:01:28 -0300 |
commit | b2f8820a5b1539c16ce0e6005f382a3abcfef76d (patch) | |
tree | e1e9f42aa8be9af598adaab84f9052e387ccb4e0 | |
parent | e43dbb0962eb065e8e8be59fcacd1068bd62519e (diff) | |
download | pry-b2f8820a5b1539c16ce0e6005f382a3abcfef76d.tar.gz |
Support jruby >= 9.0.0
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | lib/pry/wrapped_module.rb | 2 | ||||
-rw-r--r-- | spec/pryrc_spec.rb | 13 |
3 files changed, 7 insertions, 10 deletions
@@ -444,7 +444,7 @@ Supported Rubies ---------------- * CRuby >= 2.0.0 -* JRuby >= 1.7 +* JRuby >= 9.0 Contact ------- diff --git a/lib/pry/wrapped_module.rb b/lib/pry/wrapped_module.rb index c07ba682..c21b2a01 100644 --- a/lib/pry/wrapped_module.rb +++ b/lib/pry/wrapped_module.rb @@ -258,7 +258,7 @@ class Pry y.yield candidate(num) end end - Helpers::Platform.jruby_19? ? enum.to_a : enum + enum end # @return [Boolean] Whether YARD docs are available for this module. diff --git a/spec/pryrc_spec.rb b/spec/pryrc_spec.rb index 59f2eed9..e5bfe259 100644 --- a/spec/pryrc_spec.rb +++ b/spec/pryrc_spec.rb @@ -24,16 +24,13 @@ describe Pry do expect(TEST_RC).to eq [0] end - # Resolving symlinks doesn't work on jruby 1.9 [jruby issue #538] - unless Pry::Helpers::Platform.jruby_19? - it "should not load the rc file twice if it's symlinked differently" do - Pry.config.rc_file = 'spec/fixtures/testrc' - stub_const('Pry::LOCAL_RC_FILE', 'spec/fixtures/testlinkrc') + it "should not load the rc file twice if it's symlinked differently" do + Pry.config.rc_file = 'spec/fixtures/testrc' + stub_const('Pry::LOCAL_RC_FILE', 'spec/fixtures/testlinkrc') - Pry.start(self, input: StringIO.new("exit-all\n"), output: StringIO.new) + Pry.start(self, input: StringIO.new("exit-all\n"), output: StringIO.new) - expect(TEST_RC).to eq [0] - end + expect(TEST_RC).to eq [0] end it "should not load the pryrc if pryrc's directory permissions do not allow this" do |