summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Luis Leal Cardoso Junior <andrehjr@gmail.com>2022-03-09 19:27:12 -0300
committerAndré Luis Leal Cardoso Junior <andrehjr@gmail.com>2022-03-10 00:01:28 -0300
commitb2f8820a5b1539c16ce0e6005f382a3abcfef76d (patch)
treee1e9f42aa8be9af598adaab84f9052e387ccb4e0
parente43dbb0962eb065e8e8be59fcacd1068bd62519e (diff)
downloadpry-b2f8820a5b1539c16ce0e6005f382a3abcfef76d.tar.gz
Support jruby >= 9.0.0
-rw-r--r--README.md2
-rw-r--r--lib/pry/wrapped_module.rb2
-rw-r--r--spec/pryrc_spec.rb13
3 files changed, 7 insertions, 10 deletions
diff --git a/README.md b/README.md
index 7203e679..ced1dda9 100644
--- a/README.md
+++ b/README.md
@@ -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