sql_enum 0.1.13 → 0.1.14

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: ce90a2e4897fcd727d61edf003d995101a46ac2c
4
- data.tar.gz: 66bba70c732b919b3f144d21e71ba67925e40b1e
3
+ metadata.gz: 722654e79cd248cfd83f5c209c7d03d472ab91f1
4
+ data.tar.gz: 4004618dba1b0f24c6aa2936d8ae0ad2268f7634
5
5
  SHA512:
6
- metadata.gz: eb04fcc1b92f9d95b7933fbee610b6fa7a5165110dbe734e12ffb72dc023154ecbe80b27beeb8da3c636468801a68052c79337d69b68ae32b2ef2078d5a6ab54
7
- data.tar.gz: 0f0046362ce7cad3ef82a3fe28c301416d67c8e12c206bc98c0c44626c2735df53f8219ebdf1411312b19799effd6b1c6aebd603e4b9ce9012b6e4b49e66d82d
6
+ metadata.gz: 3c422d1c34187b0f732e20074c3e62a59de75fc45c30132adb3115e5362074ae7319f606c3e579dcd7e321ff4ec6a783fe1e0a48a2474003ffd6b13634f5ac79
7
+ data.tar.gz: 7ec4205ba6f6fee021fa2e406b99c11dd7c989b4fd966032c315393717941d33097fec8c3cfd6cd3377dbca3bc8cb5c1c727de98334bf3962b0dff6a792a69ba
@@ -11,7 +11,7 @@ module ActiveRecord
11
11
 
12
12
  def register_enum_type(mapping)
13
13
  mapping.register_type(%r(enum)i) do |sql_type|
14
- Type::Enum.new(limit: sql_type.scan(/\w+/).reject{|v| v == 'enum'})
14
+ Type::Enum.new(limit: sql_type.scan(/'(.*?)'/).flatten)
15
15
  end
16
16
  end
17
17
  end
@@ -1,3 +1,3 @@
1
1
  module SqlEnum
2
- VERSION = "0.1.13"
2
+ VERSION = "0.1.14"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sql_enum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fletcher Fowler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-08 00:00:00.000000000 Z
11
+ date: 2018-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord