pry-debugger-jruby 1.2.2-java → 2.0.0-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b08b62363c970d6874cb6196117bd338828c5ee17bacd6483c00afd2d87e5a72
4
- data.tar.gz: dbb967229a28ff7b073062abd182c962608f8870589c7c8fe0dce6d26b422c21
3
+ metadata.gz: f66248f5198a5529ad65de81da42c927c0e39ac15efc25dc6b3fd78b4d4cc467
4
+ data.tar.gz: d29533cdc8958e271b006007127f05ecb54ff99b0e8dfbc3ccb775b22f31141e
5
5
  SHA512:
6
- metadata.gz: feb07446d0a0656ffaa2e21d38d6f21f182f4ed12ac925f5814357606aeb90f1ef7c190acace5188f354dc7176bbaa648f5f654ab986740988248bb4e16025da
7
- data.tar.gz: db44b5fafa543d32f7bc7da198392fdcdf65d1858c86d42804fd54a3d9707ab8be63c0414dbb91f5bb837818521316d387b83770bd75ba1c86a93b99acb85a8f
6
+ metadata.gz: 2a8cc5d89f81a8c6dc02449d9f95d3035932bf364327a1d418691c6ffa28d3209e7ed9f3bf33269bcdd871bfdf466aa3c0a67f86fbaf7bfd7918fe862de7d329
7
+ data.tar.gz: 1f4725014906da70199b946c3d53eb8836782be94b16318344dd7d42e6e709650ae2df39981b8d0d9bab063f8824516bf654676c7b8684475ed815d1c061e4be
data/.gitignore CHANGED
@@ -4,6 +4,7 @@
4
4
  .config
5
5
  .yardoc
6
6
  Gemfile.lock
7
+ gems.locked
7
8
  InstalledFiles
8
9
  _yardoc
9
10
  coverage
@@ -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. Also takes an optional numeric argument to step multiple lines.
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
 
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 = _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 [OPTIONS]
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 text.bold(header)
199
- output.puts text.bold('-' * header.size)
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 text.bold('No breakpoints defined.')
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
- _pry_.binding_stack.clear # Clear the binding stack
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: _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 text.bold("Breakpoint #{breakpoint.id}: ")
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 "#{text.bold('Condition:')} #{expr}"
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).to_s
251
+ .around(line, 3).with_line_numbers.with_marker(line).highlighted
250
252
  )
251
253
  output.puts
252
254
  end
@@ -1,3 +1,3 @@
1
1
  module PryDebuggerJRuby
2
- VERSION = '1.2.2'.freeze
2
+ VERSION = '2.0.0'.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.10', '< 0.13'
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: 1.2.2
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-08-18 00:00:00.000000000 Z
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.10'
18
+ version: '0.13'
19
19
  - - "<"
20
20
  - !ruby/object:Gem::Version
21
- version: '0.13'
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.10'
29
+ version: '0.13'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '0.13'
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