pry-debugger-jruby 1.2.2-java → 2.0.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/{Gemfile → gems.rb} +0 -0
- data/lib/pry-debugger-jruby/commands.rb +12 -10
- data/lib/pry-debugger-jruby/version.rb +1 -1
- data/pry-debugger-jruby.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f66248f5198a5529ad65de81da42c927c0e39ac15efc25dc6b3fd78b4d4cc467
|
4
|
+
data.tar.gz: d29533cdc8958e271b006007127f05ecb54ff99b0e8dfbc3ccb775b22f31141e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a8cc5d89f81a8c6dc02449d9f95d3035932bf364327a1d418691c6ffa28d3209e7ed9f3bf33269bcdd871bfdf466aa3c0a67f86fbaf7bfd7918fe862de7d329
|
7
|
+
data.tar.gz: 1f4725014906da70199b946c3d53eb8836782be94b16318344dd7d42e6e709650ae2df39981b8d0d9bab063f8824516bf654676c7b8684475ed815d1c061e4be
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## 2.0.0 (2020-11-11)
|
2
|
+
|
3
|
+
* Allow syntax highlighting when printing breakpoints
|
4
|
+
* Improve documentation for next and breakpoints commands
|
5
|
+
* Add support for Pry 0.13, drop support for older Pry versions
|
6
|
+
|
1
7
|
## 1.2.2 (2020-08-18)
|
2
8
|
|
3
9
|
* Bump dependencies: `pry`, `ruby-debug-base` ([@stergiom](https://gitlab.com/stergiom))
|
data/README.md
CHANGED
@@ -25,7 +25,7 @@ You can also add the `--debug` flag to your `JRUBY_OPTS` environment variable, s
|
|
25
25
|
|
26
26
|
* `step`: Step execution into the next line or method. Takes an optional numeric argument to step multiple times.
|
27
27
|
|
28
|
-
* `next`: Step over to the next line within the same frame.
|
28
|
+
* `next`: Step over to the next line within the same frame. Takes an optional numeric argument to step multiple times. Differs from `step` in that it always stays within the same frame (e.g. does not go into other method calls).
|
29
29
|
|
30
30
|
* `finish`: Execute until current stack frame returns.
|
31
31
|
|
data/{Gemfile → gems.rb}
RENAMED
File without changes
|
@@ -31,6 +31,8 @@ module PryDebuggerJRuby
|
|
31
31
|
|
32
32
|
Step over within the same frame. By default, moves forward a single
|
33
33
|
line.
|
34
|
+
Differs from `step` in that it always stays within the same frame
|
35
|
+
(e.g. does not go into other method calls).
|
34
36
|
|
35
37
|
Examples:
|
36
38
|
|
@@ -118,7 +120,7 @@ module PryDebuggerJRuby
|
|
118
120
|
end
|
119
121
|
|
120
122
|
def process
|
121
|
-
Pry.processor.pry =
|
123
|
+
Pry.processor.pry = pry_instance
|
122
124
|
|
123
125
|
{
|
124
126
|
delete: :delete,
|
@@ -176,7 +178,7 @@ module PryDebuggerJRuby
|
|
176
178
|
description 'List defined breakpoints.'
|
177
179
|
|
178
180
|
banner <<-BANNER
|
179
|
-
Usage: breakpoints [
|
181
|
+
Usage: breakpoints [--verbose]
|
180
182
|
Aliases: breaks
|
181
183
|
|
182
184
|
List registered breakpoints and their current status.
|
@@ -195,8 +197,8 @@ module PryDebuggerJRuby
|
|
195
197
|
header = "#{' ' * (max_width - 1)}# Enabled At "
|
196
198
|
|
197
199
|
output.puts
|
198
|
-
output.puts
|
199
|
-
output.puts
|
200
|
+
output.puts Pry::Helpers::Text.bold(header)
|
201
|
+
output.puts Pry::Helpers::Text.bold('-' * header.size)
|
200
202
|
Breakpoints.each do |breakpoint|
|
201
203
|
output.printf "%#{max_width}d ", breakpoint.id
|
202
204
|
output.print breakpoint.enabled? ? 'Yes ' : 'No '
|
@@ -207,7 +209,7 @@ module PryDebuggerJRuby
|
|
207
209
|
output.puts
|
208
210
|
end
|
209
211
|
else
|
210
|
-
output.puts
|
212
|
+
output.puts Pry::Helpers::Text.bold('No breakpoints defined.')
|
211
213
|
end
|
212
214
|
end
|
213
215
|
end
|
@@ -217,11 +219,11 @@ module PryDebuggerJRuby
|
|
217
219
|
def breakout_navigation(action, times = nil)
|
218
220
|
return unless PryDebuggerJRuby.check_trace_enabled
|
219
221
|
|
220
|
-
|
222
|
+
pry_instance.binding_stack.clear # Clear the binding stack
|
221
223
|
throw :breakout_nav, { # Break out of the REPL loop and
|
222
224
|
action: action, # signal the tracer
|
223
225
|
times: times,
|
224
|
-
pry:
|
226
|
+
pry: pry_instance,
|
225
227
|
}
|
226
228
|
end
|
227
229
|
|
@@ -236,17 +238,17 @@ module PryDebuggerJRuby
|
|
236
238
|
# at that point.
|
237
239
|
def print_full_breakpoint(breakpoint)
|
238
240
|
line = breakpoint.pos
|
239
|
-
output.print
|
241
|
+
output.print Pry::Helpers::Text.bold("Breakpoint #{breakpoint.id}: ")
|
240
242
|
output.print "#{breakpoint.source} @ line #{line} "
|
241
243
|
output.print breakpoint.enabled? ? '(Enabled)' : '(Disabled)'
|
242
244
|
output.puts ' :'
|
243
245
|
if (expr = breakpoint.expr)
|
244
|
-
output.puts "#{
|
246
|
+
output.puts "#{Pry::Helpers::Text.bold('Condition:')} #{expr}"
|
245
247
|
end
|
246
248
|
output.puts
|
247
249
|
output.puts(
|
248
250
|
Pry::Code.from_file(breakpoint.source)
|
249
|
-
.around(line, 3).with_line_numbers.with_marker(line).
|
251
|
+
.around(line, 3).with_line_numbers.with_marker(line).highlighted
|
250
252
|
)
|
251
253
|
output.puts
|
252
254
|
end
|
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.
|
24
|
+
spec.add_dependency 'pry', '>= 0.13', '< 0.14'
|
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,24 +1,24 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry-debugger-jruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
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
|
+
date: 2020-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
15
15
|
requirements:
|
16
16
|
- - ">="
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version: '0.
|
18
|
+
version: '0.13'
|
19
19
|
- - "<"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '0.
|
21
|
+
version: '0.14'
|
22
22
|
name: pry
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
@@ -26,10 +26,10 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.13'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '0.
|
32
|
+
version: '0.14'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|
35
35
|
requirements:
|
@@ -102,11 +102,11 @@ files:
|
|
102
102
|
- ".gitignore"
|
103
103
|
- ".ruby-version"
|
104
104
|
- CHANGELOG.md
|
105
|
-
- Gemfile
|
106
105
|
- LICENSE
|
107
106
|
- README.md
|
108
107
|
- Rakefile
|
109
108
|
- bin/pry
|
109
|
+
- gems.rb
|
110
110
|
- lib/pry-debugger-jruby.rb
|
111
111
|
- lib/pry-debugger-jruby/base.rb
|
112
112
|
- lib/pry-debugger-jruby/breakpoints.rb
|