sql_enum 0.1.5 → 0.1.6

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: 0fb43c9f6af401c6592ea8c7b71cdd1c08587c75
4
- data.tar.gz: 4cdd332667395f437b7325bd311a1bc9ac5786f0
3
+ metadata.gz: 843fd8b612bdd575ae54a36a1b5e162e8155bc4c
4
+ data.tar.gz: 33299f79834daab120f811196c4e46032141a28b
5
5
  SHA512:
6
- metadata.gz: a0d6ace4cf5f81d6998036cc4bdc596dda1e000483251bc87a2439f52f6a0c1b3169758d8d8211a3e849342a5125b55d8c5ee6b0d91a4803baca4e536ce8673a
7
- data.tar.gz: b3273c2582c348dd399917baad10d445b7ea218dd37b95e64f19cef96d20dbb18176aeaac02dcd44107c8a143ca40459855f67df3a1641cf3a94385a8542415a
6
+ metadata.gz: ba6150c41c68081151c46f11e44a39f20302fe96f094037b848e3ff0c5236f281f5de440612a1c190a7edc670711677351912b0d03fb06324782dea845f543cb
7
+ data.tar.gz: ce4685e49fb99fa77a8964d271011a26ff37e0d3fb692cf7a73c81f313574e728f71cee675c9f83209bb6bf591d414ba867839f227ac619476b7e54f4413732c
data/lib/array.rb CHANGED
@@ -1,5 +1,5 @@
1
- class Array
1
+ Array.class_eval do
2
2
  def fetch(key, default)
3
- key if self.include?(key)
3
+ key if self.include?(key&.to_s)
4
4
  end
5
5
  end
@@ -1,3 +1,3 @@
1
1
  module SqlEnum
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sql_enum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fletcher Fowler