pry-byebug 1.1.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +1 -5
- data/lib/pry-byebug/processor.rb +9 -23
- data/lib/pry-byebug/version.rb +1 -1
- data/pry-byebug.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11c41300ff25226ba6563dbe4cde8ba63ae4118e
|
4
|
+
data.tar.gz: ac0cadcd3180a3a822664501c8ed8f25721b69ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d5328eb3ff54a715dfa921bf2019a113a4d49d8c2e421d636b0aeddbaa5ff5fc95cbf25687f8bc3a4e26349ce8a6ad3bf3090a2cd3d5f229381962fa571c2ba
|
7
|
+
data.tar.gz: 0fc1108fb2498cd471bd2747f9447ae8bf664d0cdf891ffbb94182a439b44150552b14714749fb46fc2650b952ce1f7166dae0d17ed750cb90c2c1814ab1a2ff
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -87,13 +87,9 @@ the source code around each breakpoint.
|
|
87
87
|
Only supports MRI 2.0.0 or newer.
|
88
88
|
|
89
89
|
|
90
|
-
## Tips
|
91
|
-
|
92
|
-
Using Pry with Rails? Check out [Jazz Hands][jazz_hands].
|
93
|
-
|
94
|
-
|
95
90
|
## Contributors
|
96
91
|
|
92
|
+
* Tee Parham (@teeparham)
|
97
93
|
* Gopal Patel (@nixme)
|
98
94
|
* John Mair (@banister)
|
99
95
|
* Nicolas Viennot (@nviennot)
|
data/lib/pry-byebug/processor.rb
CHANGED
@@ -33,15 +33,15 @@ module PryByebug
|
|
33
33
|
# Processor. So jump out and stop at the above frame, then step/next
|
34
34
|
# from our callback.
|
35
35
|
@delayed[command[:action]] = times
|
36
|
-
step_out
|
36
|
+
Byebug.current_context.step_out(2)
|
37
37
|
elsif :next == command[:action]
|
38
|
-
step_over
|
38
|
+
Byebug.current_context.step_over(times, 0)
|
39
39
|
|
40
40
|
elsif :step == command[:action]
|
41
|
-
step_into
|
41
|
+
Byebug.current_context.step_into(times)
|
42
42
|
|
43
43
|
elsif :finish == command[:action]
|
44
|
-
step_out
|
44
|
+
Byebug.current_context.step_out(0)
|
45
45
|
end
|
46
46
|
else
|
47
47
|
stop
|
@@ -67,13 +67,13 @@ module PryByebug
|
|
67
67
|
def at_line(context, file, line)
|
68
68
|
# If any delayed nexts/steps, do 'em.
|
69
69
|
if @delayed[:next] > 1
|
70
|
-
step_over
|
70
|
+
context.step_over(@delayed[:next] - 1, 0)
|
71
71
|
|
72
72
|
elsif @delayed[:step] > 1
|
73
|
-
step_into
|
73
|
+
context.step_into(@delayed[:step] - 1)
|
74
74
|
|
75
75
|
elsif @delayed[:finish] > 1
|
76
|
-
step_out
|
76
|
+
context.step_out(@delayed[:finish] - 1)
|
77
77
|
|
78
78
|
# Otherwise, resume the pry session at the stopped line.
|
79
79
|
else
|
@@ -102,8 +102,9 @@ module PryByebug
|
|
102
102
|
|
103
103
|
private
|
104
104
|
|
105
|
+
#
|
105
106
|
# Resume an existing Pry REPL at the paused point.
|
106
|
-
#
|
107
|
+
#
|
107
108
|
def resume_pry(context)
|
108
109
|
new_binding = context.frame_binding(0)
|
109
110
|
Byebug.stop unless @always_enabled
|
@@ -113,21 +114,6 @@ module PryByebug
|
|
113
114
|
end
|
114
115
|
end
|
115
116
|
|
116
|
-
# Move execution forward.
|
117
|
-
def step_into(times)
|
118
|
-
Byebug.context.step_into times
|
119
|
-
end
|
120
|
-
|
121
|
-
# Move execution forward a number of lines in the same frame.
|
122
|
-
def step_over(lines)
|
123
|
-
Byebug.context.step_over lines, 0
|
124
|
-
end
|
125
|
-
|
126
|
-
# Execute until specified frame returns.
|
127
|
-
def step_out(frame = 0)
|
128
|
-
Byebug.context.step_out frame
|
129
|
-
end
|
130
|
-
|
131
117
|
# Cleanup when debugging is stopped and execution continues.
|
132
118
|
def stop
|
133
119
|
Byebug.stop if !@always_enabled && Byebug.started?
|
data/lib/pry-byebug/version.rb
CHANGED
data/pry-byebug.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
|
|
19
19
|
gem.required_ruby_version = '>= 2.0.0'
|
20
20
|
|
21
21
|
gem.add_runtime_dependency 'pry', '~> 0.9.12'
|
22
|
-
gem.add_runtime_dependency 'byebug', '~>
|
22
|
+
gem.add_runtime_dependency 'byebug', '~> 2.2'
|
23
23
|
|
24
24
|
gem.add_development_dependency 'bundler', '~> 1.3.5'
|
25
25
|
gem.add_development_dependency 'rake', '~> 10.1.0'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry-byebug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Rodríguez
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-09-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pry
|
@@ -31,14 +31,14 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - ~>
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '2.2'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - ~>
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
41
|
+
version: '2.2'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: bundler
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
133
|
version: '0'
|
134
134
|
requirements: []
|
135
135
|
rubyforge_project:
|
136
|
-
rubygems_version: 2.
|
136
|
+
rubygems_version: 2.1.4
|
137
137
|
signing_key:
|
138
138
|
specification_version: 4
|
139
139
|
summary: Fast debugging with Pry.
|