torque-postgresql 0.2.10 → 0.2.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/torque/postgresql/attributes/enum.rb +2 -2
- data/lib/torque/postgresql/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e00cbde90c88cbb47a24042b6079f36bb4c28bf4
|
4
|
+
data.tar.gz: 004dfeb7ada4542c0323103a3efd26ac50a3489b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6534b55630fd54a816ad371eac9bc2a6efa4f6461fb99bcdd3445aa9dd2a3f33a06b51eb712053334dff34e09be396389949b42083703f0daa785e61406f9fd
|
7
|
+
data.tar.gz: d4929ffb484e88855558cc6042f50fbf6e7dfa0de0c840add59a432cc5ec82fea0235b4adedaf24ebcd606c5a0dd393b4802e95f082c124ba04d597c2437953d
|
@@ -222,12 +222,12 @@ module Torque
|
|
222
222
|
|
223
223
|
# Create the methods related to the attribute to handle the enum type
|
224
224
|
TypeMap.register_type Adapter::OID::Enum do |subtype, attribute, initial = false, options = nil|
|
225
|
-
|
225
|
+
break if initial && !Torque::PostgreSQL.config.enum.initializer
|
226
226
|
options = {} if options.nil?
|
227
227
|
|
228
228
|
# Generate methods on self class
|
229
229
|
builder = Builder::Enum.new(self, attribute, subtype, initial, options)
|
230
|
-
|
230
|
+
break if builder.conflicting?
|
231
231
|
builder.build
|
232
232
|
|
233
233
|
# Mark the enum as defined
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: torque-postgresql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Silva
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|