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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79e49d9decdc351797ffa745dcf061e5b8459220
4
- data.tar.gz: 2185f836dfd3ef45b6e6dded9d972f5eb9305c1e
3
+ metadata.gz: cf2d8e7dd8a01998e41d419eca3fdf1c37f596ed
4
+ data.tar.gz: '018be6424d191987b685162c9c8a9328d6375650'
5
5
  SHA512:
6
- metadata.gz: e99ee1f1b99d9d6aa7d635cc50f436743fb43a9fc76be5c10b7a31ddb55fe6b4909aeade802473a0312db7d2150b112dce967cbad18c8860a9ec537af13fd9de
7
- data.tar.gz: ee5b1422ff8b09c8de8f953c11d42a94f18894570e2b6883032376f22597bd4b1f3eba79bdd81df02b7288b51ee41e1d334044bf18924a3996be9e558e124950
6
+ metadata.gz: 7da7b8a123718cb0609a34076fa02865561f7b56a4f394c1f8919125c8d6a79ebccc65af70c4429db55783a000494f6ff6b5fbd24ffb1dd1cc2981aaaae87bda
7
+ data.tar.gz: 0acc39d55555d57484e8c73ec824d40ed8b17ef5881f5a78511228bcdd74b07e4e9522bf1a6d05b52adb8fb21d06f8d7f21435d2c875e81c9343d92010a220f6
@@ -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], *process_all(method.children[3..-1])))))
362
+ method.children[2],
363
+ s(:autoreturn, *process_all(method.children[3..-1]))))))
371
364
  end
372
365
 
373
366
  @comments[fn] = @comments[method]
@@ -2,7 +2,7 @@ module Ruby2JS
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 2
4
4
  MINOR = 1
5
- TINY = 23
5
+ TINY = 24
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: 2.1.23
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.14
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.