flipper-sequel 0.11.0 → 0.12.0

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: 73968d9831246c4a676dba3ea6114a80d4121a97
4
- data.tar.gz: b243c94caecc366bbf8f4674e6a90b949a05310a
3
+ metadata.gz: 016173f941ac673b661b1d2188320cf69c344097
4
+ data.tar.gz: 31713d450f4cc30dc870f0d4586639888f9461f7
5
5
  SHA512:
6
- metadata.gz: e52435e97cbd58fbc8834e9f21fbaa5dd48f3944abc811d5b464a77420f56121e2bb40dd7842732cba0b5e058e9c7611519b10e25ef7efd790fd0a07cd08b092
7
- data.tar.gz: 21bd95562a031719b299f3e7c1249c056001567098b976963963b3746ba3526ec4e93bd50aa9189da2ede251971516320f2106d02d1d85f819a6c24572ba41c3
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
- @gate_class.create(gate_attrs(feature, gate, thing))
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
@@ -1,3 +1,3 @@
1
1
  module Flipper
2
- VERSION = '0.11.0'.freeze
2
+ VERSION = '0.12.0'.freeze
3
3
  end
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.11.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: 2017-11-16 00:00:00.000000000 Z
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.11.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.11.0
26
+ version: 0.12.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sequel
29
29
  requirement: !ruby/object:Gem::Requirement