rubinius-ast 2.3.1 → 2.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5b8df5e4a0e342c77b1d8c6317b627516e41b3d
4
- data.tar.gz: 2b87feb14895fec496963887ea3c7c1e9f8e2c38
3
+ metadata.gz: ce309d261674f72639f17fab1746c6e70b207e43
4
+ data.tar.gz: 53ef60ff69d147a5232e6b5988eeb1ea60e189d9
5
5
  SHA512:
6
- metadata.gz: d0a970ef34cefbdae30fc2af964ddac6a79b100489b7e82219b362eb012de6985c4e176141dbcb1622770ce28077ef1211a5855a5f17cfc7fd07980c715a0bfe
7
- data.tar.gz: 82724b035d005f34d83d7f791ba75628b9ece1db99fef9e0008dd2a72dc2cc8b4d72c69aa1f521413272685836405969c0222754ddf11fde46544cfd4972d9b4
6
+ metadata.gz: 1fbd9b7c7b706657e60760162da1cce65bd2d3e9bd154a1cb20c73f42557edf6a0052edf324d8c7b35cd02efc2b4d36f7873ee023e10d23f9846886511b6d200
7
+ data.tar.gz: a9e5446be9d2bf2d40f6c55bb606750ed3b3fea0ea36d64e943f11805886a82f6eb4074292052f01f488f4e6f79596f8949952116efb9bf6d549da805be105aa
@@ -89,12 +89,8 @@ module CodeTools
89
89
  @splat = nil
90
90
  @single = nil
91
91
 
92
- if conditions.kind_of? ConcatArgs
93
- @splat = SplatWhen.new line, conditions.rest
94
- conditions = conditions.array
95
- end
96
-
97
- if conditions.kind_of? ArrayLiteral
92
+ case conditions
93
+ when ArrayLiteral
98
94
  if conditions.body.last.kind_of? When
99
95
  last = conditions.body.pop
100
96
  if last.conditions.kind_of? ArrayLiteral
@@ -111,8 +107,8 @@ module CodeTools
111
107
  else
112
108
  @conditions = conditions
113
109
  end
114
- elsif conditions.kind_of? SplatValue
115
- @splat = SplatWhen.new line, conditions.value
110
+ when SplatValue, ConcatArgs, PushArgs
111
+ @splat = SplatWhen.new line, conditions
116
112
  @conditions = nil
117
113
  else
118
114
  @conditions = conditions
@@ -1,5 +1,5 @@
1
1
  module CodeTools
2
2
  module AST
3
- VERSION = "2.3.1"
3
+ VERSION = "2.3.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubinius-ast
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Shirai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-24 00:00:00.000000000 Z
11
+ date: 2015-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -89,8 +89,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  version: '0'
90
90
  requirements: []
91
91
  rubyforge_project:
92
- rubygems_version: 2.2.2
92
+ rubygems_version: 2.4.5
93
93
  signing_key:
94
94
  specification_version: 4
95
95
  summary: An Abstract Syntax Tree for Ruby.
96
96
  test_files: []
97
+ has_rdoc: