lookup_by 0.10.5 → 0.10.6

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: db2d09ac4154fec2fa6e8936e8607569637ddf80
4
- data.tar.gz: b52e31b9f71e3a42c9efd2e4a41060aa29f21736
3
+ metadata.gz: 733db5812641f61aedee288b13938b411ca1fe8f
4
+ data.tar.gz: 1ef219c1cf241bb0dbf342160f13f70c472f43b6
5
5
  SHA512:
6
- metadata.gz: b902dc71e0be17d094a2f26cd769aeb4399726f851cf612ac821ca81ec37bc7c62c0e37e6c5f653ad7748cbf5bde86952be3b7eac6c3798c3d2a63be0ad3eaf5
7
- data.tar.gz: 9080b08599655ee9cc4cfdc2421c8d305f1757f1af5a0dbbcae529f04468060d9fd1b8020c4290840c1c6998330cfc0154a8c4540beece06ec9cca36bc48a5d3
6
+ metadata.gz: a1e2d836bdff533ff4563530c46c6d1532f610cdcf41c099faa9c4e209c14db99990dcb12617062745f35101520ff41639e0c6efa9b72ac8546c7aa80d5cdf0d
7
+ data.tar.gz: 00be839049273eead6d1be21855d3753e865bf1afad15e207427a12f82043825548bfd15e56dbe2cc8ae00477ec9b063fe530d30f2b22ffd7da5e091f6e8b1b5
@@ -221,7 +221,7 @@ module LookupBy
221
221
  @klass.transaction(requires_new: true) do
222
222
  @klass.create(column => value)
223
223
  end
224
- rescue ActiveRecord::RecordNotUnique
224
+ rescue ActiveRecord::RecordNotUnique, PG::UniqueViolation
225
225
  db_read(value)
226
226
  end
227
227
 
@@ -1,3 +1,3 @@
1
1
  module LookupBy
2
- VERSION = "0.10.5"
2
+ VERSION = "0.10.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lookup_by
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.5
4
+ version: 0.10.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Peterson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-20 00:00:00.000000000 Z
11
+ date: 2015-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord