ruby2js 2.1.23 → 2.1.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby2js/filter/vue.rb +2 -9
- data/lib/ruby2js/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf2d8e7dd8a01998e41d419eca3fdf1c37f596ed
|
4
|
+
data.tar.gz: '018be6424d191987b685162c9c8a9328d6375650'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7da7b8a123718cb0609a34076fa02865561f7b56a4f394c1f8919125c8d6a79ebccc65af70c4429db55783a000494f6ff6b5fbd24ffb1dd1cc2981aaaae87bda
|
7
|
+
data.tar.gz: 0acc39d55555d57484e8c73ec824d40ed8b17ef5881f5a78511228bcdd74b07e4e9522bf1a6d05b52adb8fb21d06f8d7f21435d2c875e81c9343d92010a220f6
|
data/lib/ruby2js/filter/vue.rb
CHANGED
@@ -352,14 +352,6 @@ module Ruby2JS
|
|
352
352
|
then
|
353
353
|
nil
|
354
354
|
|
355
|
-
elsif
|
356
|
-
method.children.length == 4 and
|
357
|
-
Converter::EXPRESSIONS.include? method.children[3].type
|
358
|
-
then
|
359
|
-
# class property - simple
|
360
|
-
s(:send, s(:const, nil, cname), "#{method.children[1]}=",
|
361
|
-
method.children[3])
|
362
|
-
|
363
355
|
else
|
364
356
|
# class computed property
|
365
357
|
s(:send, s(:const, nil, :Object), :defineProperty,
|
@@ -367,7 +359,8 @@ module Ruby2JS
|
|
367
359
|
s(:hash, s(:pair, s(:sym, :enumerable), s(:true)),
|
368
360
|
s(:pair, s(:sym, :configurable), s(:true)),
|
369
361
|
s(:pair, s(:sym, :get), s(:block, s(:send, nil, :proc),
|
370
|
-
method.children[2],
|
362
|
+
method.children[2],
|
363
|
+
s(:autoreturn, *process_all(method.children[3..-1]))))))
|
371
364
|
end
|
372
365
|
|
373
366
|
@comments[fn] = @comments[method]
|
data/lib/ruby2js/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby2js
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Ruby
|
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
128
|
rubyforge_project:
|
129
|
-
rubygems_version: 2.6.
|
129
|
+
rubygems_version: 2.6.11
|
130
130
|
signing_key:
|
131
131
|
specification_version: 4
|
132
132
|
summary: Minimal yet extensible Ruby to JavaScript conversion.
|