pry-debugger-jruby 2.1.0-java → 2.1.1-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8999ec9e5622dd8b610061bfced76bb07d96bbdf2f96fbb73d70971d664cb315
4
- data.tar.gz: f44667c3bd3af207edbfaec2b6af4072a7bb714fd22dfaa73ab4dc1d8847500c
3
+ metadata.gz: 674908e61c443a62c0bb7ca44b35097920b43e55c87550853cb113eabf899dea
4
+ data.tar.gz: ddb4c064edef6dc16090635a6033ca271ba4b94d1d6c0057e0d21c85ed61f91c
5
5
  SHA512:
6
- metadata.gz: 74966b4b70cfca5c758758df17b07f710f1b9ce9cae9530a4d7fac76eaf4f9d16ce7a3ab8c802b1d3867194563f75e89985cdbea695f1c016d8a95e55e086cb7
7
- data.tar.gz: 77ca97edc125c942e8f487d5421e68639780deb9b5dbfa2419f5f2822e793a68e8f034915efd5e26f0aba6e0d1c336bdea852ac0fe667aeddabfd9bd23f1aa9e
6
+ metadata.gz: 06ba93aa3d4f4afa29189d2182be2d751d4c79a2e5beca7f18efaa90e2f03b33d6dd4c7ef3be9ef32e8eb080eaa510dbb3d703aaace9e75b267659890ed534ba
7
+ data.tar.gz: bde34464766bebc045364934c7868c939e4f5bf1caddaa67dfb93d929d168397f5749557d96bb2d056f54b92888b4c04ed4986cafefcc69357ea64de380fb907
@@ -27,7 +27,7 @@ module PryDebuggerJRuby
27
27
  # Checks that a binding is in a local file context. Extracted from
28
28
  # https://github.com/pry/pry/blob/master/lib/pry/default_commands/context.rb
29
29
  def check_file_context(target)
30
- file = target.eval('__FILE__')
30
+ file = target.respond_to?(:source_location) ? target.source_location.first : target.eval('__FILE__')
31
31
  file == Pry.eval_path || (file !~ /(\(.*\))|<.*>/ && file != '' && file != '-e')
32
32
  end
33
33
 
@@ -159,7 +159,11 @@ module PryDebuggerJRuby
159
159
  unless PryDebuggerJRuby.check_file_context(target)
160
160
  raise ArgumentError, 'Line number declaration valid only in a file context.'
161
161
  end
162
- [target.eval('__FILE__'), line]
162
+ if target.respond_to?(:source_location)
163
+ [target.source_location.first, line]
164
+ else
165
+ [target.eval('__FILE__'), line]
166
+ end
163
167
  when /^(.+):(\d+)$/ # File and line number
164
168
  [$1, $2]
165
169
  else # Method or class name
@@ -1,3 +1,3 @@
1
1
  module PryDebuggerJRuby
2
- VERSION = '2.1.0'.freeze
2
+ VERSION = '2.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry-debugger-jruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: java
6
6
  authors:
7
7
  - Ivo Anjo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-24 00:00:00.000000000 Z
11
+ date: 2023-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -20,8 +20,8 @@ dependencies:
20
20
  - !ruby/object:Gem::Version
21
21
  version: '0.15'
22
22
  name: pry
23
- prerelease: false
24
23
  type: :runtime
24
+ prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
@@ -40,8 +40,8 @@ dependencies:
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0.12'
42
42
  name: ruby-debug-base
43
- prerelease: false
44
43
  type: :runtime
44
+ prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - ">="
@@ -57,8 +57,8 @@ dependencies:
57
57
  - !ruby/object:Gem::Version
58
58
  version: '2.1'
59
59
  name: bundler
60
- prerelease: false
61
60
  type: :development
61
+ prerelease: false
62
62
  version_requirements: !ruby/object:Gem::Requirement
63
63
  requirements:
64
64
  - - "~>"
@@ -71,8 +71,8 @@ dependencies:
71
71
  - !ruby/object:Gem::Version
72
72
  version: 0.1.6
73
73
  name: pry-remote
74
- prerelease: false
75
74
  type: :development
75
+ prerelease: false
76
76
  version_requirements: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - "~>"
@@ -85,8 +85,8 @@ dependencies:
85
85
  - !ruby/object:Gem::Version
86
86
  version: '13.0'
87
87
  name: rake
88
- prerelease: false
89
88
  type: :development
89
+ prerelease: false
90
90
  version_requirements: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - "~>"
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  - !ruby/object:Gem::Version
137
137
  version: '0'
138
138
  requirements: []
139
- rubygems_version: 3.1.6
139
+ rubygems_version: 3.3.25
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: JRuby 9k-compatible pry debugging!