mulang-ruby 6.0.0 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mulang/ruby.rb +1 -1
- data/lib/mulang/ruby/ast_processor.rb +10 -2
- data/lib/mulang/ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4c6d1ce223e3d229c5e4c7f3483fcd81e87548515c7edd2689859d257594078
|
4
|
+
data.tar.gz: 1771c2958eff5b7a1afb06adee2cf1ec005fc20c42ee91841bce8a566f773dc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e742ffb822e379a604761d329027bca396baf1176d9ad65cb898df3a875f424a97fb2c3a044de64316c95375238ac20cdd03823787fd5a789e8075fc34a17b54
|
7
|
+
data.tar.gz: b5a91310d27d1eba544437b54aaef7e6f9218b49c96e522c70e5e74d18880c56029d04fbfd8e78db250bbc281108a599c8b5e9068df7b73586a8f897d48ce998
|
data/lib/mulang/ruby.rb
CHANGED
@@ -23,7 +23,11 @@ module Mulang::Ruby
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def on_begin(node)
|
26
|
-
|
26
|
+
if node.children.size == 1 && node.children[0].nil?
|
27
|
+
none # ruby < 2.6 only
|
28
|
+
else
|
29
|
+
sequence(*process_all(node))
|
30
|
+
end
|
27
31
|
end
|
28
32
|
|
29
33
|
def on_rescue(node)
|
@@ -148,7 +152,11 @@ module Mulang::Ruby
|
|
148
152
|
|
149
153
|
def on_arg(node)
|
150
154
|
name, _ = *node
|
151
|
-
|
155
|
+
if name.is_a? Parser::AST::Node
|
156
|
+
process name
|
157
|
+
else
|
158
|
+
ms :VariablePattern, name
|
159
|
+
end
|
152
160
|
end
|
153
161
|
|
154
162
|
def on_for(node)
|
data/lib/mulang/ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mulang-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Leonardo Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|