1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Support jruby >= 9.0.0

This commit is contained in:
André Luis Leal Cardoso Junior 2022-03-09 19:27:12 -03:00
parent e43dbb0962
commit b2f8820a5b
3 changed files with 7 additions and 10 deletions

View file

@ -444,7 +444,7 @@ Supported Rubies
----------------
* CRuby >= 2.0.0
* JRuby >= 1.7
* JRuby >= 9.0
Contact
-------

View file

@ -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.

View file

@ -24,8 +24,6 @@ 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')
@ -34,7 +32,6 @@ describe Pry do
expect(TEST_RC).to eq [0]
end
end
it "should not load the pryrc if pryrc's directory permissions do not allow this" do
Dir.mktmpdir do |dir|