pry-debugger-jruby 1.1.0-java → 1.2.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
- SHA1:
3
- metadata.gz: c487da46079e6318b389b2f3d27685e720d7cfe9
4
- data.tar.gz: 2bb4cbd26d84c4ac9a26f1b065ce4af41be66f20
2
+ SHA256:
3
+ metadata.gz: bcacdc52918d9833498ca2e768cab012ee6ea508ed53c4eac814270c7b44757e
4
+ data.tar.gz: 87e1eee63ecc0abee9adb200fd175851a3ec1ccaf8058ee0a16998b0335fc8ba
5
5
  SHA512:
6
- metadata.gz: f6e33901b57631b130cb2efdcacb18866967434f58f13c597795b21f5ae94de5942d7de7ed9cfc9774600f43b5c95927b1c77dd72aeb43aea8ec2df1c8da0912
7
- data.tar.gz: 1f49db5d4716dbeb307a98ddb4b048d5ba5fec4d9401c9353b5ed6bf4d68fc43cf82cda6d8c1b8815577d5ebf2635d5e3c8e9339cce1ae0d032da4c5c40913d3
6
+ metadata.gz: 47aa20dfc57f96f03eb2e4501a5d5f9f9a2d9f450d6f654392237eb9380fe87be16f752927e1f53ed573707341c6c5f246183491b02f94265dde35148abf4a2e
7
+ data.tar.gz: 9b8d9ecb43608c2c5ea3aa4f2278dc47d671f20355eee86bf289f3b1b5617f70699bc48d6c7200b9a71f581ab77b75725c83ec341e69b28c4cca1c11d179f9a6
@@ -1 +1 @@
1
- jruby-9.1.5.0
1
+ jruby-9.1.14.0
data/README.md CHANGED
@@ -1,7 +1,11 @@
1
1
  # pry-debugger-jruby
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/pry-debugger-jruby.svg)](https://badge.fury.io/rb/pry-debugger-jruby)
4
+
3
5
  _JRuby 9k-compatible pry debugging!_
4
6
 
7
+ Requires JRuby >= 9.1.3.0.
8
+
5
9
  Using MRI? I strongly recommend [`pry-byebug`](https://github.com/deivid-rodriguez/pry-byebug) instead!
6
10
 
7
11
  Adds `step`, `next`, `finish`, and `continue` commands and `breakpoints` to [Pry](http://pry.github.com).
@@ -31,11 +35,10 @@ You can also add the `--debug` flag to your `JRUBY_OPTS` environment variable, s
31
35
 
32
36
  You can set and adjust breakpoints directly from a Pry session using the following commands:
33
37
 
34
- * `break`: Set a new breakpoint from a line number in the current file, a file and line number, or a method. Pass an optional expression to create a conditional breakpoint. Edit existing breakpoints via various flags.
38
+ * `break`: Set a new breakpoint from a line number in the current file, a file and line number, or a method. Pass an optional expression to create a conditional breakpoint. Edit existing breakpoints via various flags. Type `break --help` from a Pry session to see all available options.
35
39
 
36
40
  Examples:
37
-
38
- ```ruby
41
+ ```ruby
39
42
  break SomeClass#run Break at the start of `SomeClass#run`.
40
43
  break Foo#bar if baz? Break at `Foo#bar` only if `baz?`.
41
44
  break app/models/user.rb:15 Break at line 15 in user.rb.
@@ -49,9 +52,7 @@ break --disable-all Disable all breakpoints.
49
52
 
50
53
  break List all breakpoints. (Same as `breakpoints`)
51
54
  break --show 2 Show details about breakpoint #2.
52
- ```
53
-
54
- Type `break --help` from a Pry session to see all available options.
55
+ ```
55
56
 
56
57
  * `breakpoints`: List all defined breakpoints. Pass `-v` or `--verbose` to see the source code around each breakpoint.
57
58
 
@@ -70,6 +71,8 @@ gem 'pry-debugger-jruby'
70
71
  Then add `binding.remote_pry` where you want to pause:
71
72
 
72
73
  ```ruby
74
+ require 'pry-remote'
75
+
73
76
  class UsersController < ApplicationController
74
77
  def index
75
78
  binding.remote_pry
@@ -99,13 +102,13 @@ end
99
102
 
100
103
  ## Contributors
101
104
 
102
- `pry-debugger-jruby` is maintained by [@ivoanjo](https://github.com/ivoanjo/) and is based off the awesome previous work from the [`pry-debugger`](https://github.com/nixme/pry-debugger) creators:
105
+ `pry-debugger-jruby` is maintained by [Ivo Anjo](https://github.com/ivoanjo/) and is based off the awesome previous work from the [`pry-debugger`](https://github.com/nixme/pry-debugger) creators:
103
106
 
104
- * Gopal Patel (@nixme)
105
- * John Mair (@banister)
106
- * Nicolas Viennot (@nviennot)
107
- * Benjamin R. Haskell (@benizi)
108
- * Joshua Hou (@jshou)
107
+ * [Gopal Patel](https://github.com/nixme)
108
+ * [John Mair](https://github.com/banister)
109
+ * [Nicolas Viennot](https://github.com/nviennot)
110
+ * [Benjamin R. Haskell](https://github.com/benizi)
111
+ * [Joshua Hou](https://github.com/jshou)
109
112
  * ...and others who helped with [`pry-nav`](https://github.com/nixme/pry-nav)
110
113
 
111
114
  Patches and bug reports are welcome. Just send in a pull request or issue :)
data/bin/pry ADDED
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'pry' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
12
+ load(bundle_binstub) if File.file?(bundle_binstub)
13
+
14
+ require "pathname"
15
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
16
+ Pathname.new(__FILE__).realpath)
17
+
18
+ require "rubygems"
19
+ require "bundler/setup"
20
+
21
+ load Gem.bin_path("pry", "pry")
@@ -162,7 +162,9 @@ module PryDebuggerJRuby
162
162
  [$1, $2]
163
163
  else # Method or class name
164
164
  self.args = [place]
165
- method_object.source_location
165
+ location = method_object.source_location
166
+ location[1] += 1
167
+ location
166
168
  end
167
169
 
168
170
  print_full_breakpoint Breakpoints.add(file, line.to_i, condition)
@@ -1,3 +1,3 @@
1
1
  module PryDebuggerJRuby
2
- VERSION = '1.1.0'.freeze
2
+ VERSION = '1.2.0'.freeze
3
3
  end
@@ -21,9 +21,10 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.required_ruby_version = '>= 2.2.0'
23
23
 
24
- spec.add_runtime_dependency 'pry', '>= 0.10', '< 0.11'
25
- spec.add_runtime_dependency 'ruby-debug-base', '~> 0.10.4'
24
+ spec.add_dependency 'pry', '>= 0.10', '< 0.12'
25
+ spec.add_dependency 'ruby-debug-base', '~> 0.10.4'
26
26
 
27
+ spec.add_development_dependency 'bundler', '~> 1.16'
27
28
  spec.add_development_dependency 'pry-remote', '~> 0.1.6'
28
- spec.add_development_dependency 'rake', '~> 11.3'
29
+ spec.add_development_dependency 'rake', '~> 12.3'
29
30
  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: 1.1.0
4
+ version: 1.2.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: 2016-12-02 00:00:00.000000000 Z
11
+ date: 2017-12-03 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.10'
19
19
  - - "<"
20
20
  - !ruby/object:Gem::Version
21
- version: '0.11'
21
+ version: '0.12'
22
22
  name: pry
23
23
  prerelease: false
24
24
  type: :runtime
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '0.10'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '0.11'
32
+ version: '0.12'
33
33
  - !ruby/object:Gem::Dependency
34
34
  requirement: !ruby/object:Gem::Requirement
35
35
  requirements:
@@ -44,6 +44,20 @@ dependencies:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
46
  version: 0.10.4
47
+ - !ruby/object:Gem::Dependency
48
+ requirement: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '1.16'
53
+ name: bundler
54
+ prerelease: false
55
+ type: :development
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '1.16'
47
61
  - !ruby/object:Gem::Dependency
48
62
  requirement: !ruby/object:Gem::Requirement
49
63
  requirements:
@@ -63,7 +77,7 @@ dependencies:
63
77
  requirements:
64
78
  - - "~>"
65
79
  - !ruby/object:Gem::Version
66
- version: '11.3'
80
+ version: '12.3'
67
81
  name: rake
68
82
  prerelease: false
69
83
  type: :development
@@ -71,8 +85,9 @@ dependencies:
71
85
  requirements:
72
86
  - - "~>"
73
87
  - !ruby/object:Gem::Version
74
- version: '11.3'
75
- description: Add a JRuby-compatible debugger to 'pry'. Adds 'step', 'next', and 'continue' commands to control execution.
88
+ version: '12.3'
89
+ description: Add a JRuby-compatible debugger to 'pry'. Adds 'step', 'next', and 'continue'
90
+ commands to control execution.
76
91
  email: ivo.anjo@ist.utl.pt
77
92
  executables: []
78
93
  extensions: []
@@ -85,6 +100,7 @@ files:
85
100
  - LICENSE
86
101
  - README.md
87
102
  - Rakefile
103
+ - bin/pry
88
104
  - lib/pry-debugger-jruby.rb
89
105
  - lib/pry-debugger-jruby/base.rb
90
106
  - lib/pry-debugger-jruby/breakpoints.rb
@@ -115,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
131
  version: '0'
116
132
  requirements: []
117
133
  rubyforge_project:
118
- rubygems_version: 2.6.6
134
+ rubygems_version: 2.6.13
119
135
  signing_key:
120
136
  specification_version: 4
121
137
  summary: JRuby 9k-compatible pry debugging!