pry-stack_explorer 0.4.13 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/CHANGELOG +5 -7
- data/README.md +40 -26
- data/Rakefile +0 -2
- data/lib/pry-stack_explorer/commands.rb +1 -1
- data/lib/pry-stack_explorer/version.rb +3 -3
- data/lib/pry-stack_explorer/when_started_hook.rb +1 -1
- data/pry-stack_explorer.gemspec +2 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b484ed3f6bb18541270c4d02e60c4dec8bcefa62ac914ef93c430dbbdc1b5d0
|
4
|
+
data.tar.gz: ed83586a6f914c8fe0cf2e62bbf7fe2efe401ff84898c0802aec47b2e4fa1935
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 171f6dfe98733d8ca067c33ca440420ff33a3a6f061a1b8dc3f4f682191f58cf56d6ddfbbaf789e597de4f37e0425f75477370eb1cffb049e470b63bc4229279
|
7
|
+
data.tar.gz: a49b8be7a064d1ee2992e0f9d7459a525a7fa75c03266a75a8c66785beef6514de2a2e4f0b792e176f3e5614731860b136bd79311c2c3f4a04f989144e0f1d7a
|
data/.travis.yml
CHANGED
data/CHANGELOG
CHANGED
@@ -1,11 +1,9 @@
|
|
1
|
-
## v0.5.0 (
|
1
|
+
## v0.5.0 (X May 2020)
|
2
2
|
* Should fix most deprecation warnings as of release
|
3
3
|
* Require Pry 0.13
|
4
4
|
* Fix Pry#_pry_ => #pry_instance deprecation
|
5
5
|
|
6
|
-
## v0.4.
|
7
|
-
* Require Ruby 2.
|
8
|
-
|
9
|
-
|
10
|
-
* Special branch for Ruby 2.5
|
11
|
-
* Fix Pry 0.13+ deprecations and broken `show-stack`
|
6
|
+
## v0.4.10 (X May 2020)
|
7
|
+
* Require Ruby 2.6
|
8
|
+
* Fix broken `show-stack` in Pry 0.13+
|
9
|
+
* Fix Binding.source_location deprecations
|
data/README.md
CHANGED
@@ -1,11 +1,9 @@
|
|
1
1
|
pry-stack_explorer
|
2
2
|
===========
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
Ruby versions: **Branch v0.5 requires Ruby 2.6+**. Branch v0.4.11+ will remain for Ruby 2.5 users until its EOL in March 2021.
|
4
|
+
(C) John Mair (banisterfiend) 2011
|
7
5
|
|
8
|
-
|
6
|
+
_Walk the stack in a Pry session_
|
9
7
|
|
10
8
|
pry-stack_explorer is a plugin for the [Pry](http://pry.github.com)
|
11
9
|
REPL that enables the user to navigate the call-stack.
|
@@ -17,30 +15,20 @@ Unlike `ruby-debug`, pry-stack_explorer incurs no runtime cost and
|
|
17
15
|
enables navigation right up the call-stack to the birth of the
|
18
16
|
program.
|
19
17
|
|
18
|
+
pry-stack_explorer is currently designed to work on **Rubinius and MRI
|
19
|
+
Ruby 1.9.2+ (including 1.9.3)**. Support for other Ruby versions and
|
20
|
+
implementations is planned for the future.
|
21
|
+
|
20
22
|
The `up`, `down`, `frame` and `show-stack` commands are provided. See
|
21
23
|
Pry's in-session help for more information on any of these commands.
|
22
24
|
|
23
|
-
|
24
|
-
Provides commands available in Pry sessions.
|
25
|
-
|
26
|
-
Commands:
|
27
|
-
* `up`/`down` - Move up or down the call stack
|
28
|
-
* `frame [n]` - Go to frame *n*
|
29
|
-
* `show-stack` - Show call stack
|
25
|
+
**How to use:**
|
30
26
|
|
27
|
+
After installing `pry-stack_explorer`, just start Pry as normal (typically via a `binding.pry`), the stack_explorer plugin will be detected and used automatically.
|
31
28
|
|
32
|
-
|
33
|
-
|
34
|
-
In Gemfile:
|
35
|
-
```rb
|
36
|
-
gem 'pry-stack_explorer', '~> 0.5.0'
|
37
|
-
```
|
38
|
-
|
39
|
-
```
|
40
|
-
gem install pry-stack_explorer
|
41
|
-
```
|
42
|
-
|
29
|
+
* Install the [gem](https://rubygems.org/gems/pry-stack_explorer): `gem install pry-stack_explorer`
|
43
30
|
* Read the [documentation](http://rdoc.info/github/banister/pry-stack_explorer/master/file/README.md)
|
31
|
+
* See the [source code](http://github.com/pry/pry-stack_explorer)
|
44
32
|
* See the [wiki](https://github.com/pry/pry-stack_explorer/wiki) for in-depth usage information.
|
45
33
|
|
46
34
|
Example:
|
@@ -71,12 +59,38 @@ Output from above is `Goodbye` as we changed the `x` local inside the `alpha` (c
|
|
71
59
|
Compatible versions
|
72
60
|
-------------------
|
73
61
|
* v0.5: Ruby 2.6+, Pry 0.13+
|
74
|
-
* v0.4.
|
75
|
-
* v0.4.9.3:
|
62
|
+
* v0.4.10: Ruby 2.6+, Pry 0.12+
|
63
|
+
* v0.4.9.3: Ruby 2.5 and older
|
64
|
+
|
65
|
+
|
66
|
+
Contact
|
67
|
+
-------
|
68
|
+
|
69
|
+
Problems or questions contact me at [github](http://github.com/banister)
|
76
70
|
|
77
71
|
|
78
72
|
License
|
79
73
|
-------
|
80
|
-
Released under the [MIT License](https://github.com/pry/pry-stack_explorer/blob/master/LICENSE) by John Mair (banisterfiend) and contributors
|
81
74
|
|
82
|
-
|
75
|
+
(The MIT License)
|
76
|
+
|
77
|
+
Copyright (c) 2011 John Mair (banisterfiend)
|
78
|
+
|
79
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
80
|
+
a copy of this software and associated documentation files (the
|
81
|
+
'Software'), to deal in the Software without restriction, including
|
82
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
83
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
84
|
+
permit persons to whom the Software is furnished to do so, subject to
|
85
|
+
the following conditions:
|
86
|
+
|
87
|
+
The above copyright notice and this permission notice shall be
|
88
|
+
included in all copies or substantial portions of the Software.
|
89
|
+
|
90
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
91
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
92
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
93
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
94
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
95
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
96
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
CHANGED
@@ -55,7 +55,7 @@ module PryStackExplorer
|
|
55
55
|
sig = meth_obj ? "<#{signature_with_owner(meth_obj)}>" : ""
|
56
56
|
|
57
57
|
self_clipped = "#{Pry.view_clip(b_self)}"
|
58
|
-
path =
|
58
|
+
path = '@ ' + b.source_location.join(':')
|
59
59
|
|
60
60
|
if !verbose
|
61
61
|
"#{type} #{desc} #{sig}"
|
@@ -1,3 +1,3 @@
|
|
1
|
-
module PryStackExplorer
|
2
|
-
VERSION = '0.
|
3
|
-
end
|
1
|
+
module PryStackExplorer
|
2
|
+
VERSION = '0.5.0'
|
3
|
+
end
|
@@ -60,7 +60,7 @@ module PryStackExplorer
|
|
60
60
|
|
61
61
|
# remove pry-nav / pry-debugger / pry-byebug frames
|
62
62
|
def remove_debugger_frames(bindings)
|
63
|
-
bindings.drop_while { |b| b.
|
63
|
+
bindings.drop_while { |b| b.source_location[0] =~ /pry-(?:nav|debugger|byebug)/ }
|
64
64
|
end
|
65
65
|
|
66
66
|
# binding.pry frame
|
data/pry-stack_explorer.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry-stack_explorer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Mair (banisterfiend)
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: binding_of_caller
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0.9'
|
69
|
-
description:
|
69
|
+
description:
|
70
70
|
email: jrmair@gmail.com
|
71
71
|
executables: []
|
72
72
|
extensions: []
|
@@ -99,7 +99,7 @@ homepage: https://github.com/pry/pry-stack_explorer
|
|
99
99
|
licenses:
|
100
100
|
- MIT
|
101
101
|
metadata: {}
|
102
|
-
post_install_message:
|
102
|
+
post_install_message:
|
103
103
|
rdoc_options: []
|
104
104
|
require_paths:
|
105
105
|
- lib
|
@@ -107,15 +107,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 2.
|
110
|
+
version: 2.6.0
|
111
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
112
|
requirements:
|
113
113
|
- - ">="
|
114
114
|
- !ruby/object:Gem::Version
|
115
115
|
version: '0'
|
116
116
|
requirements: []
|
117
|
-
rubygems_version: 3.2
|
118
|
-
signing_key:
|
117
|
+
rubygems_version: 3.1.2
|
118
|
+
signing_key:
|
119
119
|
specification_version: 4
|
120
120
|
summary: Walk the stack in a Pry session
|
121
121
|
test_files:
|