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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0d87e8dda198550df6b79aa5a14e033ff6180f6057998d63252a41011d04735
4
- data.tar.gz: 1869aa7759c6b40137258b3a87c0c250944940753cc5d0814a0e027bd88068dd
3
+ metadata.gz: c818d7a2fb520e13fea6b323e1c0b0fc1feb696d4fc4acdd2eff72a5de29ca22
4
+ data.tar.gz: 161e0c26b4f648c85522dc6f54d5802b3feae071427790f20df9354ef742a49c
5
5
  SHA512:
6
- metadata.gz: 75b7232fbc65271e6b200f6283f04605de370d6e38b127e6c51a481931a41076e055a3141fe643094c67e9b73988b0e7ccf576d0d6c36e3f44cbdb56face4362
7
- data.tar.gz: c60b7631d17f12cafe859cfc06e7551f3158f1d6f4643f2fd2faf12a4cbd85cb8496c453d8c43d6244e73516726251f438f964a2312fd87deb8c690dc098b208
6
+ metadata.gz: 575f68cebfd725c1d43b3eb0ee2aea8174b867b42839b5c1ec237999fdf68a2be6251a4130fb6a4a438597c55e874c41448ebb745eb60e311713e49c9bc4cb0c
7
+ data.tar.gz: a8ea6eb2cdbae3a2ac24cad9101a6496a7b2f3d7865cbda1535bfb6d034694cd618d5c3b843db49267e29cb87f7acbc1bd6552da17bfb4115a0a4f6f31151050
@@ -55,6 +55,7 @@ module Ruby2JS
55
55
  def initialize(comments)
56
56
  @comments = comments
57
57
  @ast = nil
58
+ @exclude_methods = []
58
59
  end
59
60
 
60
61
  def options=(options)
@@ -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 '++'
@@ -51,6 +51,7 @@ module Ruby2JS
51
51
  if @included
52
52
  not @included.include? method
53
53
  else
54
+ return true if @exclude_methods.flatten.include? method
54
55
  @excluded.include? method
55
56
  end
56
57
  end
@@ -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|
@@ -2,7 +2,7 @@ module Ruby2JS
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 1
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
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.0
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-04-30 00:00:00.000000000 Z
11
+ date: 2019-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser