pry-stack_explorer 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b9a35f3f16a578dfe681562179beaaf5007c4f022510aeebd4e4cfffa167984
4
- data.tar.gz: aa1ea9e43daffc284c731be4900ef522b1ef7b8eb49e4eb19aa395e8afce48b8
3
+ metadata.gz: 7458ddda997e35095c5ebe7330a0ff651c4e424fdf0abbc6178fc8d7ae8367cb
4
+ data.tar.gz: ef6c275c07566ae94163be5df2f3358b671c4692789432a8dcd0e864891ee018
5
5
  SHA512:
6
- metadata.gz: 443cf425db06704c33ad85b5dc79140c3f0318543012067773442cc63a933d62469e9383581609895a66a974de470bb74f822f0468ae392a7596c1465fffcbf8
7
- data.tar.gz: 37138108eec94b9f8705c5c2473b7ec92b27bc2224a58940a4fb9ef1fe013f2480940ec1b6c4ea8294fdc0ea431d0998775c3690f36f3d622fba3f89c5a2286b
6
+ metadata.gz: c5f740846b70146461babd122cc2b67f4b97fce0697ffca96a8ec24be9abca029427a5500bc2e4b8d211fd574b31e719a8a97d9b9201b52c22c04a7137cb8a39
7
+ data.tar.gz: 80bdd4a91d73943051f83847ee7933763c06a3c089e50ed3e7b28d595a691a693bf1c4b5b11022bde82f7658922cc5bc3e81a025803deafad0ff7997135fc220
data/README.md CHANGED
@@ -3,12 +3,10 @@ pry-stack_explorer
3
3
 
4
4
  _Walk the stack in a Pry session_
5
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.
7
-
8
6
  ---
9
7
 
10
- pry-stack_explorer is a plugin for the [Pry](http://pry.github.com)
11
- REPL that enables the user to navigate the call-stack.
8
+ Pry::StackExplorer is a plugin for [Pry](http://pry.github.com)
9
+ that allows navigating the call stack.
12
10
 
13
11
  From the point a Pry session is started, the user can move up the stack
14
12
  through parent frames, examine state, and even evaluate code.
@@ -17,7 +15,7 @@ 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
 
20
- The `up`, `down`, `frame` and `show-stack` commands are provided. See
18
+ The `up`, `down`, `frame` and `stack` commands are provided. See
21
19
  Pry's in-session help for more information on any of these commands.
22
20
 
23
21
  ## Usage
@@ -26,7 +24,7 @@ Provides commands available in Pry sessions.
26
24
  Commands:
27
25
  * `up`/`down` - Move up or down the call stack
28
26
  * `frame [n]` - Go to frame *n*
29
- * `show-stack` - Show call stack
27
+ * `stack` - Show call stack
30
28
 
31
29
 
32
30
  ## Install
@@ -43,6 +41,12 @@ gem install pry-stack_explorer
43
41
  * Read the [documentation](http://rdoc.info/github/banister/pry-stack_explorer/master/file/README.md)
44
42
  * See the [wiki](https://github.com/pry/pry-stack_explorer/wiki) for in-depth usage information.
45
43
 
44
+
45
+ ### Branches and compatible Ruby versions
46
+ * v0.5: Ruby 2.6+, Pry 0.13+
47
+ * v0.4.11+: Ruby 2.5, Pry 0.12+ (branch `0-4` – end-of-life in March 2021)
48
+ * v0.4.9.3: Older versions (unsupported)
49
+
46
50
  Example:
47
51
  --------
48
52
  Here we run the following ruby script:
@@ -68,12 +72,6 @@ We wander around the stack a little bit, and modify the state of a frame above t
68
72
 
69
73
  Output from above is `Goodbye` as we changed the `x` local inside the `alpha` (caller) stack frame.
70
74
 
71
- Compatible versions
72
- -------------------
73
- * v0.5: Ruby 2.6+, Pry 0.13+
74
- * v0.4.11: Ruby 2.5, Pry 0.12+ (branch `works-with-ruby-2-5`)
75
- * v0.4.9.3: Older versions
76
-
77
75
 
78
76
  License
79
77
  -------
@@ -231,13 +231,15 @@ module PryStackExplorer
231
231
  end
232
232
  end
233
233
 
234
- create_command "show-stack", "Show all frames" do
234
+ create_command "stack", "Show all frames" do
235
235
  include FrameHelpers
236
236
 
237
237
  banner <<-BANNER
238
- Usage: show-stack [OPTIONS]
238
+ Usage: stack [OPTIONS]
239
239
  Show all accessible stack frames.
240
- e.g: show-stack -v
240
+ e.g: stack -v
241
+
242
+ alias: show-stack
241
243
  BANNER
242
244
 
243
245
  def options(opt)
@@ -309,5 +311,8 @@ module PryStackExplorer
309
311
  end
310
312
 
311
313
  end
314
+
315
+ alias_command "show-stack", "stack"
316
+
312
317
  end
313
318
  end
@@ -1,3 +1,3 @@
1
- module PryStackExplorer
2
- VERSION = '0.5.1'
3
- end
1
+ module PryStackExplorer
2
+ VERSION = '0.6.0'
3
+ end
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.5.1
4
+ version: 0.6.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-05-22 00:00:00.000000000 Z
11
+ date: 2020-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: binding_of_caller
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.7'
19
+ version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.7'
26
+ version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pry
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -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:
71
71
  - jrmair@gmail.com
72
72
  executables: []
@@ -84,7 +84,7 @@ homepage: https://github.com/pry/pry-stack_explorer
84
84
  licenses:
85
85
  - MIT
86
86
  metadata: {}
87
- post_install_message:
87
+ post_install_message:
88
88
  rdoc_options: []
89
89
  require_paths:
90
90
  - lib
@@ -99,8 +99,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []
102
- rubygems_version: 3.0.3
103
- signing_key:
102
+ rubygems_version: 3.2.3
103
+ signing_key:
104
104
  specification_version: 4
105
105
  summary: Walk the stack in a Pry session
106
106
  test_files: []