ruby2js 4.2.1 → 4.2.2

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: 8d723e9a782365d2969837ecd087655b127e0750884ae407282ab55986c4b8d3
4
- data.tar.gz: 6823e27e0b0786f90a1920255a5abe20cf9850c547a0e765d25dcc87aa5ce216
3
+ metadata.gz: 0ce807defe8cfd9921c4696cadb5081fff15af23ed029bbd2ed490617f88b76f
4
+ data.tar.gz: f2372abc0b0bdfa2af796d952a4c4987abad12d13595cb3fad85435367f0e690
5
5
  SHA512:
6
- metadata.gz: 5ff0eae448b2a3f671b04708b69f36a03dbe0c0d51d5b661f224b68d7acc98d0489da2de6050739e5ce59d9f298763a7b11235573e408d6d4a8dab6665dbd5e2
7
- data.tar.gz: e7301a5e3d5ccbc970fb034123791b947490b38c1727fa0de19f4f23b5866cc354422fc2a67654f45854564a0b0c9467d1067fb5d6f3d02bdfa6a2afa167e0f7
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?
@@ -2,7 +2,7 @@ module Ruby2JS
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 4
4
4
  MINOR = 2
5
- TINY = 1
5
+ TINY = 2
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: 4.2.1
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-11-13 00:00:00.000000000 Z
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.4
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.