pry-stack_explorer 0.2.8pre9 → 0.2.8pre10
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.
|
@@ -9,11 +9,16 @@ module PryStackExplorer
|
|
|
9
9
|
# @return [Hash] A hash for user defined data
|
|
10
10
|
attr_reader :user
|
|
11
11
|
|
|
12
|
+
# @return [Binding] The binding of the Pry instance before the
|
|
13
|
+
# FrameManager took over.
|
|
14
|
+
attr_reader :prior_binding
|
|
15
|
+
|
|
12
16
|
def initialize(bindings, _pry_)
|
|
13
17
|
self.bindings = bindings
|
|
14
18
|
self.binding_index = 0
|
|
15
19
|
@pry = _pry_
|
|
16
20
|
@user = {}
|
|
21
|
+
@prior_binding = _pry_.binding_stack.last
|
|
17
22
|
end
|
|
18
23
|
|
|
19
24
|
# Iterate over all frames
|
data/pry-stack_explorer.gemspec
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = "pry-stack_explorer"
|
|
5
|
-
s.version = "0.2.
|
|
5
|
+
s.version = "0.2.8pre10"
|
|
6
6
|
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
|
8
8
|
s.authors = ["John Mair (banisterfiend)"]
|
|
9
|
-
s.date = "2012-01-
|
|
9
|
+
s.date = "2012-01-09"
|
|
10
10
|
s.description = "Walk the stack in a Pry session"
|
|
11
11
|
s.email = "jrmair@gmail.com"
|
|
12
12
|
s.files = [".gemtest", ".gitignore", ".travis.yml", ".yardopts", "CHANGELOG", "Gemfile", "LICENSE", "README.md", "Rakefile", "examples/example.rb", "examples/example2.rb", "lib/pry-stack_explorer.rb", "lib/pry-stack_explorer/commands.rb", "lib/pry-stack_explorer/frame_manager.rb", "lib/pry-stack_explorer/version.rb", "pry-stack_explorer.gemspec", "test/helper.rb", "test/test_commands.rb", "test/test_frame_manager.rb", "test/test_stack_explorer.rb", "tester.rb"]
|
data/test/test_stack_explorer.rb
CHANGED
|
@@ -123,6 +123,13 @@ describe PryStackExplorer do
|
|
|
123
123
|
PE.frame_managers(@pry_instance).count.should == 1
|
|
124
124
|
end
|
|
125
125
|
|
|
126
|
+
it 'should save prior binding in FrameManager instance' do
|
|
127
|
+
_pry_ = Pry.new
|
|
128
|
+
_pry_.binding_stack.push(b=binding)
|
|
129
|
+
PryStackExplorer.create_and_push_frame_manager(@bindings, _pry_)
|
|
130
|
+
PryStackExplorer.frame_manager(_pry_).prior_binding.should == b
|
|
131
|
+
end
|
|
132
|
+
|
|
126
133
|
it "should create and push multiple FrameManagers" do
|
|
127
134
|
PE.create_and_push_frame_manager(@bindings, @pry_instance)
|
|
128
135
|
PE.create_and_push_frame_manager(@bindings, @pry_instance)
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: pry-stack_explorer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: 5
|
|
5
|
-
version: 0.2.
|
|
5
|
+
version: 0.2.8pre10
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- John Mair (banisterfiend)
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2012-01-
|
|
13
|
+
date: 2012-01-09 00:00:00 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: binding_of_caller
|