ruby2js 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby2js.rb +1 -0
- data/lib/ruby2js/converter/for.rb +1 -1
- data/lib/ruby2js/filter.rb +1 -0
- data/lib/ruby2js/filter/vue.rb +5 -2
- data/lib/ruby2js/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: c818d7a2fb520e13fea6b323e1c0b0fc1feb696d4fc4acdd2eff72a5de29ca22
|
4
|
+
data.tar.gz: 161e0c26b4f648c85522dc6f54d5802b3feae071427790f20df9354ef742a49c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 575f68cebfd725c1d43b3eb0ee2aea8174b867b42839b5c1ec237999fdf68a2be6251a4130fb6a4a438597c55e874c41448ebb745eb60e311713e49c9bc4cb0c
|
7
|
+
data.tar.gz: a8ea6eb2cdbae3a2ac24cad9101a6496a7b2f3d7865cbda1535bfb6d034694cd618d5c3b843db49267e29cb87f7acbc1bd6552da17bfb4115a0a4f6f31151050
|
data/lib/ruby2js.rb
CHANGED
@@ -14,7 +14,7 @@ module Ruby2JS
|
|
14
14
|
vars = @vars.dup
|
15
15
|
next_token, @next_token = @next_token, :continue
|
16
16
|
put "for (#{es2015 ? 'let' : 'var'} "; parse var
|
17
|
-
if [:irange, :erange].include? expression.type
|
17
|
+
if expression and [:irange, :erange].include? expression.type
|
18
18
|
put ' = '; parse expression.children.first; put '; '; parse var
|
19
19
|
(expression.type == :erange ? put(' < ') : put(' <= '))
|
20
20
|
parse expression.children.last; put '; '; parse var; put '++'
|
data/lib/ruby2js/filter.rb
CHANGED
data/lib/ruby2js/filter/vue.rb
CHANGED
@@ -30,7 +30,10 @@ module Ruby2JS
|
|
30
30
|
@vue_props = []
|
31
31
|
@vue_reactive = []
|
32
32
|
@vue_filter_functions = false
|
33
|
+
|
33
34
|
super
|
35
|
+
|
36
|
+
@exclude_methods << @vue_methods
|
34
37
|
end
|
35
38
|
|
36
39
|
def options=(options)
|
@@ -92,7 +95,7 @@ module Ruby2JS
|
|
92
95
|
end
|
93
96
|
|
94
97
|
@vue_inventory = vue_walk(node)
|
95
|
-
@vue_methods
|
98
|
+
@vue_methods.clear
|
96
99
|
@vue_props = []
|
97
100
|
@vue_reactive = []
|
98
101
|
|
@@ -280,7 +283,7 @@ module Ruby2JS
|
|
280
283
|
hash << s(:pair, s(:sym, :methods), s(:hash, *methods))
|
281
284
|
end
|
282
285
|
|
283
|
-
@vue_methods
|
286
|
+
@vue_methods.clear
|
284
287
|
|
285
288
|
# append setters to computed list
|
286
289
|
setters.each do |setter|
|
data/lib/ruby2js/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby2js
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Ruby
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parser
|