sourcify 0.6.0.rc2 → 0.6.0.rc3
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.
- data/HISTORY.txt +3 -1
- data/lib/sourcify.rb +2 -2
- data/lib/sourcify/common/parser/raw_scanner/extensions.rb +2 -0
- data/lib/sourcify/common/parser/source_code.rb +13 -1
- data/lib/sourcify/version.rb +1 -1
- data/sourcify.gemspec +2 -0
- data/spec/method/encoding_from_def_end_block_spec.rb +1 -0
- data/spec/method/encoding_from_define_method_spec.rb +1 -0
- data/spec/method/to_sexp_from_def_end_block_within_pry_spec.rb +38 -0
- data/spec/method/to_sexp_from_define_method_within_pry_spec.rb +42 -0
- data/spec/method/to_source_from_def_end_block_within_pry_spec.rb +45 -0
- data/spec/method/to_source_from_define_method_within_pry_spec.rb +49 -0
- data/spec/proc/encoding_spec.rb +1 -0
- data/spec/proc/to_sexp_within_pry_spec.rb +149 -0
- data/spec/proc/to_source_within_pry_spec.rb +61 -0
- data/spec/spec_helper.rb +20 -0
- metadata +30 -2
data/HISTORY.txt
CHANGED
@@ -2,7 +2,9 @@
|
|
2
2
|
|
3
3
|
* adds Method#to_source, Method#to_sexp & Method#to_raw_source to MRI-1.9.2 (issue#3)
|
4
4
|
* extensive refactoring to existing proc support to support the above
|
5
|
-
* fixes incorrect encoding for scanner result (issue#19) [
|
5
|
+
* fixes incorrect encoding for scanner result (issue#19) [@tomykaira]
|
6
|
+
* ensures compatibility with pry (issue#22) [@ty, @scooter-dangle]
|
7
|
+
* fixes "already initialized const X" in ruby_parser" [@jmettraux]
|
6
8
|
|
7
9
|
=== 0.5.0 (May 2, 2011)
|
8
10
|
|
data/lib/sourcify.rb
CHANGED
@@ -9,7 +9,8 @@ module Sourcify
|
|
9
9
|
|
10
10
|
def to_s
|
11
11
|
case file
|
12
|
-
when /\(irb\)/ then from_irb_to_s
|
12
|
+
when /\(irb\)/, /\(irb\#\d+\)/ then from_irb_to_s
|
13
|
+
when /\(pry\)/ then from_pry_to_s
|
13
14
|
else from_file_to_s
|
14
15
|
end
|
15
16
|
end
|
@@ -27,6 +28,17 @@ module Sourcify
|
|
27
28
|
IRB.CurrentContext.io.line(line.succ .. -1).join
|
28
29
|
end
|
29
30
|
|
31
|
+
def from_pry_to_s
|
32
|
+
# NOTE: HACK to reliably construct the lines required, as:
|
33
|
+
# * Pry.line_buffer always fail to show the last entry
|
34
|
+
# * Pry.history deliberately skips duplicated consecutive lines,
|
35
|
+
# yet it reliably shows the last
|
36
|
+
[
|
37
|
+
Pry.line_buffer,
|
38
|
+
Pry.history.to_a[-1]
|
39
|
+
].flatten[line.succ .. -1] * ""
|
40
|
+
end
|
41
|
+
|
30
42
|
end
|
31
43
|
end
|
32
44
|
end
|
data/lib/sourcify/version.rb
CHANGED
data/sourcify.gemspec
CHANGED
@@ -16,7 +16,9 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.add_dependency 'sexp_processor', '~> 3.2.0'
|
17
17
|
s.add_dependency 'ruby_parser', '~> 2.3.1'
|
18
18
|
s.add_dependency 'file-tail', '~> 1.0.10'
|
19
|
+
|
19
20
|
s.add_development_dependency 'bacon'
|
21
|
+
s.add_development_dependency 'pry'
|
20
22
|
|
21
23
|
# ParseTree (better performance + dynamic goodness, but not supported on java & 1.9.*),
|
22
24
|
# optional for any 1.8.*.
|
@@ -0,0 +1,38 @@
|
|
1
|
+
require File.join(File.expand_path(File.dirname(__FILE__)), 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Method#to_sexp (from def..end block)' do
|
4
|
+
describe 'within PRY' do
|
5
|
+
|
6
|
+
class << self
|
7
|
+
|
8
|
+
def pry_eval(string)
|
9
|
+
pry_exec(string)[-1]
|
10
|
+
end
|
11
|
+
|
12
|
+
def equal_to(expected)
|
13
|
+
lambda {|found| found == expected }
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
should 'handle non var' do
|
19
|
+
pry_eval(%(
|
20
|
+
def m1; x; end
|
21
|
+
method(:m1).to_sexp
|
22
|
+
)).should.be equal_to(
|
23
|
+
s(:defn, :m1, s(:args), s(:scope, s(:block, s(:call, nil, :x, s(:arglist)))))
|
24
|
+
)
|
25
|
+
end
|
26
|
+
|
27
|
+
should 'not handle local var' do
|
28
|
+
pry_eval(%(
|
29
|
+
x = :lx
|
30
|
+
def m2; x; end
|
31
|
+
method(:m2).to_sexp
|
32
|
+
)).should.be equal_to(
|
33
|
+
s(:defn, :m2, s(:args), s(:scope, s(:block, s(:call, nil, :x, s(:arglist)))))
|
34
|
+
)
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
require File.join(File.expand_path(File.dirname(__FILE__)), 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Method#to_sexp (from define_method)' do
|
4
|
+
describe 'within PRY' do
|
5
|
+
|
6
|
+
class << self
|
7
|
+
|
8
|
+
def pry_eval(string)
|
9
|
+
pry_exec(string)[-1]
|
10
|
+
end
|
11
|
+
|
12
|
+
def equal_to(expected)
|
13
|
+
lambda {|found| found == expected }
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
should 'handle non var' do
|
19
|
+
pry_eval(%\
|
20
|
+
thing = Object.new
|
21
|
+
blk = lambda { x }
|
22
|
+
thing.class.send(:define_method, :m1, &blk)
|
23
|
+
thing.method(:m1).to_sexp
|
24
|
+
\).should.be equal_to(
|
25
|
+
s(:defn, :m1, s(:args), s(:scope, s(:block, s(:call, nil, :x, s(:arglist)))))
|
26
|
+
)
|
27
|
+
end
|
28
|
+
|
29
|
+
should 'not handle local var' do
|
30
|
+
pry_eval(%\
|
31
|
+
thing = Object.new
|
32
|
+
x = :lx
|
33
|
+
blk = lambda { x }
|
34
|
+
thing.class.send(:define_method, :m2, &blk)
|
35
|
+
thing.method(:m2).to_sexp
|
36
|
+
\).should.be equal_to(
|
37
|
+
s(:defn, :m2, s(:args), s(:scope, s(:block, s(:call, nil, :x, s(:arglist)))))
|
38
|
+
)
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require File.join(File.expand_path(File.dirname(__FILE__)), 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Method#to_source (from def..end block)' do
|
4
|
+
describe 'within PRY' do
|
5
|
+
|
6
|
+
class << self
|
7
|
+
|
8
|
+
def pry_eval(string)
|
9
|
+
pry_exec(string)[-1]
|
10
|
+
end
|
11
|
+
|
12
|
+
def equal_to(expected)
|
13
|
+
lambda {|found| normalize_code(found) == normalize_code(expected) }
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
should 'handle' do
|
19
|
+
pry_eval(%(
|
20
|
+
def m1; x; end
|
21
|
+
method(:m1).to_source
|
22
|
+
)).should.be equal_to(%(
|
23
|
+
def m1
|
24
|
+
x
|
25
|
+
end
|
26
|
+
))
|
27
|
+
end
|
28
|
+
|
29
|
+
should 'handle upward scroll' do
|
30
|
+
pry_eval(%Q(
|
31
|
+
def m1; x1; end
|
32
|
+
def m2; x2; end
|
33
|
+
method(:m1)
|
34
|
+
method(:m1).to_source
|
35
|
+
method(:m2).to_source
|
36
|
+
[A[A
|
37
|
+
)).should.be equal_to(%(
|
38
|
+
def m1
|
39
|
+
x1
|
40
|
+
end
|
41
|
+
))
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require File.join(File.expand_path(File.dirname(__FILE__)), 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Method#to_source (from define_method)' do
|
4
|
+
describe 'within PRY' do
|
5
|
+
|
6
|
+
class << self
|
7
|
+
|
8
|
+
def pry_eval(string)
|
9
|
+
pry_exec(string)[-1]
|
10
|
+
end
|
11
|
+
|
12
|
+
def equal_to(expected)
|
13
|
+
lambda {|found| normalize_code(found) == normalize_code(expected) }
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
should 'handle' do
|
19
|
+
pry_eval(%\
|
20
|
+
thing = Object.new
|
21
|
+
blk = lambda { x }
|
22
|
+
thing.class.send(:define_method, :m1, &blk)
|
23
|
+
thing.method(:m1).to_source
|
24
|
+
\).should.be equal_to(%(
|
25
|
+
def m1
|
26
|
+
x
|
27
|
+
end
|
28
|
+
))
|
29
|
+
end
|
30
|
+
|
31
|
+
should 'handle upward scroll' do
|
32
|
+
pry_eval(%Q(
|
33
|
+
thing = Object.new
|
34
|
+
b1 = lambda { x1 }
|
35
|
+
b2 = lambda { x2 }
|
36
|
+
thing.class.send(:define_method, :m1, &b1)
|
37
|
+
thing.class.send(:define_method, :m2, &b2)
|
38
|
+
thing.method(:m1).to_source
|
39
|
+
thing.method(:m2).to_source
|
40
|
+
[A[A
|
41
|
+
)).should.be equal_to(%(
|
42
|
+
def m1
|
43
|
+
x1
|
44
|
+
end
|
45
|
+
))
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
49
|
+
end
|
data/spec/proc/encoding_spec.rb
CHANGED
@@ -0,0 +1,149 @@
|
|
1
|
+
require File.join(File.expand_path(File.dirname(__FILE__)), 'spec_helper')
|
2
|
+
|
3
|
+
describe "Proc#to_sexp within PRY" do
|
4
|
+
|
5
|
+
class << self
|
6
|
+
|
7
|
+
def pry_eval(string)
|
8
|
+
pry_exec(string)[-1]
|
9
|
+
end
|
10
|
+
|
11
|
+
def equal_to(expected)
|
12
|
+
lambda {|found| found == expected }
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
should 'handle non var' do
|
18
|
+
expected = s(:iter, s(:call, nil, :proc, s(:arglist)), nil, s(:call, nil, :x, s(:arglist)))
|
19
|
+
pry_eval(%Q(
|
20
|
+
# NOTE: this line is needed to fix one-liner issue w pry
|
21
|
+
lambda { x }.to_sexp
|
22
|
+
)).should.be equal_to(expected)
|
23
|
+
end
|
24
|
+
|
25
|
+
should 'handle local var' do
|
26
|
+
expected = s(:iter, s(:call, nil, :proc, s(:arglist)), nil, s(:lvar, :x))
|
27
|
+
pry_eval(%Q(
|
28
|
+
x = 'lx'
|
29
|
+
lambda { x }.to_sexp
|
30
|
+
)).should.be equal_to(expected)
|
31
|
+
end
|
32
|
+
|
33
|
+
should 'handle class_eval scoped local var' do
|
34
|
+
expected =
|
35
|
+
s(:iter,
|
36
|
+
s(:call, nil, :proc, s(:arglist)),
|
37
|
+
nil,
|
38
|
+
s(:iter,
|
39
|
+
s(:call, s(:const, :Object), :class_eval, s(:arglist)),
|
40
|
+
s(:lasgn, :x),
|
41
|
+
s(:lasgn, :y, s(:lvar, :x))))
|
42
|
+
pry_eval(%Q(
|
43
|
+
x = 1
|
44
|
+
lambda { Object.class_eval {|x| y = x } }.to_sexp
|
45
|
+
)).should.be equal_to(expected)
|
46
|
+
end
|
47
|
+
|
48
|
+
should 'handle instance_eval scoped local var' do
|
49
|
+
expected =
|
50
|
+
s(:iter,
|
51
|
+
s(:call, nil, :proc, s(:arglist)),
|
52
|
+
nil,
|
53
|
+
s(:iter,
|
54
|
+
s(:call, s(:str, "aa"), :instance_eval, s(:arglist)),
|
55
|
+
s(:lasgn, :x),
|
56
|
+
s(:lasgn, :y, s(:lvar, :x))))
|
57
|
+
pry_eval(%Q(
|
58
|
+
x = 1
|
59
|
+
lambda { 'aa'.instance_eval {|x| y = x } }.to_sexp
|
60
|
+
)).should.be equal_to(expected)
|
61
|
+
end
|
62
|
+
|
63
|
+
should 'handle define_method scoped local var' do
|
64
|
+
expected =
|
65
|
+
s(:iter,
|
66
|
+
s(:call, nil, :proc, s(:arglist)),
|
67
|
+
nil,
|
68
|
+
s(:iter,
|
69
|
+
s(:call,
|
70
|
+
s(:const, :Object),
|
71
|
+
:send,
|
72
|
+
s(:arglist, s(:lit, :define_method), s(:lit, :aa))),
|
73
|
+
s(:lasgn, :x),
|
74
|
+
s(:lasgn, :y, s(:lvar, :x))))
|
75
|
+
pry_eval(%Q(
|
76
|
+
x = 1
|
77
|
+
lambda { Object.send(:define_method, :aa) {|x| y = x } }.to_sexp
|
78
|
+
)).should.be equal_to(expected)
|
79
|
+
end
|
80
|
+
|
81
|
+
should 'not handle class scoped local var (simple)' do
|
82
|
+
expected =
|
83
|
+
s(:iter,
|
84
|
+
s(:call, nil, :proc, s(:arglist)),
|
85
|
+
nil,
|
86
|
+
s(:class, :AA, nil, s(:scope, s(:lasgn, :y, s(:call, nil, :x, s(:arglist))))))
|
87
|
+
pry_eval(%Q(
|
88
|
+
x = 1
|
89
|
+
lambda { class AA ; y = x ; end }.to_sexp
|
90
|
+
)).should.be equal_to(expected)
|
91
|
+
end
|
92
|
+
|
93
|
+
should 'not handle class scoped local var (w inheritance)' do
|
94
|
+
expected =
|
95
|
+
s(:iter,
|
96
|
+
s(:call, nil, :proc, s(:arglist)),
|
97
|
+
nil,
|
98
|
+
s(:class,
|
99
|
+
:AA,
|
100
|
+
s(:const, :Object),
|
101
|
+
s(:scope, s(:lasgn, :y, s(:call, nil, :x, s(:arglist))))))
|
102
|
+
pry_eval(%Q(
|
103
|
+
x = 1
|
104
|
+
lambda { class AA < Object; y = x ; end }.to_sexp
|
105
|
+
)).should.be equal_to(expected)
|
106
|
+
end
|
107
|
+
|
108
|
+
should 'not handle class scoped local var (w singleton)' do
|
109
|
+
expected =
|
110
|
+
s(:iter,
|
111
|
+
s(:call, nil, :proc, s(:arglist)),
|
112
|
+
nil,
|
113
|
+
s(:sclass,
|
114
|
+
s(:str, "AA"),
|
115
|
+
s(:scope, s(:lasgn, :y, s(:call, nil, :x, s(:arglist))))))
|
116
|
+
pry_eval(%Q(
|
117
|
+
x = 1
|
118
|
+
lambda { class << 'AA'; y = x ; end }.to_sexp
|
119
|
+
)).should.be equal_to(expected)
|
120
|
+
end
|
121
|
+
|
122
|
+
should 'not handle module scoped local var' do
|
123
|
+
expected =
|
124
|
+
s(:iter,
|
125
|
+
s(:call, nil, :proc, s(:arglist)),
|
126
|
+
nil,
|
127
|
+
s(:module, :AA, s(:scope, s(:lasgn, :y, s(:call, nil, :x, s(:arglist))))))
|
128
|
+
pry_eval(%Q(
|
129
|
+
x = 1
|
130
|
+
lambda { module AA ; y = x ; end }.to_sexp
|
131
|
+
)).should.be equal_to(expected)
|
132
|
+
end
|
133
|
+
|
134
|
+
should 'not handle method scoped local var' do
|
135
|
+
expected =
|
136
|
+
s(:iter,
|
137
|
+
s(:call, nil, :proc, s(:arglist)),
|
138
|
+
nil,
|
139
|
+
s(:defn,
|
140
|
+
:aa,
|
141
|
+
s(:args),
|
142
|
+
s(:scope, s(:block, s(:lasgn, :y, s(:call, nil, :x, s(:arglist)))))))
|
143
|
+
pry_eval(%Q(
|
144
|
+
x = 1
|
145
|
+
lambda { def aa ; y = x ; end }.to_sexp
|
146
|
+
)).should.be equal_to(expected)
|
147
|
+
end
|
148
|
+
|
149
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
require File.join(File.expand_path(File.dirname(__FILE__)), 'spec_helper')
|
2
|
+
|
3
|
+
describe "Proc#to_source within PRY" do
|
4
|
+
|
5
|
+
class << self
|
6
|
+
|
7
|
+
def pry_eval(string)
|
8
|
+
pry_exec(string)[-1]
|
9
|
+
end
|
10
|
+
|
11
|
+
def equal_to(expected)
|
12
|
+
lambda {|found| normalize_code(found) == normalize_code(expected) }
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
should 'handle basic' do
|
18
|
+
pry_eval(%Q(
|
19
|
+
x = lambda { 1+2 }
|
20
|
+
y = lambda { 2+3 }
|
21
|
+
z = lambda { 3+4 }
|
22
|
+
y.to_source
|
23
|
+
)).should.be equal_to('proc { 2+3 }')
|
24
|
+
end
|
25
|
+
|
26
|
+
should 'handle magic variable __FILE__' do
|
27
|
+
pry_eval(%Q(
|
28
|
+
# NOTE: this line is needed to fix one-liner issue w pry
|
29
|
+
lambda { __FILE__ }.to_source
|
30
|
+
)).should.be equal_to('proc { "(pry)" }')
|
31
|
+
end
|
32
|
+
|
33
|
+
should 'handle magic variable __LINE__' do
|
34
|
+
pry_eval(%Q(
|
35
|
+
# NOTE: this line is needed to fix one-liner issue w pry
|
36
|
+
lambda { __LINE__ }.to_source
|
37
|
+
)).should.be equal_to('proc { 2 }')
|
38
|
+
end
|
39
|
+
|
40
|
+
|
41
|
+
# NOTE: The rest address issue#22, kudos goes to @scooter-dangle
|
42
|
+
# for providing such detailed examples :)
|
43
|
+
should 'handle a single upward scroll' do
|
44
|
+
pry_eval(%Q(
|
45
|
+
a = lambda { |proc| proc.to_source }
|
46
|
+
a[(lambda { 0 })]
|
47
|
+
a[(lambda { 1 })]
|
48
|
+
[A
|
49
|
+
)).should.be equal_to('proc { 1 }')
|
50
|
+
end
|
51
|
+
|
52
|
+
should 'handle a double upward scroll' do
|
53
|
+
pry_eval(%Q(
|
54
|
+
a = lambda { |proc| proc.to_source }
|
55
|
+
a[(lambda { 0 })]
|
56
|
+
a[(lambda { 1 })]
|
57
|
+
[A[A
|
58
|
+
)).should.be equal_to('proc { 0 }')
|
59
|
+
end
|
60
|
+
|
61
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'rubygems'
|
2
|
+
require 'ruby_parser'
|
2
3
|
require 'ruby2ruby'
|
3
4
|
|
4
5
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
@@ -108,3 +109,22 @@ def irb_exec(stdin_str)
|
|
108
109
|
(values[-1].nil? && RUBY_VERSION =~ /1.9.(2|3)/) ? values[0 .. -2] : values
|
109
110
|
end
|
110
111
|
|
112
|
+
def pry_exec(stdin_str)
|
113
|
+
sourcify_rb = File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib', 'sourcify.rb')
|
114
|
+
pry_opts = '--simple-prompt --no-color'
|
115
|
+
results = []
|
116
|
+
|
117
|
+
%x(echo "#{stdin_str}" | pry #{pry_opts} -r #{sourcify_rb}).
|
118
|
+
split("\n").each do |line|
|
119
|
+
case line
|
120
|
+
when /^((?:>> |)=> )/
|
121
|
+
results << [line.sub($1,'')]
|
122
|
+
when /^( )/
|
123
|
+
results[-1] << line
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
results = results.map{|lines| eval(lines.join) }
|
128
|
+
results[-1].nil? ? results[0..-2] : results
|
129
|
+
end
|
130
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sourcify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.0.
|
4
|
+
version: 0.6.0.rc3
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ruby2ruby
|
@@ -91,6 +91,22 @@ dependencies:
|
|
91
91
|
- - ! '>='
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: pry
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
94
110
|
description: ''
|
95
111
|
email:
|
96
112
|
- ngty77@gmail.com
|
@@ -170,9 +186,11 @@ files:
|
|
170
186
|
- spec/method/to_raw_source_w_specified_strip_enclosure_spec.rb
|
171
187
|
- spec/method/to_sexp_from_def_end_block_w_variables_spec.rb
|
172
188
|
- spec/method/to_sexp_from_def_end_block_within_irb_spec.rb
|
189
|
+
- spec/method/to_sexp_from_def_end_block_within_pry_spec.rb
|
173
190
|
- spec/method/to_sexp_from_define_method_w_multi_blocks_and_specified_attached_to_spec.rb
|
174
191
|
- spec/method/to_sexp_from_define_method_w_variables_spec.rb
|
175
192
|
- spec/method/to_sexp_from_define_method_within_irb_spec.rb
|
193
|
+
- spec/method/to_sexp_from_define_method_within_pry_spec.rb
|
176
194
|
- spec/method/to_sexp_w_specified_strip_enclosure_spec.rb
|
177
195
|
- spec/method/to_source_from_def_end_block_w_19_extras_spec.rb
|
178
196
|
- spec/method/to_source_from_def_end_block_w_nested_begin_spec.rb
|
@@ -189,6 +207,7 @@ files:
|
|
189
207
|
- spec/method/to_source_from_def_end_block_w_nested_while_spec.rb
|
190
208
|
- spec/method/to_source_from_def_end_block_w_singleton_method_spec.rb
|
191
209
|
- spec/method/to_source_from_def_end_block_within_irb_spec.rb
|
210
|
+
- spec/method/to_source_from_def_end_block_within_pry_spec.rb
|
192
211
|
- spec/method/to_source_from_def_end_w_multi_blocks_and_many_matches_spec.rb
|
193
212
|
- spec/method/to_source_from_def_end_w_multi_blocks_and_single_match_spec.rb
|
194
213
|
- spec/method/to_source_from_define_method_w_braced_block_spec.rb
|
@@ -204,6 +223,7 @@ files:
|
|
204
223
|
- spec/method/to_source_from_define_method_w_multi_blocks_and_specified_body_matcher_and_single_match_spec.rb
|
205
224
|
- spec/method/to_source_from_define_method_w_multi_blocks_and_specified_ignore_nested_spec.rb
|
206
225
|
- spec/method/to_source_from_define_method_within_irb_spec.rb
|
226
|
+
- spec/method/to_source_from_define_method_within_pry_spec.rb
|
207
227
|
- spec/method/to_source_magic_file_var_spec.rb
|
208
228
|
- spec/method/to_source_magic_line_var_spec.rb
|
209
229
|
- spec/method/to_source_w_specified_strip_enclosure_spec.rb
|
@@ -232,6 +252,7 @@ files:
|
|
232
252
|
- spec/proc/to_sexp_variables_spec.rb
|
233
253
|
- spec/proc/to_sexp_w_specified_strip_enclosure_spec.rb
|
234
254
|
- spec/proc/to_sexp_within_irb_spec.rb
|
255
|
+
- spec/proc/to_sexp_within_pry_spec.rb
|
235
256
|
- spec/proc/to_source_from_braced_block_w_nested_braced_block_spec.rb
|
236
257
|
- spec/proc/to_source_from_braced_block_w_nested_hash_spec.rb
|
237
258
|
- spec/proc/to_source_from_braced_block_wo_nesting_complication_spec.rb
|
@@ -264,6 +285,7 @@ files:
|
|
264
285
|
- spec/proc/to_source_variables_spec.rb
|
265
286
|
- spec/proc/to_source_w_specified_strip_enclosure_spec.rb
|
266
287
|
- spec/proc/to_source_within_irb_spec.rb
|
288
|
+
- spec/proc/to_source_within_pry_spec.rb
|
267
289
|
- spec/raw_scanner/block_comment_shared_spec.rb
|
268
290
|
- spec/raw_scanner/double_colons_shared_spec.rb
|
269
291
|
- spec/raw_scanner/double_quote_str_w_interpolation_shared_spec.rb
|
@@ -325,9 +347,11 @@ test_files:
|
|
325
347
|
- spec/method/to_raw_source_w_specified_strip_enclosure_spec.rb
|
326
348
|
- spec/method/to_sexp_from_def_end_block_w_variables_spec.rb
|
327
349
|
- spec/method/to_sexp_from_def_end_block_within_irb_spec.rb
|
350
|
+
- spec/method/to_sexp_from_def_end_block_within_pry_spec.rb
|
328
351
|
- spec/method/to_sexp_from_define_method_w_multi_blocks_and_specified_attached_to_spec.rb
|
329
352
|
- spec/method/to_sexp_from_define_method_w_variables_spec.rb
|
330
353
|
- spec/method/to_sexp_from_define_method_within_irb_spec.rb
|
354
|
+
- spec/method/to_sexp_from_define_method_within_pry_spec.rb
|
331
355
|
- spec/method/to_sexp_w_specified_strip_enclosure_spec.rb
|
332
356
|
- spec/method/to_source_from_def_end_block_w_19_extras_spec.rb
|
333
357
|
- spec/method/to_source_from_def_end_block_w_nested_begin_spec.rb
|
@@ -344,6 +368,7 @@ test_files:
|
|
344
368
|
- spec/method/to_source_from_def_end_block_w_nested_while_spec.rb
|
345
369
|
- spec/method/to_source_from_def_end_block_w_singleton_method_spec.rb
|
346
370
|
- spec/method/to_source_from_def_end_block_within_irb_spec.rb
|
371
|
+
- spec/method/to_source_from_def_end_block_within_pry_spec.rb
|
347
372
|
- spec/method/to_source_from_def_end_w_multi_blocks_and_many_matches_spec.rb
|
348
373
|
- spec/method/to_source_from_def_end_w_multi_blocks_and_single_match_spec.rb
|
349
374
|
- spec/method/to_source_from_define_method_w_braced_block_spec.rb
|
@@ -359,6 +384,7 @@ test_files:
|
|
359
384
|
- spec/method/to_source_from_define_method_w_multi_blocks_and_specified_body_matcher_and_single_match_spec.rb
|
360
385
|
- spec/method/to_source_from_define_method_w_multi_blocks_and_specified_ignore_nested_spec.rb
|
361
386
|
- spec/method/to_source_from_define_method_within_irb_spec.rb
|
387
|
+
- spec/method/to_source_from_define_method_within_pry_spec.rb
|
362
388
|
- spec/method/to_source_magic_file_var_spec.rb
|
363
389
|
- spec/method/to_source_magic_line_var_spec.rb
|
364
390
|
- spec/method/to_source_w_specified_strip_enclosure_spec.rb
|
@@ -387,6 +413,7 @@ test_files:
|
|
387
413
|
- spec/proc/to_sexp_variables_spec.rb
|
388
414
|
- spec/proc/to_sexp_w_specified_strip_enclosure_spec.rb
|
389
415
|
- spec/proc/to_sexp_within_irb_spec.rb
|
416
|
+
- spec/proc/to_sexp_within_pry_spec.rb
|
390
417
|
- spec/proc/to_source_from_braced_block_w_nested_braced_block_spec.rb
|
391
418
|
- spec/proc/to_source_from_braced_block_w_nested_hash_spec.rb
|
392
419
|
- spec/proc/to_source_from_braced_block_wo_nesting_complication_spec.rb
|
@@ -419,6 +446,7 @@ test_files:
|
|
419
446
|
- spec/proc/to_source_variables_spec.rb
|
420
447
|
- spec/proc/to_source_w_specified_strip_enclosure_spec.rb
|
421
448
|
- spec/proc/to_source_within_irb_spec.rb
|
449
|
+
- spec/proc/to_source_within_pry_spec.rb
|
422
450
|
- spec/raw_scanner/block_comment_shared_spec.rb
|
423
451
|
- spec/raw_scanner/double_colons_shared_spec.rb
|
424
452
|
- spec/raw_scanner/double_quote_str_w_interpolation_shared_spec.rb
|