Skip to content

Commit f7af5ee

Browse files
committed
Upgrade pry and pry-doc
To the lowest compatible with Ruby 3.3
1 parent 94078f2 commit f7af5ee

File tree

3 files changed

+16
-23
lines changed

3 files changed

+16
-23
lines changed

Gemfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ source 'https://rubygems.org'
22

33
gem 'rspec', '~> 3.4.0'
44
gem 'rake', '~> 13.1'
5-
gem 'pry', '~> 0.11.0'
6-
gem 'pry-doc', '~> 0.9.0', require: false, platforms: :mri
7-
gem 'method_source', '>= 0.8.2'
5+
gem 'pry', '~> 0.14.2'
6+
gem 'pry-doc', '~> 0.13.5', require: false, platforms: :mri
87
gem 'activesupport', '~> 4.1.11'
9-
gem 'yard', '~> 0.9.11'
108

119
group :metrics do
1210
gem 'simplecov', require: false

Gemfile.lock

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ GEM
1515
concurrent-ruby (~> 1.0)
1616
json (1.8.6)
1717
json (1.8.6-java)
18-
method_source (0.9.2)
18+
method_source (1.0.0)
1919
minitest (5.11.3)
2020
multi_json (1.14.1)
21-
pry (0.11.3)
22-
coderay (~> 1.1.0)
23-
method_source (~> 0.9.0)
24-
pry (0.11.3-java)
25-
coderay (~> 1.1.0)
26-
method_source (~> 0.9.0)
21+
pry (0.14.2)
22+
coderay (~> 1.1)
23+
method_source (~> 1.0)
24+
pry (0.14.2-java)
25+
coderay (~> 1.1)
26+
method_source (~> 1.0)
2727
spoon (~> 0.0)
28-
pry-doc (0.9.0)
29-
pry (~> 0.9)
30-
yard (~> 0.8)
28+
pry-doc (0.13.5)
29+
pry (~> 0.11)
30+
yard (~> 0.9.11)
3131
rake (13.1.0)
3232
rspec (3.4.0)
3333
rspec-core (~> 3.4.0)
@@ -60,13 +60,11 @@ PLATFORMS
6060

6161
DEPENDENCIES
6262
activesupport (~> 4.1.11)
63-
method_source (>= 0.8.2)
64-
pry (~> 0.11.0)
65-
pry-doc (~> 0.9.0)
63+
pry (~> 0.14.2)
64+
pry-doc (~> 0.13.5)
6665
rake (~> 13.1)
6766
rspec (~> 3.4.0)
6867
simplecov
69-
yard (~> 0.9.11)
7068

7169
BUNDLED WITH
7270
2.3.27

spec/robe/sash/doc_for_spec.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,8 @@ def foo; end
4343
end
4444

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

5149
if RUBY_ENGINE == "ruby"
5250
expect(struct.source).to be_nil
@@ -57,8 +55,7 @@ def foo; end
5755
end
5856
end
5957

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

6461
context "String#gsub info fields" do

0 commit comments

Comments
 (0)