sql_enum 0.1.3 → 0.1.5

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: 7df07c9d1ef110523da51ed7f0b2550ec1809f84
4
- data.tar.gz: efa2e03748856de6da182b2635f16e3dc276a74e
3
+ metadata.gz: 0fb43c9f6af401c6592ea8c7b71cdd1c08587c75
4
+ data.tar.gz: 4cdd332667395f437b7325bd311a1bc9ac5786f0
5
5
  SHA512:
6
- metadata.gz: 107b0da16e773d658326ba2d819e5aa684fdfdef741c7b58519c41b86ab3184a11d67d23e55c75caa8b1bb32844ecd4e238bbdb815e4fde40b04bdb456c96ca9
7
- data.tar.gz: 133795064b7aea3675a13a211243c932825fa73ddd00527240abfb21638197db6ae672ea402cbb1b1eac5c0b4eba249e6223c50bf7725c2748b36bfc21f8dae1
6
+ metadata.gz: a0d6ace4cf5f81d6998036cc4bdc596dda1e000483251bc87a2439f52f6a0c1b3169758d8d8211a3e849342a5125b55d8c5ee6b0d91a4803baca4e536ce8673a
7
+ data.tar.gz: b3273c2582c348dd399917baad10d445b7ea218dd37b95e64f19cef96d20dbb18176aeaac02dcd44107c8a143ca40459855f67df3a1641cf3a94385a8542415a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sql_enum (0.1.2)
4
+ sql_enum (0.1.4)
5
5
  activerecord (~> 5.0)
6
6
 
7
7
  GEM
data/lib/array.rb ADDED
@@ -0,0 +1,5 @@
1
+ class Array
2
+ def fetch(key, default)
3
+ key if self.include?(key)
4
+ end
5
+ end
data/lib/sql_enum.rb CHANGED
@@ -26,4 +26,5 @@ require_relative 'active_record/enum_override'
26
26
  require_relative 'active_record/connection_adapters/mysql2'
27
27
  require_relative 'active_record/connection_adapters/abstract_mysql'
28
28
  require_relative 'active_record/connection_adapters/mysql/column_methods'
29
+ require_relative 'array'
29
30
  require_relative "sql_enum/version"
@@ -1,3 +1,3 @@
1
1
  module SqlEnum
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.5"
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.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fletcher Fowler
@@ -90,6 +90,7 @@ files:
90
90
  - lib/active_record/enum/enum_type.rb
91
91
  - lib/active_record/enum_override.rb
92
92
  - lib/active_record/type/enum.rb
93
+ - lib/array.rb
93
94
  - lib/sql_enum.rb
94
95
  - lib/sql_enum/version.rb
95
96
  - sql_enum.gemspec