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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f66248f5198a5529ad65de81da42c927c0e39ac15efc25dc6b3fd78b4d4cc467
4
- data.tar.gz: d29533cdc8958e271b006007127f05ecb54ff99b0e8dfbc3ccb775b22f31141e
3
+ metadata.gz: 674908e61c443a62c0bb7ca44b35097920b43e55c87550853cb113eabf899dea
4
+ data.tar.gz: ddb4c064edef6dc16090635a6033ca271ba4b94d1d6c0057e0d21c85ed61f91c
5
5
  SHA512:
6
- metadata.gz: 2a8cc5d89f81a8c6dc02449d9f95d3035932bf364327a1d418691c6ffa28d3209e7ed9f3bf33269bcdd871bfdf466aa3c0a67f86fbaf7bfd7918fe862de7d329
7
- data.tar.gz: 1f4725014906da70199b946c3d53eb8836782be94b16318344dd7d42e6e709650ae2df39981b8d0d9bab063f8824516bf654676c7b8684475ed815d1c061e4be
6
+ metadata.gz: 06ba93aa3d4f4afa29189d2182be2d751d4c79a2e5beca7f18efaa90e2f03b33d6dd4c7ef3be9ef32e8eb080eaa510dbb3d703aaace9e75b267659890ed534ba
7
+ data.tar.gz: bde34464766bebc045364934c7868c939e4f5bf1caddaa67dfb93d929d168397f5749557d96bb2d056f54b92888b4c04ed4986cafefcc69357ea64de380fb907
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- jruby-9.2.13.0
1
+ jruby-9.2.19.0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.1.0 (2021-07-24)
2
+
3
+ * Tweak supported versions to allow Pry 0.14 (no code changes otherwise needed)
4
+
1
5
  ## 2.0.0 (2020-11-11)
2
6
 
3
7
  * Allow syntax highlighting when printing breakpoints
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, run JRuby with the `--debug` flag, and then invoke `pry` normally:
13
+ To use:
14
14
 
15
- ```ruby
16
- def some_method
17
- binding.pry # Execution will stop here.
18
- puts 'Hello, World!' # Run 'step' or 'next' in the console to move here.
19
- end
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. Do note that running `JRuby` in debug mode **does** have a noticeable impact on performance.
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
- [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.0.0'.freeze
2
+ VERSION = '2.1.1'.freeze
3
3
  end
@@ -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.14'
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.0.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: 2020-11-11 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
@@ -18,7 +18,7 @@ dependencies:
18
18
  version: '0.13'
19
19
  - - "<"
20
20
  - !ruby/object:Gem::Version
21
- version: '0.14'
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.14'
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.0.6
139
+ rubygems_version: 3.3.25
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: JRuby 9k-compatible pry debugging!