sourcify 0.4.2 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +23 -0
- data/.rvmrc +1 -1
- data/Gemfile +5 -0
- data/HISTORY.txt +13 -0
- data/README.rdoc +22 -5
- data/Rakefile +41 -78
- data/lib/sourcify.rb +5 -3
- data/lib/sourcify/facets.rb +28 -0
- data/lib/sourcify/proc.rb +23 -2
- data/lib/sourcify/proc/methods.rb +1 -1
- data/lib/sourcify/proc/methods/to_raw_source.rb +20 -0
- data/lib/sourcify/proc/parser.rb +9 -2
- data/lib/sourcify/proc/parser/code_scanner.rb +1 -1
- data/lib/sourcify/proc/parser/normalizer.rb +2 -2
- data/lib/sourcify/proc/scanner.rb +117 -117
- data/lib/sourcify/version.rb +3 -0
- data/sourcify.gemspec +22 -178
- data/spec/proc/to_raw_source_spec.rb +33 -0
- data/spec/proc/to_raw_source_w_specified_strip_enclosure_spec.rb +69 -0
- data/spec/run_spec.sh +6 -0
- data/spec/spec_helper.rb +7 -0
- metadata +77 -85
- data/.infinity_test +0 -42
data/sourcify.gemspec
CHANGED
@@ -1,185 +1,29 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "sourcify/version"
|
5
4
|
|
6
5
|
Gem::Specification.new do |s|
|
7
|
-
s.name
|
8
|
-
s.version
|
9
|
-
|
10
|
-
s.
|
11
|
-
s.
|
12
|
-
s.
|
6
|
+
s.name = "sourcify"
|
7
|
+
s.version = Sourcify::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["NgTzeYang"]
|
10
|
+
s.email = ["ngty77@gmail.com"]
|
11
|
+
s.homepage = "http://github.com/ngty/sourcify"
|
12
|
+
s.summary = %q{Workarounds before ruby-core officially supports Proc#to_source (& friends)}
|
13
13
|
s.description = %q{}
|
14
|
-
s.email = %q{ngty77@gmail.com}
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"LICENSE",
|
17
|
-
"README.rdoc"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".document",
|
21
|
-
".infinity_test",
|
22
|
-
".rvmrc",
|
23
|
-
"HISTORY.txt",
|
24
|
-
"LICENSE",
|
25
|
-
"README.rdoc",
|
26
|
-
"Rakefile",
|
27
|
-
"VERSION",
|
28
|
-
"lib/sourcify.rb",
|
29
|
-
"lib/sourcify/proc.rb",
|
30
|
-
"lib/sourcify/proc/methods.rb",
|
31
|
-
"lib/sourcify/proc/methods/source_location.rb",
|
32
|
-
"lib/sourcify/proc/methods/to_sexp.rb",
|
33
|
-
"lib/sourcify/proc/methods/to_source.rb",
|
34
|
-
"lib/sourcify/proc/parser.rb",
|
35
|
-
"lib/sourcify/proc/parser/code_scanner.rb",
|
36
|
-
"lib/sourcify/proc/parser/converter.rb",
|
37
|
-
"lib/sourcify/proc/parser/normalizer.rb",
|
38
|
-
"lib/sourcify/proc/parser/source_code.rb",
|
39
|
-
"lib/sourcify/proc/scanner.rb",
|
40
|
-
"lib/sourcify/proc/scanner.rl",
|
41
|
-
"lib/sourcify/proc/scanner/comment.rb",
|
42
|
-
"lib/sourcify/proc/scanner/counter.rb",
|
43
|
-
"lib/sourcify/proc/scanner/dstring.rb",
|
44
|
-
"lib/sourcify/proc/scanner/extensions.rb",
|
45
|
-
"lib/sourcify/proc/scanner/heredoc.rb",
|
46
|
-
"sourcify.gemspec",
|
47
|
-
"spec/dump_object_space_procs.rb",
|
48
|
-
"spec/proc/19x_extras.rb",
|
49
|
-
"spec/proc/created_on_the_fly_proc_spec.rb",
|
50
|
-
"spec/proc/others_spec.rb",
|
51
|
-
"spec/proc/readme",
|
52
|
-
"spec/proc/spec_helper.rb",
|
53
|
-
"spec/proc/to_sexp_from_multi_blocks_w_specified_attached_to_spec.rb",
|
54
|
-
"spec/proc/to_sexp_variables_spec.rb",
|
55
|
-
"spec/proc/to_sexp_w_specified_strip_enclosure_spec.rb",
|
56
|
-
"spec/proc/to_sexp_within_irb_spec.rb",
|
57
|
-
"spec/proc/to_source_from_braced_block_w_nested_braced_block_spec.rb",
|
58
|
-
"spec/proc/to_source_from_braced_block_w_nested_hash_spec.rb",
|
59
|
-
"spec/proc/to_source_from_braced_block_wo_nesting_complication_spec.rb",
|
60
|
-
"spec/proc/to_source_from_do_end_block_w_nested_begin_spec.rb",
|
61
|
-
"spec/proc/to_source_from_do_end_block_w_nested_case_spec.rb",
|
62
|
-
"spec/proc/to_source_from_do_end_block_w_nested_class_spec.rb",
|
63
|
-
"spec/proc/to_source_from_do_end_block_w_nested_do_end_block_spec.rb",
|
64
|
-
"spec/proc/to_source_from_do_end_block_w_nested_for_spec.rb",
|
65
|
-
"spec/proc/to_source_from_do_end_block_w_nested_if_spec.rb",
|
66
|
-
"spec/proc/to_source_from_do_end_block_w_nested_literal_keyword_spec.rb",
|
67
|
-
"spec/proc/to_source_from_do_end_block_w_nested_method_spec.rb",
|
68
|
-
"spec/proc/to_source_from_do_end_block_w_nested_module_spec.rb",
|
69
|
-
"spec/proc/to_source_from_do_end_block_w_nested_unless_spec.rb",
|
70
|
-
"spec/proc/to_source_from_do_end_block_w_nested_until_spec.rb",
|
71
|
-
"spec/proc/to_source_from_do_end_block_w_nested_while_spec.rb",
|
72
|
-
"spec/proc/to_source_from_do_end_block_wo_nesting_complication_spec.rb",
|
73
|
-
"spec/proc/to_source_from_multi_blocks_w_many_matches_spec.rb",
|
74
|
-
"spec/proc/to_source_from_multi_blocks_w_single_match_spec.rb",
|
75
|
-
"spec/proc/to_source_from_multi_blocks_w_specified_attached_to_and_many_matches_spec.rb",
|
76
|
-
"spec/proc/to_source_from_multi_blocks_w_specified_attached_to_and_no_match_spec.rb",
|
77
|
-
"spec/proc/to_source_from_multi_blocks_w_specified_attached_to_and_single_match_spec.rb",
|
78
|
-
"spec/proc/to_source_from_multi_blocks_w_specified_attached_to_spec.rb",
|
79
|
-
"spec/proc/to_source_from_multi_blocks_w_specified_body_matcher_and_many_matches_spec.rb",
|
80
|
-
"spec/proc/to_source_from_multi_blocks_w_specified_body_matcher_and_no_match_spec.rb",
|
81
|
-
"spec/proc/to_source_from_multi_blocks_w_specified_body_matcher_and_single_match_spec.rb",
|
82
|
-
"spec/proc/to_source_from_multi_blocks_w_specified_ignore_nested_spec.rb",
|
83
|
-
"spec/proc/to_source_from_multi_do_end_blocks_w_single_match_spec.rb",
|
84
|
-
"spec/proc/to_source_magic_file_var_spec.rb",
|
85
|
-
"spec/proc/to_source_magic_line_var_spec.rb",
|
86
|
-
"spec/proc/to_source_variables_spec.rb",
|
87
|
-
"spec/proc/to_source_w_specified_strip_enclosure_spec.rb",
|
88
|
-
"spec/proc/to_source_within_irb_spec.rb",
|
89
|
-
"spec/proc_scanner/block_comment_spec.rb",
|
90
|
-
"spec/proc_scanner/double_colons_spec.rb",
|
91
|
-
"spec/proc_scanner/double_quote_str_w_interpolation_spec.rb",
|
92
|
-
"spec/proc_scanner/double_quote_str_wo_interpolation_spec.rb",
|
93
|
-
"spec/proc_scanner/heredoc_spec.rb",
|
94
|
-
"spec/proc_scanner/kw_do_alias1_spec.rb",
|
95
|
-
"spec/proc_scanner/kw_do_alias2_spec.rb",
|
96
|
-
"spec/proc_scanner/per_line_comment_spec.rb",
|
97
|
-
"spec/proc_scanner/single_quote_str_spec.rb",
|
98
|
-
"spec/proc_scanner/slash_operator_spec.rb",
|
99
|
-
"spec/proc_scanner/spec_helper.rb",
|
100
|
-
"spec/spec_helper.rb"
|
101
|
-
]
|
102
|
-
s.homepage = %q{http://github.com/ngty/sourcify}
|
103
|
-
s.require_paths = ["lib"]
|
104
|
-
s.required_ruby_version = Gem::Requirement.new(">= 1.8.6")
|
105
|
-
s.rubygems_version = %q{1.3.7}
|
106
|
-
s.summary = %q{Workarounds before ruby-core officially supports Proc#to_source (& friends)}
|
107
|
-
s.test_files = [
|
108
|
-
"spec/dump_object_space_procs.rb",
|
109
|
-
"spec/proc/19x_extras.rb",
|
110
|
-
"spec/proc/created_on_the_fly_proc_spec.rb",
|
111
|
-
"spec/proc/others_spec.rb",
|
112
|
-
"spec/proc/spec_helper.rb",
|
113
|
-
"spec/proc/to_sexp_from_multi_blocks_w_specified_attached_to_spec.rb",
|
114
|
-
"spec/proc/to_sexp_variables_spec.rb",
|
115
|
-
"spec/proc/to_sexp_w_specified_strip_enclosure_spec.rb",
|
116
|
-
"spec/proc/to_sexp_within_irb_spec.rb",
|
117
|
-
"spec/proc/to_source_from_braced_block_w_nested_braced_block_spec.rb",
|
118
|
-
"spec/proc/to_source_from_braced_block_w_nested_hash_spec.rb",
|
119
|
-
"spec/proc/to_source_from_braced_block_wo_nesting_complication_spec.rb",
|
120
|
-
"spec/proc/to_source_from_do_end_block_w_nested_begin_spec.rb",
|
121
|
-
"spec/proc/to_source_from_do_end_block_w_nested_case_spec.rb",
|
122
|
-
"spec/proc/to_source_from_do_end_block_w_nested_class_spec.rb",
|
123
|
-
"spec/proc/to_source_from_do_end_block_w_nested_do_end_block_spec.rb",
|
124
|
-
"spec/proc/to_source_from_do_end_block_w_nested_for_spec.rb",
|
125
|
-
"spec/proc/to_source_from_do_end_block_w_nested_if_spec.rb",
|
126
|
-
"spec/proc/to_source_from_do_end_block_w_nested_literal_keyword_spec.rb",
|
127
|
-
"spec/proc/to_source_from_do_end_block_w_nested_method_spec.rb",
|
128
|
-
"spec/proc/to_source_from_do_end_block_w_nested_module_spec.rb",
|
129
|
-
"spec/proc/to_source_from_do_end_block_w_nested_unless_spec.rb",
|
130
|
-
"spec/proc/to_source_from_do_end_block_w_nested_until_spec.rb",
|
131
|
-
"spec/proc/to_source_from_do_end_block_w_nested_while_spec.rb",
|
132
|
-
"spec/proc/to_source_from_do_end_block_wo_nesting_complication_spec.rb",
|
133
|
-
"spec/proc/to_source_from_multi_blocks_w_many_matches_spec.rb",
|
134
|
-
"spec/proc/to_source_from_multi_blocks_w_single_match_spec.rb",
|
135
|
-
"spec/proc/to_source_from_multi_blocks_w_specified_attached_to_and_many_matches_spec.rb",
|
136
|
-
"spec/proc/to_source_from_multi_blocks_w_specified_attached_to_and_no_match_spec.rb",
|
137
|
-
"spec/proc/to_source_from_multi_blocks_w_specified_attached_to_and_single_match_spec.rb",
|
138
|
-
"spec/proc/to_source_from_multi_blocks_w_specified_attached_to_spec.rb",
|
139
|
-
"spec/proc/to_source_from_multi_blocks_w_specified_body_matcher_and_many_matches_spec.rb",
|
140
|
-
"spec/proc/to_source_from_multi_blocks_w_specified_body_matcher_and_no_match_spec.rb",
|
141
|
-
"spec/proc/to_source_from_multi_blocks_w_specified_body_matcher_and_single_match_spec.rb",
|
142
|
-
"spec/proc/to_source_from_multi_blocks_w_specified_ignore_nested_spec.rb",
|
143
|
-
"spec/proc/to_source_from_multi_do_end_blocks_w_single_match_spec.rb",
|
144
|
-
"spec/proc/to_source_magic_file_var_spec.rb",
|
145
|
-
"spec/proc/to_source_magic_line_var_spec.rb",
|
146
|
-
"spec/proc/to_source_variables_spec.rb",
|
147
|
-
"spec/proc/to_source_w_specified_strip_enclosure_spec.rb",
|
148
|
-
"spec/proc/to_source_within_irb_spec.rb",
|
149
|
-
"spec/proc_scanner/block_comment_spec.rb",
|
150
|
-
"spec/proc_scanner/double_colons_spec.rb",
|
151
|
-
"spec/proc_scanner/double_quote_str_w_interpolation_spec.rb",
|
152
|
-
"spec/proc_scanner/double_quote_str_wo_interpolation_spec.rb",
|
153
|
-
"spec/proc_scanner/heredoc_spec.rb",
|
154
|
-
"spec/proc_scanner/kw_do_alias1_spec.rb",
|
155
|
-
"spec/proc_scanner/kw_do_alias2_spec.rb",
|
156
|
-
"spec/proc_scanner/per_line_comment_spec.rb",
|
157
|
-
"spec/proc_scanner/single_quote_str_spec.rb",
|
158
|
-
"spec/proc_scanner/slash_operator_spec.rb",
|
159
|
-
"spec/proc_scanner/spec_helper.rb",
|
160
|
-
"spec/spec_helper.rb"
|
161
|
-
]
|
162
14
|
|
163
|
-
|
164
|
-
|
165
|
-
|
15
|
+
s.add_dependency 'ruby2ruby', '>= 1.2.5'
|
16
|
+
s.add_dependency 'sexp_processor', '>= 3.0.5'
|
17
|
+
s.add_dependency 'ruby_parser', '>= 2.0.5'
|
18
|
+
s.add_dependency 'file-tail', '>= 1.0.5'
|
19
|
+
s.add_development_dependency 'bacon'
|
166
20
|
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
s.add_runtime_dependency(%q<file-tail>, [">= 1.0.5"])
|
171
|
-
s.add_development_dependency(%q<bacon>, [">= 0"])
|
172
|
-
else
|
173
|
-
s.add_dependency(%q<ruby2ruby>, [">= 1.2.5"])
|
174
|
-
s.add_dependency(%q<sexp_processor>, [">= 3.0.5"])
|
175
|
-
s.add_dependency(%q<file-tail>, [">= 1.0.5"])
|
176
|
-
s.add_dependency(%q<bacon>, [">= 0"])
|
177
|
-
end
|
178
|
-
else
|
179
|
-
s.add_dependency(%q<ruby2ruby>, [">= 1.2.5"])
|
180
|
-
s.add_dependency(%q<sexp_processor>, [">= 3.0.5"])
|
181
|
-
s.add_dependency(%q<file-tail>, [">= 1.0.5"])
|
182
|
-
s.add_dependency(%q<bacon>, [">= 0"])
|
183
|
-
end
|
184
|
-
end
|
21
|
+
# ParseTree (better performance + dynamic goodness, but not supported on java & 1.9.*),
|
22
|
+
# optional for any 1.8.*.
|
23
|
+
#s.add_dependency "ParseTree", ">= 3.0.6"
|
185
24
|
|
25
|
+
s.extra_rdoc_files = ["README.rdoc"]
|
26
|
+
s.files = `git ls-files`.split("\n")
|
27
|
+
s.test_files = `git ls-files -- spec/*`.split("\n")
|
28
|
+
s.require_paths = ["lib"]
|
29
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require File.join(File.expand_path(File.dirname(__FILE__)), 'spec_helper')
|
2
|
+
|
3
|
+
describe "Proc#to_raw_source" do
|
4
|
+
|
5
|
+
should 'retain comments' do
|
6
|
+
(
|
7
|
+
lambda do
|
8
|
+
a = 1
|
9
|
+
# i should stay !!
|
10
|
+
end
|
11
|
+
).should.be having_raw_source(%(
|
12
|
+
proc do
|
13
|
+
a = 1
|
14
|
+
# i should stay !!
|
15
|
+
end
|
16
|
+
))
|
17
|
+
end
|
18
|
+
|
19
|
+
should 'retain last nil statement' do
|
20
|
+
(
|
21
|
+
lambda do
|
22
|
+
a = 1
|
23
|
+
nil
|
24
|
+
end
|
25
|
+
).should.be having_raw_source(%(
|
26
|
+
proc do
|
27
|
+
a = 1
|
28
|
+
nil
|
29
|
+
end
|
30
|
+
))
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
require File.join(File.expand_path(File.dirname(__FILE__)), 'spec_helper')
|
2
|
+
|
3
|
+
describe 'Proc#to_raw_source w specified {:strip_enclosure => ...}' do
|
4
|
+
|
5
|
+
describe '>> w true' do
|
6
|
+
|
7
|
+
options = {:strip_enclosure => true}
|
8
|
+
|
9
|
+
should 'strip enclosing proc wo arg' do
|
10
|
+
(
|
11
|
+
lambda do
|
12
|
+
a = 1
|
13
|
+
# i should stay !!
|
14
|
+
end
|
15
|
+
).should.be having_raw_source(%(
|
16
|
+
a = 1
|
17
|
+
# i should stay !!
|
18
|
+
), options)
|
19
|
+
end
|
20
|
+
|
21
|
+
should 'strip enclosing proc w arg' do
|
22
|
+
(
|
23
|
+
lambda do |a|
|
24
|
+
a = 1
|
25
|
+
# i should stay !!
|
26
|
+
end
|
27
|
+
).should.be having_raw_source(%(
|
28
|
+
a = 1
|
29
|
+
# i should stay !!
|
30
|
+
), options)
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
|
35
|
+
describe '>> w false' do
|
36
|
+
|
37
|
+
options = {:strip_enclosure => false}
|
38
|
+
|
39
|
+
should 'not strip enclosing proc wo arg' do
|
40
|
+
(
|
41
|
+
lambda do
|
42
|
+
a = 1
|
43
|
+
# i should stay !!
|
44
|
+
end
|
45
|
+
).should.be having_raw_source(%(
|
46
|
+
proc do
|
47
|
+
a = 1
|
48
|
+
# i should stay !!
|
49
|
+
end
|
50
|
+
), options)
|
51
|
+
end
|
52
|
+
|
53
|
+
should 'not strip enclosing proc w arg' do
|
54
|
+
(
|
55
|
+
lambda do |a|
|
56
|
+
a = 1
|
57
|
+
# i should stay !!
|
58
|
+
end
|
59
|
+
).should.be having_raw_source(%(
|
60
|
+
proc do |a|
|
61
|
+
a = 1
|
62
|
+
# i should stay !!
|
63
|
+
end
|
64
|
+
), options)
|
65
|
+
end
|
66
|
+
|
67
|
+
end
|
68
|
+
|
69
|
+
end
|
data/spec/run_spec.sh
ADDED
data/spec/spec_helper.rb
CHANGED
@@ -65,6 +65,13 @@ def having_source(expected, opts={}, &matcher)
|
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
68
|
+
def having_raw_source(expected, opts={}, &matcher)
|
69
|
+
lambda do |_proc|
|
70
|
+
found = block_given? ? _proc.to_raw_source(&matcher) : _proc.to_raw_source(opts)
|
71
|
+
found == expected.strip
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
68
75
|
def having_sexp(expected, opts={}, &matcher)
|
69
76
|
lambda do |_proc|
|
70
77
|
expected = eval(expected) if expected.is_a?(String)
|
metadata
CHANGED
@@ -1,102 +1,95 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: sourcify
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 4
|
8
|
-
- 2
|
9
|
-
version: 0.4.2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.0
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- NgTzeYang
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
date: 2011-02-06 00:00:00 +08:00
|
12
|
+
date: 2011-05-02 00:00:00.000000000 +08:00
|
18
13
|
default_executable:
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
21
16
|
name: ruby2ruby
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: &19360780 !ruby/object:Gem::Requirement
|
24
18
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 1
|
30
|
-
- 2
|
31
|
-
- 5
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
32
22
|
version: 1.2.5
|
33
23
|
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: sexp_processor
|
37
24
|
prerelease: false
|
38
|
-
|
25
|
+
version_requirements: *19360780
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: sexp_processor
|
28
|
+
requirement: &19360280 !ruby/object:Gem::Requirement
|
39
29
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
segments:
|
44
|
-
- 3
|
45
|
-
- 0
|
46
|
-
- 5
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
47
33
|
version: 3.0.5
|
48
34
|
type: :runtime
|
49
|
-
version_requirements: *id002
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: file-tail
|
52
35
|
prerelease: false
|
53
|
-
|
36
|
+
version_requirements: *19360280
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: ruby_parser
|
39
|
+
requirement: &19359820 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ! '>='
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: 2.0.5
|
45
|
+
type: :runtime
|
46
|
+
prerelease: false
|
47
|
+
version_requirements: *19359820
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: file-tail
|
50
|
+
requirement: &19359360 !ruby/object:Gem::Requirement
|
54
51
|
none: false
|
55
|
-
requirements:
|
56
|
-
- -
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
segments:
|
59
|
-
- 1
|
60
|
-
- 0
|
61
|
-
- 5
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
62
55
|
version: 1.0.5
|
63
56
|
type: :runtime
|
64
|
-
version_requirements: *id003
|
65
|
-
- !ruby/object:Gem::Dependency
|
66
|
-
name: bacon
|
67
57
|
prerelease: false
|
68
|
-
|
58
|
+
version_requirements: *19359360
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: bacon
|
61
|
+
requirement: &19358980 !ruby/object:Gem::Requirement
|
69
62
|
none: false
|
70
|
-
requirements:
|
71
|
-
- -
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
|
74
|
-
- 0
|
75
|
-
version: "0"
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
76
67
|
type: :development
|
77
|
-
|
78
|
-
|
79
|
-
|
68
|
+
prerelease: false
|
69
|
+
version_requirements: *19358980
|
70
|
+
description: ''
|
71
|
+
email:
|
72
|
+
- ngty77@gmail.com
|
80
73
|
executables: []
|
81
|
-
|
82
74
|
extensions: []
|
83
|
-
|
84
|
-
extra_rdoc_files:
|
85
|
-
- LICENSE
|
75
|
+
extra_rdoc_files:
|
86
76
|
- README.rdoc
|
87
|
-
files:
|
77
|
+
files:
|
88
78
|
- .document
|
89
|
-
- .
|
79
|
+
- .gitignore
|
90
80
|
- .rvmrc
|
81
|
+
- Gemfile
|
91
82
|
- HISTORY.txt
|
92
83
|
- LICENSE
|
93
84
|
- README.rdoc
|
94
85
|
- Rakefile
|
95
86
|
- VERSION
|
96
87
|
- lib/sourcify.rb
|
88
|
+
- lib/sourcify/facets.rb
|
97
89
|
- lib/sourcify/proc.rb
|
98
90
|
- lib/sourcify/proc/methods.rb
|
99
91
|
- lib/sourcify/proc/methods/source_location.rb
|
92
|
+
- lib/sourcify/proc/methods/to_raw_source.rb
|
100
93
|
- lib/sourcify/proc/methods/to_sexp.rb
|
101
94
|
- lib/sourcify/proc/methods/to_source.rb
|
102
95
|
- lib/sourcify/proc/parser.rb
|
@@ -111,6 +104,7 @@ files:
|
|
111
104
|
- lib/sourcify/proc/scanner/dstring.rb
|
112
105
|
- lib/sourcify/proc/scanner/extensions.rb
|
113
106
|
- lib/sourcify/proc/scanner/heredoc.rb
|
107
|
+
- lib/sourcify/version.rb
|
114
108
|
- sourcify.gemspec
|
115
109
|
- spec/dump_object_space_procs.rb
|
116
110
|
- spec/proc/19x_extras.rb
|
@@ -118,6 +112,8 @@ files:
|
|
118
112
|
- spec/proc/others_spec.rb
|
119
113
|
- spec/proc/readme
|
120
114
|
- spec/proc/spec_helper.rb
|
115
|
+
- spec/proc/to_raw_source_spec.rb
|
116
|
+
- spec/proc/to_raw_source_w_specified_strip_enclosure_spec.rb
|
121
117
|
- spec/proc/to_sexp_from_multi_blocks_w_specified_attached_to_spec.rb
|
122
118
|
- spec/proc/to_sexp_variables_spec.rb
|
123
119
|
- spec/proc/to_sexp_w_specified_strip_enclosure_spec.rb
|
@@ -165,47 +161,42 @@ files:
|
|
165
161
|
- spec/proc_scanner/single_quote_str_spec.rb
|
166
162
|
- spec/proc_scanner/slash_operator_spec.rb
|
167
163
|
- spec/proc_scanner/spec_helper.rb
|
164
|
+
- spec/run_spec.sh
|
168
165
|
- spec/spec_helper.rb
|
169
166
|
has_rdoc: true
|
170
167
|
homepage: http://github.com/ngty/sourcify
|
171
168
|
licenses: []
|
172
|
-
|
173
169
|
post_install_message:
|
174
170
|
rdoc_options: []
|
175
|
-
|
176
|
-
require_paths:
|
171
|
+
require_paths:
|
177
172
|
- lib
|
178
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
173
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
179
174
|
none: false
|
180
|
-
requirements:
|
181
|
-
- -
|
182
|
-
- !ruby/object:Gem::Version
|
183
|
-
|
184
|
-
|
185
|
-
- 8
|
186
|
-
- 6
|
187
|
-
version: 1.8.6
|
188
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
175
|
+
requirements:
|
176
|
+
- - ! '>='
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: '0'
|
179
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
180
|
none: false
|
190
|
-
requirements:
|
191
|
-
- -
|
192
|
-
- !ruby/object:Gem::Version
|
193
|
-
|
194
|
-
- 0
|
195
|
-
version: "0"
|
181
|
+
requirements:
|
182
|
+
- - ! '>='
|
183
|
+
- !ruby/object:Gem::Version
|
184
|
+
version: '0'
|
196
185
|
requirements: []
|
197
|
-
|
198
186
|
rubyforge_project:
|
199
|
-
rubygems_version: 1.
|
187
|
+
rubygems_version: 1.6.1
|
200
188
|
signing_key:
|
201
189
|
specification_version: 3
|
202
190
|
summary: Workarounds before ruby-core officially supports Proc#to_source (& friends)
|
203
|
-
test_files:
|
191
|
+
test_files:
|
204
192
|
- spec/dump_object_space_procs.rb
|
205
193
|
- spec/proc/19x_extras.rb
|
206
194
|
- spec/proc/created_on_the_fly_proc_spec.rb
|
207
195
|
- spec/proc/others_spec.rb
|
196
|
+
- spec/proc/readme
|
208
197
|
- spec/proc/spec_helper.rb
|
198
|
+
- spec/proc/to_raw_source_spec.rb
|
199
|
+
- spec/proc/to_raw_source_w_specified_strip_enclosure_spec.rb
|
209
200
|
- spec/proc/to_sexp_from_multi_blocks_w_specified_attached_to_spec.rb
|
210
201
|
- spec/proc/to_sexp_variables_spec.rb
|
211
202
|
- spec/proc/to_sexp_w_specified_strip_enclosure_spec.rb
|
@@ -253,4 +244,5 @@ test_files:
|
|
253
244
|
- spec/proc_scanner/single_quote_str_spec.rb
|
254
245
|
- spec/proc_scanner/slash_operator_spec.rb
|
255
246
|
- spec/proc_scanner/spec_helper.rb
|
247
|
+
- spec/run_spec.sh
|
256
248
|
- spec/spec_helper.rb
|