ruby2ruby 2.3.2 → 2.4.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/{History.txt → History.rdoc} +15 -0
- data/Manifest.txt +2 -2
- data/{README.txt → README.rdoc} +0 -0
- data/Rakefile +1 -0
- data/lib/ruby2ruby.rb +427 -364
- data/test/test_ruby2ruby.rb +1 -4
- metadata +22 -22
- metadata.gz.sig +0 -0
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|23)$/
|
22
|
+
return if node.to_s =~ /(str_question|not|bang).*_(19|20|21|22|23|24)$/
|
23
23
|
|
24
24
|
klass.class_eval <<-EOM
|
25
25
|
def test_#{node}
|
@@ -50,7 +50,6 @@ class TestRuby2Ruby < R2RTestCase
|
|
50
50
|
|
51
51
|
def test_util_dthing_dregx
|
52
52
|
inn = util_thingy(:dregx)
|
53
|
-
inn.shift
|
54
53
|
out = '/a"b#{(1 + 1)}c"d\/e/'
|
55
54
|
exp = /a"b2c"d\/e/
|
56
55
|
|
@@ -61,7 +60,6 @@ class TestRuby2Ruby < R2RTestCase
|
|
61
60
|
|
62
61
|
def test_util_dthing_dstr
|
63
62
|
inn = util_thingy(:dstr)
|
64
|
-
inn.shift
|
65
63
|
out = '"a\"b#{(1 + 1)}c\"d/e"'
|
66
64
|
exp = 'a"b2c"d/e'
|
67
65
|
|
@@ -72,7 +70,6 @@ class TestRuby2Ruby < R2RTestCase
|
|
72
70
|
|
73
71
|
def test_util_dthing_dregx_bug?
|
74
72
|
inn = s(:dregx, '[\/\"]', s(:evstr, s(:lit, 42)))
|
75
|
-
inn.shift
|
76
73
|
out = '/[\/\"]#{42}/'
|
77
74
|
exp = /[\/\"]42/
|
78
75
|
|
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.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -30,64 +30,64 @@ cert_chain:
|
|
30
30
|
E4oJcnPkJAr0rw504JGtlZtONZQblwmRJOIdXzolaE3NRGUzGVOUSptZppAKiavY
|
31
31
|
fO6tdKQc/5RfA8oQEkg8hrxA5PQSz4TOFJGLpFvIapEk6tMruQ0bHgkhr9auXg==
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
33
|
+
date: 2017-07-17 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: sexp_processor
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - ~>
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '4.6'
|
42
42
|
type: :runtime
|
43
43
|
prerelease: false
|
44
44
|
version_requirements: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - ~>
|
46
|
+
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '4.6'
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: ruby_parser
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - ~>
|
53
|
+
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '3.1'
|
56
56
|
type: :runtime
|
57
57
|
prerelease: false
|
58
58
|
version_requirements: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - ~>
|
60
|
+
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '3.1'
|
63
63
|
- !ruby/object:Gem::Dependency
|
64
64
|
name: rdoc
|
65
65
|
requirement: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - ~>
|
67
|
+
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '4.0'
|
70
70
|
type: :development
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- - ~>
|
74
|
+
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '4.0'
|
77
77
|
- !ruby/object:Gem::Dependency
|
78
78
|
name: hoe
|
79
79
|
requirement: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - ~>
|
81
|
+
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '3.
|
83
|
+
version: '3.16'
|
84
84
|
type: :development
|
85
85
|
prerelease: false
|
86
86
|
version_requirements: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- - ~>
|
88
|
+
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: '3.
|
90
|
+
version: '3.16'
|
91
91
|
description: |-
|
92
92
|
ruby2ruby provides a means of generating pure ruby code easily from
|
93
93
|
RubyParser compatible Sexps. This makes making dynamic language
|
@@ -98,14 +98,14 @@ executables:
|
|
98
98
|
- r2r_show
|
99
99
|
extensions: []
|
100
100
|
extra_rdoc_files:
|
101
|
-
- History.
|
101
|
+
- History.rdoc
|
102
102
|
- Manifest.txt
|
103
|
-
- README.
|
103
|
+
- README.rdoc
|
104
104
|
files:
|
105
|
-
- .autotest
|
106
|
-
- History.
|
105
|
+
- ".autotest"
|
106
|
+
- History.rdoc
|
107
107
|
- Manifest.txt
|
108
|
-
- README.
|
108
|
+
- README.rdoc
|
109
109
|
- Rakefile
|
110
110
|
- bin/r2r_show
|
111
111
|
- lib/ruby2ruby.rb
|
@@ -116,23 +116,23 @@ licenses:
|
|
116
116
|
metadata: {}
|
117
117
|
post_install_message:
|
118
118
|
rdoc_options:
|
119
|
-
- --main
|
120
|
-
- README.
|
119
|
+
- "--main"
|
120
|
+
- README.rdoc
|
121
121
|
require_paths:
|
122
122
|
- lib
|
123
123
|
required_ruby_version: !ruby/object:Gem::Requirement
|
124
124
|
requirements:
|
125
|
-
- -
|
125
|
+
- - ">="
|
126
126
|
- !ruby/object:Gem::Version
|
127
127
|
version: '0'
|
128
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
|
-
- -
|
130
|
+
- - ">="
|
131
131
|
- !ruby/object:Gem::Version
|
132
132
|
version: '0'
|
133
133
|
requirements: []
|
134
134
|
rubyforge_project:
|
135
|
-
rubygems_version: 2.
|
135
|
+
rubygems_version: 2.6.8
|
136
136
|
signing_key:
|
137
137
|
specification_version: 4
|
138
138
|
summary: ruby2ruby provides a means of generating pure ruby code easily from RubyParser
|
metadata.gz.sig
CHANGED
Binary file
|