barefoot_js 0.39.1 → 0.39.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/barefoot_js.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 24bdb8e45fcb53ec216ab90b917f359ec720e139e60f3c544df3c3f74eb7aeaf
|
|
4
|
+
data.tar.gz: 5a229b38b4633cefa504ef082900445003b454becb0312db6b7a1d0374f6c00d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a50d64e0a5b539278fac9153b34723d766d2a19afa67f378712554e0baa849561b059369c175f8495d2ac7f32dfbbc21fa55af0f4e0febb1f40496b134b67481
|
|
7
|
+
data.tar.gz: a2bd81f9711d795012cea63177b799d1f3cf618b9a60327e08b3f5ad95665a1f48f3f1aaa8d60f1471791a2a999e2965fc16b5d7d16be8343e2a23529b29f346
|
data/lib/barefoot_js.rb
CHANGED
|
@@ -885,7 +885,7 @@ module BarefootJS
|
|
|
885
885
|
when Hash
|
|
886
886
|
return collection[key] if collection.key?(key)
|
|
887
887
|
|
|
888
|
-
sym = key.
|
|
888
|
+
sym = key.to_s.to_sym
|
|
889
889
|
return collection[sym] if sym && collection.key?(sym)
|
|
890
890
|
|
|
891
891
|
str = key.to_s
|
|
@@ -902,7 +902,7 @@ module BarefootJS
|
|
|
902
902
|
case key
|
|
903
903
|
when Integer then key
|
|
904
904
|
when Numeric then (key % 1).zero? ? key.to_i : nil
|
|
905
|
-
when String then (key =~ /\A
|
|
905
|
+
when String then (key =~ /\A(?:0|[1-9]\d*)\z/ ? key.to_i : nil)
|
|
906
906
|
end
|
|
907
907
|
return nil if idx.nil?
|
|
908
908
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: barefoot_js
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.39.
|
|
4
|
+
version: 0.39.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- kobaken
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-10-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tzinfo
|