ruby2js 3.3.3 → 3.3.4

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: a14485c0400fde35f0734d3e237f2b2d7fdda41377c9d26aeede802634a619e4
4
- data.tar.gz: 3f27f9ac6e92ab7a67823361dfea1b42b09c9dd405dfd7855e278114b3dfccfa
3
+ metadata.gz: cbbd02345fff681ac3c1e611c58256c5c3856daaed4d977bc5bc483f14394601
4
+ data.tar.gz: 849a7bd34c2e8da7cb8fdc508b2ae8139c8c8d2cde85314e6f00226001d415c9
5
5
  SHA512:
6
- metadata.gz: '0953480e1e37ebf92fd62af8a55ef77c203c42b2a4ca2880d623a573feadc5b294319cac53f48f36dc5564f4420425cd238dccf3b4cb2a07aab31b7c474cbb9a'
7
- data.tar.gz: 600d4fcd56f5da3144a3f48d872bfdd9293e3de233b47b6b3fb5473a4424e1d4db55b59fef9a59f96df2ba82978dea52b6cb0c070929867a89ce2fa0ea170291
6
+ metadata.gz: e6ba76328764be80c07f4a79312b2d2b3f2095905705549db5af68612945699267909cfcd060c47409dc9daa78939285d8953de93b21f67ea406e4f7aa3a364d
7
+ data.tar.gz: 0b48f4bbdf1e989a69da07feded1841d088388c49b789dfd9c99db112ff6da9e3b2c79a49e36123c2cc9f49c67899dd7bcd321cd6f62ddd23e89f93b11f76a0b
@@ -99,7 +99,10 @@ module Ruby2JS
99
99
  # use fat arrow syntax if block contains a reference to 'this'
100
100
  if anonfn
101
101
  walk = proc do |ast|
102
- anonfn = false if ast == s(:send, nil, :this)
102
+ if ast == s(:self) or ast == s(:send, nil, :this)
103
+ anonfn = false
104
+ end
105
+
103
106
  ast.children.each do |child|
104
107
  walk[child] if child.is_a? Parser::AST::Node
105
108
  end
@@ -2,7 +2,7 @@ module Ruby2JS
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 3
5
- TINY = 3
5
+ TINY = 4
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
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: 3.3.3
4
+ version: 3.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Ruby