flipper-sequel 0.11.0 → 0.12.0
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/flipper/adapters/sequel.rb +4 -2
- data/lib/flipper/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 016173f941ac673b661b1d2188320cf69c344097
|
|
4
|
+
data.tar.gz: 31713d450f4cc30dc870f0d4586639888f9461f7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7dc34df8c4bca0006c713d495d47cf04c2d68b27180180f4e41b68ba06a60d13ad4fec52972432bb973d368dfd1de0e73fbad1ac1af300d4fd8e201daf8d7cf1
|
|
7
|
+
data.tar.gz: 7bd029b9cf12ee1f5135ad96e36ed2493fdc5bf615faee23e2b8920325f137c1d1a35953867b9e43af982b96bcc290dac3a0e61b50ea9b78c450f1f1146b3b24
|
|
@@ -127,11 +127,13 @@ module Flipper
|
|
|
127
127
|
key: gate.key.to_s,
|
|
128
128
|
}
|
|
129
129
|
@gate_class.where(args).delete
|
|
130
|
-
|
|
131
130
|
@gate_class.create(gate_attrs(feature, gate, thing))
|
|
132
131
|
end
|
|
133
132
|
when :set
|
|
134
|
-
|
|
133
|
+
begin
|
|
134
|
+
@gate_class.create(gate_attrs(feature, gate, thing))
|
|
135
|
+
rescue ::Sequel::UniqueConstraintViolation
|
|
136
|
+
end
|
|
135
137
|
else
|
|
136
138
|
unsupported_data_type gate.data_type
|
|
137
139
|
end
|
data/lib/flipper/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: flipper-sequel
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.12.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John Nunemaker
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-01-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: flipper
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.
|
|
19
|
+
version: 0.12.0
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.
|
|
26
|
+
version: 0.12.0
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: sequel
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|