ruby2ruby 2.1.4 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.autotest +0 -1
- data/History.txt +6 -0
- data/lib/ruby2ruby.rb +3 -5
- data/test/test_ruby2ruby.rb +2 -2
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4071b8713e84a587983a485ea48163835eafc4aa
|
4
|
+
data.tar.gz: 4acc95c551e76369e017e4ee4edc13533e229d32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12cd7ca6f607eb86dee92655813e34c145b821df17b3057baea781c8b84882669686b02f1dd24a037eb7b674b0bde981c5930ba1d9f1b3ac0ff288ac25e130f7
|
7
|
+
data.tar.gz: 4225c4aac264d6093d1e17a668daa4f54d608ee82bfb0b7c30f24fd9b13299e6e84a148d8b33da107f86f232ee44cd7c8b748015ee1d1f77d241a358e6ddf7e0
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.autotest
CHANGED
data/History.txt
CHANGED
data/lib/ruby2ruby.rb
CHANGED
@@ -31,7 +31,7 @@ end
|
|
31
31
|
# Generate ruby code from a sexp.
|
32
32
|
|
33
33
|
class Ruby2Ruby < SexpProcessor
|
34
|
-
VERSION = "2.
|
34
|
+
VERSION = "2.2.0" # :nodoc:
|
35
35
|
|
36
36
|
# cutoff for one-liners
|
37
37
|
LINE_LENGTH = 78
|
@@ -571,11 +571,9 @@ class Ruby2Ruby < SexpProcessor
|
|
571
571
|
|
572
572
|
args = case args
|
573
573
|
when 0 then
|
574
|
-
"
|
574
|
+
""
|
575
575
|
else
|
576
|
-
|
577
|
-
a = " |#{a}|" unless a.empty?
|
578
|
-
a
|
576
|
+
" |#{process(args)[1..-2]}|"
|
579
577
|
end
|
580
578
|
|
581
579
|
b, e = if iter == "END" then
|
data/test/test_ruby2ruby.rb
CHANGED
@@ -19,7 +19,7 @@ class R2RTestCase < ParseTreeTestCase
|
|
19
19
|
def self.generate_test klass, node, data, input_name, output_name
|
20
20
|
output_name = data.has_key?('Ruby2Ruby') ? 'Ruby2Ruby' : 'Ruby'
|
21
21
|
|
22
|
-
return if node.to_s =~ /(str_question|not|bang).*(19|20|21)$/
|
22
|
+
return if node.to_s =~ /(str_question|not|bang).*_(19|20|21|22)$/
|
23
23
|
|
24
24
|
klass.class_eval <<-EOM
|
25
25
|
def test_#{node}
|
@@ -117,7 +117,7 @@ class TestRuby2Ruby < R2RTestCase
|
|
117
117
|
end
|
118
118
|
|
119
119
|
def test_hash_parens_iter
|
120
|
-
iter = s(:iter, s(:call, nil, :foo),
|
120
|
+
iter = s(:iter, s(:call, nil, :foo), 0, s(:str, "bar"))
|
121
121
|
inn = s(:hash, s(:lit, :k), iter)
|
122
122
|
out = '{ :k => (foo { "bar" }) }'
|
123
123
|
util_compare inn, out
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby2ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
29
29
|
xJcC6UN6NHMOVMyAXsr2HR0gRRx4ofN1LoP2KhXzSr8UMvQYlwPmE0N5GQv1b5AO
|
30
30
|
VpzF30vNaJK6ZT7xlIsIlwmH
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2015-
|
32
|
+
date: 2015-05-27 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: sexp_processor
|
@@ -65,14 +65,14 @@ dependencies:
|
|
65
65
|
requirements:
|
66
66
|
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '5.
|
68
|
+
version: '5.7'
|
69
69
|
type: :development
|
70
70
|
prerelease: false
|
71
71
|
version_requirements: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '5.
|
75
|
+
version: '5.7'
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
77
|
name: rdoc
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|