ruby2js 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby2js/converter/send.rb +2 -1
- data/lib/ruby2js/filter/functions.rb +3 -2
- data/lib/ruby2js/version.rb +1 -1
- data/ruby2js.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e5edb71b06e042e1f87d9e2680248470f3f1bb2
|
4
|
+
data.tar.gz: 596aa3eb654805d1dcc3f4ad7a7921ca2a439c48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab33c1be48046ea978ebfbd5c1cc0eaf982ad0c498c0c97336c22ad562e045f11a8b55070ac56652eaadc8a4590f3ae71a37b7ff133942cdcad0d9f467419ce6
|
7
|
+
data.tar.gz: c28e2fe9c0c5bafc81d21d2e18b475e0f45ec3bcf2997702063b1b1b42513d5461f728c4da2d6e126c58ccf3cf99b7b266c725928f224f92eb976c584e1a637c
|
@@ -69,7 +69,8 @@ module Ruby2JS
|
|
69
69
|
parse s(:not, receiver)
|
70
70
|
|
71
71
|
elsif method == :[]
|
72
|
-
|
72
|
+
(group_receiver ? group(receiver) : parse(receiver))
|
73
|
+
put '['; parse_all(*args, join: ', '); put ']'
|
73
74
|
|
74
75
|
elsif method == :[]=
|
75
76
|
parse receiver; put '['; parse_all(*args[0..-2], join: ', '); put '] = '
|
@@ -190,8 +190,9 @@ module Ruby2JS
|
|
190
190
|
super
|
191
191
|
|
192
192
|
elsif index.type == :regexp
|
193
|
-
process S(:send,
|
194
|
-
|
193
|
+
process S(:send,
|
194
|
+
s(:or, S(:send, target, :match, index), s(:array)),
|
195
|
+
:[], args[1] || s(:int, 0))
|
195
196
|
|
196
197
|
elsif node.children.length != 3
|
197
198
|
super
|
data/lib/ruby2js/version.rb
CHANGED
data/ruby2js.gemspec
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: ruby2js 2.1.
|
2
|
+
# stub: ruby2js 2.1.3 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "ruby2js".freeze
|
6
|
-
s.version = "2.1.
|
6
|
+
s.version = "2.1.3"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib".freeze]
|