pry-nav 0.2.4 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +5 -0
- data/Gemfile +1 -1
- data/README.md +27 -32
- data/lib/pry-nav/commands.rb +1 -1
- data/lib/pry-nav/pry_ext.rb +1 -1
- data/lib/pry-nav/pry_remote_ext.rb +1 -0
- data/lib/pry-nav/tracer.rb +1 -1
- data/lib/pry-nav/version.rb +1 -1
- data/pry-nav.gemspec +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 60380e147933ae1e2ba3ecef2259bec48e90cef46f1fa5c28e4272e3c92b87c2
|
4
|
+
data.tar.gz: 645b2e7372f791a6d8f907025a9884ac4f8b2e9d2f9c165118c99cca48a5a946
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c494dfb85a667aa37007e22088085e73444cb08a3525d1f87c129cca087ab8e79851a4cb9791cb5855064b3f50baa88d0186df6c208cbf0fad69e533618bafd1
|
7
|
+
data.tar.gz: 6ee2450ed59686be5522dd78b9b4da811106e4235a79952e48603c49eca9fd089f93c1b29bff2522243f7caba20c77ee204f1c41855534328065fc9c71eb0118
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,32 +1,33 @@
|
|
1
|
-
### Using MRI
|
2
|
-
### Using MRI 2+? Switch to [**pry-byebug**][pry-byebug].
|
1
|
+
### Using MRI? We recommend [**pry-byebug**][pry-byebug] instead!
|
3
2
|
|
4
|
-
|
3
|
+
# pry-nav
|
5
4
|
|
6
|
-
|
5
|
+
_A simple execution control add-on for [Pry][pry]._
|
7
6
|
|
8
|
-
|
9
|
-
=======
|
7
|
+
Compatible with MRI >= 1.8.7, ![JRuby](https://raw.githubusercontent.com/jruby/collateral/master/logos/PNGs/logo-with-type/full-color/jruby-logo-logo-with-type-small.png) >= 9.1.3.0.
|
10
8
|
|
11
|
-
|
12
|
-
|
13
|
-
Teaches [Pry][pry] about **step**, **next**, and **continue** to create a simple
|
9
|
+
Teaches [Pry][pry] about `step`, `next`, and `continue` to create a simple
|
14
10
|
debugger.
|
15
11
|
|
16
|
-
To use, invoke pry normally:
|
12
|
+
To use, invoke `pry` normally:
|
17
13
|
|
18
14
|
```ruby
|
19
15
|
def some_method
|
20
16
|
binding.pry # Execution will stop here.
|
21
|
-
puts 'Hello World'
|
17
|
+
puts 'Hello, World!' # Run 'step' or 'next' in the console to move here.
|
22
18
|
end
|
23
19
|
```
|
24
20
|
|
25
|
-
|
21
|
+
When using JRuby, you also need to run it with the `--debug` flag. You can
|
22
|
+
also add the flag to your `JRUBY_OPTS` environment variable for it to apply
|
23
|
+
when running any ruby command, but do note that even when not making use of
|
24
|
+
`pry` this has a big impact on JRuby performance.
|
25
|
+
|
26
|
+
`pry-nav` is not yet thread-safe, so only use in single-threaded environments.
|
26
27
|
|
27
|
-
Rudimentary support for [pry-remote][pry-remote] (>= 0.1.1) is also included.
|
28
|
-
Ensure pry-remote is loaded or required before pry-nav
|
29
|
-
Gemfile
|
28
|
+
Rudimentary support for [`pry-remote`][pry-remote] (>= 0.1.1) is also included.
|
29
|
+
Ensure `pry-remote` is loaded or required before `pry-nav`. For example, in a
|
30
|
+
`Gemfile`:
|
30
31
|
|
31
32
|
```ruby
|
32
33
|
gem 'pry'
|
@@ -42,36 +43,30 @@ Pry.commands.alias_command 's', 'step'
|
|
42
43
|
Pry.commands.alias_command 'n', 'next'
|
43
44
|
```
|
44
45
|
|
45
|
-
|
46
|
+
Please note that debugging functionality is implemented through
|
46
47
|
[`set_trace_func`][set_trace_func], which imposes a large performance
|
47
|
-
penalty.
|
48
|
-
[bug in 1.9.2][ruby-bug], the console will feel sluggish. Use 1.9.3 for best
|
49
|
-
results and almost no performance penalty.
|
50
|
-
|
48
|
+
penalty.
|
51
49
|
|
52
50
|
## Contributors
|
53
51
|
|
54
|
-
* Gopal Patel (@nixme)
|
55
|
-
* John Mair (@banister)
|
56
|
-
* Conrad Irwin (@ConradIrwin)
|
57
|
-
* Benjamin R. Haskell (@benizi)
|
58
|
-
* Jason R. Clark (@jasonrclark)
|
52
|
+
* Gopal Patel ([@nixme](https://github.com/nixme))
|
53
|
+
* John Mair ([@banister](https://github.com/banister))
|
54
|
+
* Conrad Irwin ([@ConradIrwin](https://github.com/ConradIrwin))
|
55
|
+
* Benjamin R. Haskell ([@benizi](https://github.com/benizi))
|
56
|
+
* Jason R. Clark ([@jasonrclark](https://github.com/jasonrclark))
|
57
|
+
* Ivo Anjo ([@ivoanjo](https://github.com/ivoanjo))
|
59
58
|
|
60
59
|
Patches and bug reports are welcome. Just send a [pull request][pullrequests] or
|
61
60
|
file an [issue][issues]. [Project changelog][changelog].
|
62
61
|
|
63
|
-
|
64
62
|
## Acknowledgments
|
65
63
|
|
66
|
-
|
67
|
-
|
68
|
-
|
64
|
+
* Ruby stdlib's [debug.rb][debug.rb]
|
65
|
+
* [@Mon-Ouie][Mon-Ouie]'s [pry_debug][pry_debug]
|
69
66
|
|
70
|
-
[pry
|
71
|
-
[pry]: http://pry.github.com
|
67
|
+
[pry]: http://pryrepl.org/
|
72
68
|
[pry-remote]: https://github.com/Mon-Ouie/pry-remote
|
73
69
|
[set_trace_func]: http://www.ruby-doc.org/core-1.9.3/Kernel.html#method-i-set_trace_func
|
74
|
-
[ruby-bug]: http://redmine.ruby-lang.org/issues/3921
|
75
70
|
[pullrequests]: https://github.com/nixme/pry-nav/pulls
|
76
71
|
[issues]: https://github.com/nixme/pry-nav/issues
|
77
72
|
[changelog]: https://github.com/nixme/pry-nav/blob/master/CHANGELOG.md
|
data/lib/pry-nav/commands.rb
CHANGED
data/lib/pry-nav/pry_ext.rb
CHANGED
data/lib/pry-nav/tracer.rb
CHANGED
data/lib/pry-nav/version.rb
CHANGED
data/pry-nav.gemspec
CHANGED
@@ -19,6 +19,6 @@ Gem::Specification.new do |gem|
|
|
19
19
|
|
20
20
|
# Dependencies
|
21
21
|
gem.required_ruby_version = '>= 1.8.7'
|
22
|
-
gem.add_runtime_dependency 'pry', '>= 0.9.10', '< 0.
|
22
|
+
gem.add_runtime_dependency 'pry', '>= 0.9.10', '< 0.13.0'
|
23
23
|
gem.add_development_dependency 'pry-remote', '~> 0.1.6'
|
24
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry-nav
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gopal Patel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 0.9.10
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
22
|
+
version: 0.13.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 0.9.10
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.
|
32
|
+
version: 0.13.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: pry-remote
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,8 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
|
-
|
88
|
-
rubygems_version: 2.2.2
|
87
|
+
rubygems_version: 3.0.1
|
89
88
|
signing_key:
|
90
89
|
specification_version: 4
|
91
90
|
summary: Simple execution navigation for Pry.
|