rubinius-melbourne 2.0.1.0 → 2.1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +2 -9
- data/Gemfile +0 -4
- data/Rakefile +26 -19
- data/ext/rubinius/melbourne/extconf.rb +4 -3
- data/ext/rubinius/melbourne/grammar.cpp +2 -2
- data/ext/rubinius/melbourne/grammar.y +2 -2
- data/ext/rubinius/melbourne/melbourne.cpp +4 -5
- data/lib/rubinius/melbourne/version.rb +2 -2
- data/lib/rubinius/melbourne.rb +1 -21
- data/rubinius-melbourne.gemspec +6 -3
- data/spec/alias_spec.rb +13 -18
- data/spec/and_spec.rb +6 -12
- data/spec/array_spec.rb +28 -54
- data/spec/attrasgn_spec.rb +60 -85
- data/spec/back_ref_spec.rb +6 -8
- data/spec/call_spec.rb +137 -225
- data/spec/case_spec.rb +94 -112
- data/spec/cdecl_spec.rb +16 -28
- data/spec/class_spec.rb +28 -40
- data/spec/colon2_spec.rb +2 -4
- data/spec/colon3_spec.rb +2 -4
- data/spec/const_spec.rb +2 -4
- data/spec/custom/runner/relates.rb +4 -0
- data/spec/cvar_spec.rb +6 -12
- data/spec/cvasgn_spec.rb +20 -15
- data/spec/defined_spec.rb +57 -55
- data/spec/defn_spec.rb +218 -280
- data/spec/defs_spec.rb +30 -38
- data/spec/dot2_spec.rb +2 -4
- data/spec/dot3_spec.rb +2 -4
- data/spec/dregx_spec.rb +20 -34
- data/spec/dstr_spec.rb +87 -111
- data/spec/dsym_spec.rb +5 -7
- data/spec/dxstr_spec.rb +2 -4
- data/spec/ensure_spec.rb +32 -40
- data/spec/false_spec.rb +2 -4
- data/spec/flip2_spec.rb +22 -26
- data/spec/flip3_spec.rb +15 -17
- data/spec/for_spec.rb +25 -23
- data/spec/gasgn_spec.rb +4 -8
- data/spec/gvar_spec.rb +8 -16
- data/spec/hash_spec.rb +14 -18
- data/spec/iasgn_spec.rb +8 -14
- data/spec/if_spec.rb +50 -80
- data/spec/iter_spec.rb +328 -402
- data/spec/lasgn_spec.rb +143 -200
- data/spec/lit_spec.rb +20 -40
- data/spec/masgn_spec.rb +278 -309
- data/spec/match2_spec.rb +6 -10
- data/spec/match3_spec.rb +9 -13
- data/spec/match_spec.rb +2 -4
- data/spec/module_spec.rb +12 -16
- data/spec/nil_spec.rb +2 -4
- data/spec/not_spec.rb +6 -8
- data/spec/nth_ref_spec.rb +2 -4
- data/spec/op_asgn_spec.rb +118 -158
- data/spec/or_spec.rb +18 -24
- data/spec/postexe_spec.rb +2 -4
- data/spec/regex_spec.rb +11 -19
- data/spec/rescue_spec.rb +135 -143
- data/spec/return_spec.rb +19 -36
- data/spec/sclass_spec.rb +26 -25
- data/spec/spec_helper.rb +9 -0
- data/spec/str_spec.rb +25 -43
- data/spec/super_spec.rb +31 -49
- data/spec/true_spec.rb +2 -4
- data/spec/undef_spec.rb +38 -53
- data/spec/until_spec.rb +13 -105
- data/spec/valias_spec.rb +2 -4
- data/spec/while_spec.rb +35 -117
- data/spec/xstr_spec.rb +2 -4
- data/spec/yield_spec.rb +22 -42
- data/spec/zsuper_spec.rb +8 -16
- metadata +64 -22
- data/spec/cvdecl_spec.rb +0 -12
data/spec/zsuper_spec.rb
CHANGED
@@ -1,45 +1,37 @@
|
|
1
1
|
describe "A Zsuper node" do
|
2
|
-
|
2
|
+
parse <<-ruby do
|
3
3
|
def x
|
4
4
|
super
|
5
5
|
end
|
6
6
|
ruby
|
7
7
|
|
8
|
-
|
9
|
-
[:defn, :x, [:args], [:scope, [:block, [:zsuper]]]]
|
10
|
-
end
|
8
|
+
[:defn, :x, [:args], [:scope, [:block, [:zsuper]]]]
|
11
9
|
end
|
12
10
|
|
13
|
-
|
11
|
+
parse <<-ruby do
|
14
12
|
def x(a)
|
15
13
|
super
|
16
14
|
end
|
17
15
|
ruby
|
18
16
|
|
19
|
-
|
20
|
-
[:defn, :x, [:args, :a], [:scope, [:block, [:zsuper]]]]
|
21
|
-
end
|
17
|
+
[:defn, :x, [:args, :a], [:scope, [:block, [:zsuper]]]]
|
22
18
|
end
|
23
19
|
|
24
|
-
|
20
|
+
parse <<-ruby do
|
25
21
|
def x(&block)
|
26
22
|
super
|
27
23
|
end
|
28
24
|
ruby
|
29
25
|
|
30
|
-
|
31
|
-
[:defn, :x, [:args, :"&block"], [:scope, [:block, [:zsuper]]]]
|
32
|
-
end
|
26
|
+
[:defn, :x, [:args, :"&block"], [:scope, [:block, [:zsuper]]]]
|
33
27
|
end
|
34
28
|
|
35
|
-
|
29
|
+
parse <<-ruby do
|
36
30
|
def x(a, *as)
|
37
31
|
super
|
38
32
|
end
|
39
33
|
ruby
|
40
34
|
|
41
|
-
|
42
|
-
[:defn, :x, [:args, :a, :"*as"], [:scope, [:block, [:zsuper]]]]
|
43
|
-
end
|
35
|
+
[:defn, :x, [:args, :a, :"*as"], [:scope, [:block, [:zsuper]]]]
|
44
36
|
end
|
45
37
|
end
|
metadata
CHANGED
@@ -1,83 +1,125 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubinius-melbourne
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Shirai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubinius-toolset
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: rubinius-
|
28
|
+
name: rubinius-processor
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubinius-compiler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubinius-ast
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|
30
58
|
requirements:
|
31
|
-
- - ~>
|
59
|
+
- - "~>"
|
32
60
|
- !ruby/object:Gem::Version
|
33
61
|
version: '2.0'
|
34
62
|
type: :development
|
35
63
|
prerelease: false
|
36
64
|
version_requirements: !ruby/object:Gem::Requirement
|
37
65
|
requirements:
|
38
|
-
- - ~>
|
66
|
+
- - "~>"
|
39
67
|
- !ruby/object:Gem::Version
|
40
68
|
version: '2.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubinius-bridge
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.0'
|
41
83
|
- !ruby/object:Gem::Dependency
|
42
84
|
name: redcard
|
43
85
|
requirement: !ruby/object:Gem::Requirement
|
44
86
|
requirements:
|
45
|
-
- - ~>
|
87
|
+
- - "~>"
|
46
88
|
- !ruby/object:Gem::Version
|
47
89
|
version: '1.0'
|
48
90
|
type: :development
|
49
91
|
prerelease: false
|
50
92
|
version_requirements: !ruby/object:Gem::Requirement
|
51
93
|
requirements:
|
52
|
-
- - ~>
|
94
|
+
- - "~>"
|
53
95
|
- !ruby/object:Gem::Version
|
54
96
|
version: '1.0'
|
55
97
|
- !ruby/object:Gem::Dependency
|
56
98
|
name: mspec
|
57
99
|
requirement: !ruby/object:Gem::Requirement
|
58
100
|
requirements:
|
59
|
-
- - ~>
|
101
|
+
- - "~>"
|
60
102
|
- !ruby/object:Gem::Version
|
61
103
|
version: '1.5'
|
62
104
|
type: :development
|
63
105
|
prerelease: false
|
64
106
|
version_requirements: !ruby/object:Gem::Requirement
|
65
107
|
requirements:
|
66
|
-
- - ~>
|
108
|
+
- - "~>"
|
67
109
|
- !ruby/object:Gem::Version
|
68
110
|
version: '1.5'
|
69
111
|
- !ruby/object:Gem::Dependency
|
70
112
|
name: rake
|
71
113
|
requirement: !ruby/object:Gem::Requirement
|
72
114
|
requirements:
|
73
|
-
- - ~>
|
115
|
+
- - "~>"
|
74
116
|
- !ruby/object:Gem::Version
|
75
117
|
version: '10.0'
|
76
118
|
type: :development
|
77
119
|
prerelease: false
|
78
120
|
version_requirements: !ruby/object:Gem::Requirement
|
79
121
|
requirements:
|
80
|
-
- - ~>
|
122
|
+
- - "~>"
|
81
123
|
- !ruby/object:Gem::Version
|
82
124
|
version: '10.0'
|
83
125
|
description: Ruby parser extracted from MRI.
|
@@ -88,8 +130,8 @@ extensions:
|
|
88
130
|
- ext/rubinius/melbourne/extconf.rb
|
89
131
|
extra_rdoc_files: []
|
90
132
|
files:
|
91
|
-
- .gitignore
|
92
|
-
- .travis.yml
|
133
|
+
- ".gitignore"
|
134
|
+
- ".travis.yml"
|
93
135
|
- Gemfile
|
94
136
|
- LICENSE
|
95
137
|
- README.md
|
@@ -133,7 +175,6 @@ files:
|
|
133
175
|
- spec/custom/runner/relates.rb
|
134
176
|
- spec/cvar_spec.rb
|
135
177
|
- spec/cvasgn_spec.rb
|
136
|
-
- spec/cvdecl_spec.rb
|
137
178
|
- spec/default.mspec
|
138
179
|
- spec/defined_spec.rb
|
139
180
|
- spec/defn_spec.rb
|
@@ -172,6 +213,7 @@ files:
|
|
172
213
|
- spec/rescue_spec.rb
|
173
214
|
- spec/return_spec.rb
|
174
215
|
- spec/sclass_spec.rb
|
216
|
+
- spec/spec_helper.rb
|
175
217
|
- spec/str_spec.rb
|
176
218
|
- spec/super_spec.rb
|
177
219
|
- spec/true_spec.rb
|
@@ -192,17 +234,17 @@ require_paths:
|
|
192
234
|
- lib
|
193
235
|
required_ruby_version: !ruby/object:Gem::Requirement
|
194
236
|
requirements:
|
195
|
-
- -
|
237
|
+
- - ">="
|
196
238
|
- !ruby/object:Gem::Version
|
197
239
|
version: '0'
|
198
240
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
199
241
|
requirements:
|
200
|
-
- -
|
242
|
+
- - ">="
|
201
243
|
- !ruby/object:Gem::Version
|
202
244
|
version: '0'
|
203
245
|
requirements: []
|
204
246
|
rubyforge_project:
|
205
|
-
rubygems_version: 2.
|
247
|
+
rubygems_version: 2.2.2
|
206
248
|
signing_key:
|
207
249
|
specification_version: 4
|
208
250
|
summary: Rubinius Ruby Parser.
|
@@ -223,7 +265,6 @@ test_files:
|
|
223
265
|
- spec/custom/runner/relates.rb
|
224
266
|
- spec/cvar_spec.rb
|
225
267
|
- spec/cvasgn_spec.rb
|
226
|
-
- spec/cvdecl_spec.rb
|
227
268
|
- spec/default.mspec
|
228
269
|
- spec/defined_spec.rb
|
229
270
|
- spec/defn_spec.rb
|
@@ -262,6 +303,7 @@ test_files:
|
|
262
303
|
- spec/rescue_spec.rb
|
263
304
|
- spec/return_spec.rb
|
264
305
|
- spec/sclass_spec.rb
|
306
|
+
- spec/spec_helper.rb
|
265
307
|
- spec/str_spec.rb
|
266
308
|
- spec/super_spec.rb
|
267
309
|
- spec/true_spec.rb
|