sourcify 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ === 0.1.1 (Aug 30, 2010)
2
+
3
+ * fixed empty return for Proc#to_sexp after calling of Proc#to_source [#ngty]
4
+
1
5
  === 0.1.0 (Aug 28, 2010)
2
6
 
3
7
  * 1st gem release !! [#ngty]
data/Rakefile CHANGED
@@ -20,6 +20,7 @@ begin
20
20
  #
21
21
  # 2). RubyParser (supported for all)
22
22
  # >> gem.add_dependency "ruby_parser", ">= 2.0.4"
23
+ # >> gem.add_dependency "sexp_processor", ">= 3.0.4"
23
24
  # >> gem.add_dependency "file-tail", ">= 1.0.5"
24
25
  end
25
26
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -6,6 +6,7 @@ begin
6
6
  require 'parse_tree_extensions'
7
7
  rescue LoadError
8
8
  require 'ruby_parser'
9
+ require 'sexp_processor'
9
10
  require 'file/tail'
10
11
  end
11
12
 
@@ -14,7 +14,7 @@ module Sourcify
14
14
  end
15
15
 
16
16
  def source
17
- RUBY_2_RUBY.process(sexp)
17
+ RUBY_2_RUBY.process(Sexp.from_array(sexp.to_a))
18
18
  end
19
19
 
20
20
  def sexp
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sourcify}
8
- s.version = "0.1.0"
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-28}
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: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
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-28 00:00:00 +08:00
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