ruby2js 4.2.1 → 4.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ruby2js/filter/functions.rb +2 -2
- data/lib/ruby2js/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0ce807defe8cfd9921c4696cadb5081fff15af23ed029bbd2ed490617f88b76f
|
|
4
|
+
data.tar.gz: f2372abc0b0bdfa2af796d952a4c4987abad12d13595cb3fad85435367f0e690
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 500017171aa08ac86156367f21f5059d39201b93d0d8c15157e82f85d9e729a8d9fdae10fbb5778ac4c7055ec7c8e88de978567f6d9cf8a7d3723da67662913e
|
|
7
|
+
data.tar.gz: 02621f8a80f5857c9a2537d2824c11f31e692ceea2df782b018786bd3415abeb08c62b62d5ce2be98ce713d164998298481f2ffafc9aa2b71ea18a45e4ce2e10
|
|
@@ -506,10 +506,10 @@ module Ruby2JS
|
|
|
506
506
|
s(:regexp, s(:str, '\A\s+') , s(:regopt)), s(:str, '')])
|
|
507
507
|
end
|
|
508
508
|
|
|
509
|
-
elsif method == :index
|
|
509
|
+
elsif method == :index and node.is_method?
|
|
510
510
|
process node.updated(nil, [target, :indexOf, *args])
|
|
511
511
|
|
|
512
|
-
elsif method == :rindex
|
|
512
|
+
elsif method == :rindex and node.is_method?
|
|
513
513
|
process node.updated(nil, [target, :lastIndexOf, *args])
|
|
514
514
|
|
|
515
515
|
elsif method == :class and args.length==0 and not node.is_method?
|
data/lib/ruby2js/version.rb
CHANGED
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: 4.2.
|
|
4
|
+
version: 4.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sam Ruby
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2021-
|
|
12
|
+
date: 2021-12-07 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: parser
|
|
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
194
194
|
- !ruby/object:Gem::Version
|
|
195
195
|
version: '0'
|
|
196
196
|
requirements: []
|
|
197
|
-
rubygems_version: 3.1.
|
|
197
|
+
rubygems_version: 3.1.6
|
|
198
198
|
signing_key:
|
|
199
199
|
specification_version: 4
|
|
200
200
|
summary: Minimal yet extensible Ruby to JavaScript conversion.
|