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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bffbfe0515ffc42d5a7cc62ac0c219f01efed7ca0a09867e081f87db7d60e17e
4
- data.tar.gz: b4b58bb43f77bf21979922180af6a1dbcd2b99b9400e6a67b41cea7d618e8428
3
+ metadata.gz: f4c6d1ce223e3d229c5e4c7f3483fcd81e87548515c7edd2689859d257594078
4
+ data.tar.gz: 1771c2958eff5b7a1afb06adee2cf1ec005fc20c42ee91841bce8a566f773dc1
5
5
  SHA512:
6
- metadata.gz: '0259e8d0bd2b6ae8782381eb98fa3025d461b0e7f5735547575af614bad2900b187b4dca409fa78d95554300fa2500513bbfcbf448501231008915aae7eb2b62'
7
- data.tar.gz: 3c3c1cf74dee097855440376b97a934e273523545a82a38ad1fc47778b3b8c4ed2e39333e39d2b51945fa748cb31b91c778d7f2d8d7d0e42a5c50c3ab5f3a877
6
+ metadata.gz: e742ffb822e379a604761d329027bca396baf1176d9ad65cb898df3a875f424a97fb2c3a044de64316c95375238ac20cdd03823787fd5a789e8075fc34a17b54
7
+ data.tar.gz: b5a91310d27d1eba544437b54aaef7e6f9218b49c96e522c70e5e74d18880c56029d04fbfd8e78db250bbc281108a599c8b5e9068df7b73586a8f897d48ce998
data/lib/mulang/ruby.rb CHANGED
@@ -11,7 +11,7 @@ module Mulang
11
11
  end
12
12
 
13
13
  def self.language
14
- Mulang::Language::External.new { |it| parse(it) }
14
+ Mulang::Language::External.new("Ruby") { |it| parse(it) }
15
15
  end
16
16
  end
17
17
  end
@@ -23,7 +23,11 @@ module Mulang::Ruby
23
23
  end
24
24
 
25
25
  def on_begin(node)
26
- sequence(*process_all(node))
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
- ms :VariablePattern, name
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)
@@ -1,5 +1,5 @@
1
1
  module Mulang
2
2
  module Ruby
3
- VERSION = "6.0.0"
3
+ VERSION = "6.0.1"
4
4
  end
5
5
  end
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.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-01-19 00:00:00.000000000 Z
11
+ date: 2021-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler