pry-debugger-jruby 2.0.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 +4 -4
- data/.ruby-version +1 -1
- data/CHANGELOG.md +4 -0
- data/README.md +13 -8
- data/lib/pry-debugger-jruby/base.rb +1 -1
- data/lib/pry-debugger-jruby/cli.rb +0 -12
- data/lib/pry-debugger-jruby/commands.rb +5 -1
- data/lib/pry-debugger-jruby/version.rb +1 -1
- data/pry-debugger-jruby.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 674908e61c443a62c0bb7ca44b35097920b43e55c87550853cb113eabf899dea
|
4
|
+
data.tar.gz: ddb4c064edef6dc16090635a6033ca271ba4b94d1d6c0057e0d21c85ed61f91c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06ba93aa3d4f4afa29189d2182be2d751d4c79a2e5beca7f18efaa90e2f03b33d6dd4c7ef3be9ef32e8eb080eaa510dbb3d703aaace9e75b267659890ed534ba
|
7
|
+
data.tar.gz: bde34464766bebc045364934c7868c939e4f5bf1caddaa67dfb93d929d168397f5749557d96bb2d056f54b92888b4c04ed4986cafefcc69357ea64de380fb907
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
jruby-9.2.
|
1
|
+
jruby-9.2.19.0
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -10,16 +10,21 @@ Using MRI? I strongly recommend [`pry-byebug`](https://github.com/deivid-rodrigu
|
|
10
10
|
|
11
11
|
Adds `step`, `next`, `finish`, and `continue` commands and breakpoints (`break`/`breakpoints`) to [Pry](http://pry.github.com).
|
12
12
|
|
13
|
-
To use
|
13
|
+
To use:
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
15
|
+
* run JRuby with the `--debug` flag
|
16
|
+
* load the gem with `require 'pry-debugger-jruby'` ([_auto-loading was unfortunately removed in Pry 0.14_](https://github.com/pry/pry/pull/2119))
|
17
|
+
* and then invoke `pry` normally:
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
def some_method
|
21
|
+
binding.pry # Execution will stop here.
|
22
|
+
puts 'Hello, World!' # Run 'step' or 'next' in the console to move here.
|
23
|
+
end
|
24
|
+
```
|
21
25
|
|
22
|
-
You can also add the `--debug` flag to your `JRUBY_OPTS` environment variable, so it will be picked up by any ruby application.
|
26
|
+
You can also add the `--debug` flag to your `JRUBY_OPTS` environment variable, so it will be picked up by any ruby application.
|
27
|
+
Do note that running `JRuby` in debug mode **does** have a noticeable impact on performance.
|
23
28
|
|
24
29
|
## Execution Commands
|
25
30
|
|
@@ -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
|
|
@@ -1,15 +1,3 @@
|
|
1
|
-
# Pry's new plugin loading system ensures this file runs before pry-remote. So
|
2
|
-
# attempting to load everything directly from lib/pry-debugger-jruby.rb and
|
3
|
-
# referencing that here causes a circular dependency when running
|
4
|
-
# bin/pry-remote.
|
5
|
-
#
|
6
|
-
# So delay loading our monkey-patch to when someone explicity does a:
|
7
|
-
#
|
8
|
-
# require 'pry-debugger-jruby'
|
9
|
-
#
|
10
|
-
# Load everything else here.
|
11
|
-
#
|
12
|
-
|
13
1
|
require 'pry-debugger-jruby/base'
|
14
2
|
require 'pry-debugger-jruby/pry_ext'
|
15
3
|
require 'pry-debugger-jruby/commands'
|
@@ -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
|
-
|
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
|
data/pry-debugger-jruby.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
|
22
22
|
spec.required_ruby_version = '>= 2.2.0'
|
23
23
|
|
24
|
-
spec.add_dependency 'pry', '>= 0.13', '< 0.
|
24
|
+
spec.add_dependency 'pry', '>= 0.13', '< 0.15'
|
25
25
|
spec.add_dependency 'ruby-debug-base', '>= 0.10.4', '< 0.12'
|
26
26
|
|
27
27
|
spec.add_development_dependency 'bundler', '~> 2.1'
|
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.
|
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:
|
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
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
version: '0.13'
|
19
19
|
- - "<"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '0.
|
21
|
+
version: '0.15'
|
22
22
|
name: pry
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '0.13'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '0.
|
32
|
+
version: '0.15'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|
35
35
|
requirements:
|
@@ -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.
|
139
|
+
rubygems_version: 3.3.25
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: JRuby 9k-compatible pry debugging!
|