Skip to content

Commit 3c3346f

Browse files
committed
Changelog, Readme, housekeeping
1 parent d558646 commit 3c3346f

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* Rename 'show-stack' to 'stack' (#50, #8)
2+
13
## v0.5.1 (21 May 2020)
24
* Fix exception in started hook
35

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Unlike `ruby-debug`, pry-stack_explorer incurs no runtime cost and
1717
enables navigation right up the call-stack to the birth of the
1818
program.
1919

20-
The `up`, `down`, `frame` and `show-stack` commands are provided. See
20+
The `up`, `down`, `frame` and `stack` commands are provided. See
2121
Pry's in-session help for more information on any of these commands.
2222

2323
## Usage
@@ -26,7 +26,7 @@ Provides commands available in Pry sessions.
2626
Commands:
2727
* `up`/`down` - Move up or down the call stack
2828
* `frame [n]` - Go to frame *n*
29-
* `show-stack` - Show call stack
29+
* `stack` - Show call stack
3030

3131

3232
## Install

lib/pry-stack_explorer/commands.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,9 @@ def process
237237
banner <<-BANNER
238238
Usage: stack [OPTIONS]
239239
Show all accessible stack frames.
240-
e.g: show-stack -v
240+
e.g: stack -v
241+
242+
alias: show-stack
241243
BANNER
242244

243245
def options(opt)

test/stack_explorer_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def o.==(other)
9999

100100
describe ":call_stack option" do
101101
it 'should invoke a session with the call stack set' do
102-
redirect_pry_io(StringIO.new("show-stack\nexit\n"), out=StringIO.new) do
102+
redirect_pry_io(StringIO.new("stack\nexit\n"), out=StringIO.new) do
103103
@o.bing
104104
end
105105

@@ -112,7 +112,7 @@ def o.bing() bong end
112112
def o.bong() bang end
113113
def o.bang() Pry.start(binding, :call_stack => false) end
114114

115-
redirect_pry_io(StringIO.new("show-stack\nexit\n"), out=StringIO.new) do
115+
redirect_pry_io(StringIO.new("stack\nexit\n"), out=StringIO.new) do
116116
o.bing
117117
end
118118

@@ -125,7 +125,7 @@ def o.alpha() binding end
125125
def o.beta() binding end
126126
def o.gamma() binding end
127127

128-
redirect_pry_io(StringIO.new("show-stack\nexit\n"), out=StringIO.new) do
128+
redirect_pry_io(StringIO.new("stack\nexit\n"), out=StringIO.new) do
129129
Pry.start(binding, :call_stack => [o.beta, o.gamma, o.alpha])
130130
end
131131

0 commit comments

Comments
 (0)