Skip to content

Commit

Permalink
Upgrade pry and pry-doc
Browse files Browse the repository at this point in the history
To the lowest compatible with Ruby 3.3
  • Loading branch information
dgutov committed Mar 27, 2024
1 parent 94078f2 commit f7af5ee
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 23 deletions.
6 changes: 2 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ source 'https://rubygems.org'

gem 'rspec', '~> 3.4.0'
gem 'rake', '~> 13.1'
gem 'pry', '~> 0.11.0'
gem 'pry-doc', '~> 0.9.0', require: false, platforms: :mri
gem 'method_source', '>= 0.8.2'
gem 'pry', '~> 0.14.2'
gem 'pry-doc', '~> 0.13.5', require: false, platforms: :mri
gem 'activesupport', '~> 4.1.11'
gem 'yard', '~> 0.9.11'

group :metrics do
gem 'simplecov', require: false
Expand Down
26 changes: 12 additions & 14 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ GEM
concurrent-ruby (~> 1.0)
json (1.8.6)
json (1.8.6-java)
method_source (0.9.2)
method_source (1.0.0)
minitest (5.11.3)
multi_json (1.14.1)
pry (0.11.3)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
pry (0.11.3-java)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
pry (0.14.2-java)
coderay (~> 1.1)
method_source (~> 1.0)
spoon (~> 0.0)
pry-doc (0.9.0)
pry (~> 0.9)
yard (~> 0.8)
pry-doc (0.13.5)
pry (~> 0.11)
yard (~> 0.9.11)
rake (13.1.0)
rspec (3.4.0)
rspec-core (~> 3.4.0)
Expand Down Expand Up @@ -60,13 +60,11 @@ PLATFORMS

DEPENDENCIES
activesupport (~> 4.1.11)
method_source (>= 0.8.2)
pry (~> 0.11.0)
pry-doc (~> 0.9.0)
pry (~> 0.14.2)
pry-doc (~> 0.13.5)
rake (~> 13.1)
rspec (~> 3.4.0)
simplecov
yard (~> 0.9.11)

BUNDLED WITH
2.3.27
7 changes: 2 additions & 5 deletions spec/robe/sash/doc_for_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ def foo; end
end

it "mentions pry-doc when relevant" do
val = Pry.config.has_pry_doc
Pry.config.has_pry_doc = false
hide_const('PryDoc')
struct = described_class.method_struct(String.instance_method(:gsub))
Pry.config.has_pry_doc = val

if RUBY_ENGINE == "ruby"
expect(struct.source).to be_nil
Expand All @@ -57,8 +55,7 @@ def foo; end
end
end

# FIXME: Drop compatibility with Ruby < 2.3 and upgrade pry-doc and bundler.
context "native methods", RUBY_VERSION >= "2.4" && :skip do
context "native methods", RUBY_VERSION >= "2.6" && :skip do
let(:c) { described_class }

context "String#gsub info fields" do
Expand Down

0 comments on commit f7af5ee

Please sign in to comment.