sourcify 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.txt +4 -0
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/lib/sourcify.rb +1 -0
- data/lib/sourcify/proc/parser.rb +1 -1
- data/sourcify.gemspec +4 -2
- data/spec/proc/misc_spec.rb +16 -0
- metadata +6 -4
data/HISTORY.txt
CHANGED
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/sourcify.rb
CHANGED
data/lib/sourcify/proc/parser.rb
CHANGED
data/sourcify.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{sourcify}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["NgTzeYang"]
|
12
|
-
s.date = %q{2010-08-
|
12
|
+
s.date = %q{2010-08-30}
|
13
13
|
s.description = %q{}
|
14
14
|
s.email = %q{ngty77@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -33,6 +33,7 @@ Gem::Specification.new do |s|
|
|
33
33
|
"lib/sourcify/proc/parser.rb",
|
34
34
|
"sourcify.gemspec",
|
35
35
|
"spec/proc/19x_extras.rb",
|
36
|
+
"spec/proc/misc_spec.rb",
|
36
37
|
"spec/proc/readme",
|
37
38
|
"spec/proc/to_sexp_variables_spec.rb",
|
38
39
|
"spec/proc/to_source_from_braced_block_w_nested_braced_block_spec.rb",
|
@@ -85,6 +86,7 @@ Gem::Specification.new do |s|
|
|
85
86
|
"spec/proc/to_source_variables_spec.rb",
|
86
87
|
"spec/proc/to_sexp_variables_spec.rb",
|
87
88
|
"spec/proc/to_source_magic_file_var_spec.rb",
|
89
|
+
"spec/proc/misc_spec.rb",
|
88
90
|
"spec/proc/to_source_from_do_end_block_w_nested_if_spec.rb",
|
89
91
|
"spec/proc/to_source_from_do_end_block_w_nested_for_spec.rb",
|
90
92
|
"spec/spec_helper.rb"
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
|
2
|
+
|
3
|
+
describe "Misc" do
|
4
|
+
|
5
|
+
should 'handle accessing #to_sexp after #to_source' do
|
6
|
+
(s_proc = lambda { :test }).to_source
|
7
|
+
s_proc.to_sexp.should.equal(s(:iter, s(:call, nil, :proc, s(:arglist)), nil, s(:lit, :test)))
|
8
|
+
end
|
9
|
+
|
10
|
+
should 'handle accessing #to_source after #to_sexp' do
|
11
|
+
(s_proc = lambda { :test }).to_sexp
|
12
|
+
s_proc.to_source.should.equal('proc { :test }')
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sourcify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- NgTzeYang
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-08-
|
18
|
+
date: 2010-08-30 00:00:00 +08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -74,6 +74,7 @@ files:
|
|
74
74
|
- lib/sourcify/proc/parser.rb
|
75
75
|
- sourcify.gemspec
|
76
76
|
- spec/proc/19x_extras.rb
|
77
|
+
- spec/proc/misc_spec.rb
|
77
78
|
- spec/proc/readme
|
78
79
|
- spec/proc/to_sexp_variables_spec.rb
|
79
80
|
- spec/proc/to_source_from_braced_block_w_nested_braced_block_spec.rb
|
@@ -154,6 +155,7 @@ test_files:
|
|
154
155
|
- spec/proc/to_source_variables_spec.rb
|
155
156
|
- spec/proc/to_sexp_variables_spec.rb
|
156
157
|
- spec/proc/to_source_magic_file_var_spec.rb
|
158
|
+
- spec/proc/misc_spec.rb
|
157
159
|
- spec/proc/to_source_from_do_end_block_w_nested_if_spec.rb
|
158
160
|
- spec/proc/to_source_from_do_end_block_w_nested_for_spec.rb
|
159
161
|
- spec/spec_helper.rb
|