pry 0.10.3 → 0.10.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pry/code.rb +2 -0
- data/lib/pry/commands/show_info.rb +6 -0
- data/lib/pry/commands/whereami.rb +6 -0
- data/lib/pry/history.rb +1 -1
- data/lib/pry/module_candidate.rb +1 -0
- data/lib/pry/pager.rb +3 -0
- data/lib/pry/version.rb +1 -1
- data/lib/pry/wrapped_module.rb +1 -0
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1b85ec70167eee63c4f58e11c27f2c1f94f49db
|
4
|
+
data.tar.gz: 08a2b56e67aef2cdaf4fb6c4aa3ac0c1e8bf395f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f82d5ccba499a9dc6a11bc48496424f691248134bad714cdaf8704bc95ffd3368fa07471d3651f464fcf92cac0b0779860276fa973783f1b2bd34b338c14ce92
|
7
|
+
data.tar.gz: 088a2f47add7c3e16ca078f4e84ebac15b05051d945b3f5c25a295292ec6478bf5bbe0c6752a143f16d323116fbf1e19ebd72b5fbbfa716830a9181a768fe20a
|
data/lib/pry/code.rb
CHANGED
@@ -91,6 +91,8 @@ class Pry
|
|
91
91
|
@lines = lines.each_with_index.map { |line, lineno|
|
92
92
|
LOC.new(line, lineno + start_line.to_i) }
|
93
93
|
@code_type = code_type
|
94
|
+
|
95
|
+
@with_marker = @with_indentation = nil
|
94
96
|
end
|
95
97
|
|
96
98
|
# Append the given line. +lineno+ is one more than the last existing
|
@@ -4,6 +4,12 @@ class Pry
|
|
4
4
|
|
5
5
|
command_options :shellwords => false, :interpolate => false
|
6
6
|
|
7
|
+
def initialize(*)
|
8
|
+
super
|
9
|
+
|
10
|
+
@used_super = nil
|
11
|
+
end
|
12
|
+
|
7
13
|
def options(opt)
|
8
14
|
opt.on :s, :super, "Select the 'super' method. Can be repeated to traverse the ancestors", :as => :count
|
9
15
|
opt.on :l, "line-numbers", "Show line numbers"
|
data/lib/pry/history.rb
CHANGED
data/lib/pry/module_candidate.rb
CHANGED
data/lib/pry/pager.rb
CHANGED
@@ -133,6 +133,8 @@ class Pry::Pager
|
|
133
133
|
pager
|
134
134
|
end
|
135
135
|
|
136
|
+
@system_pager = nil
|
137
|
+
|
136
138
|
def self.available?
|
137
139
|
if @system_pager.nil?
|
138
140
|
@system_pager = begin
|
@@ -151,6 +153,7 @@ class Pry::Pager
|
|
151
153
|
super
|
152
154
|
@tracker = PageTracker.new(height, width)
|
153
155
|
@buffer = ""
|
156
|
+
@pager = nil
|
154
157
|
end
|
155
158
|
|
156
159
|
def write(str)
|
data/lib/pry/version.rb
CHANGED
data/lib/pry/wrapped_module.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Mair (banisterfiend)
|
@@ -10,62 +10,62 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2016-07-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: coderay
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - ~>
|
19
|
+
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: 1.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- - ~>
|
26
|
+
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: 1.1.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: slop
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- - ~>
|
33
|
+
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
35
|
version: '3.4'
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- - ~>
|
40
|
+
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '3.4'
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: method_source
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - ~>
|
47
|
+
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: 0.8.1
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
|
-
- - ~>
|
54
|
+
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: 0.8.1
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: bundler
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- - ~>
|
61
|
+
- - "~>"
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '1.0'
|
64
64
|
type: :development
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
|
-
- - ~>
|
68
|
+
- - "~>"
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '1.0'
|
71
71
|
description: An IRB alternative and runtime developer console
|
@@ -217,17 +217,17 @@ require_paths:
|
|
217
217
|
- lib
|
218
218
|
required_ruby_version: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
|
-
- -
|
220
|
+
- - ">="
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: '0'
|
223
223
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
224
224
|
requirements:
|
225
|
-
- -
|
225
|
+
- - ">="
|
226
226
|
- !ruby/object:Gem::Version
|
227
227
|
version: '0'
|
228
228
|
requirements: []
|
229
229
|
rubyforge_project:
|
230
|
-
rubygems_version: 2.
|
230
|
+
rubygems_version: 2.5.1
|
231
231
|
signing_key:
|
232
232
|
specification_version: 4
|
233
233
|
summary: An IRB alternative and runtime developer console
|