activerecord-rescue_from_duplicate 0.1.4 → 0.1.5

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
  SHA256:
3
- metadata.gz: f5f7eaa93b0b20c8fc29f1d4728f1d351a73cc09bb87ce89acd9dfb63d1c7d3a
4
- data.tar.gz: fab39632f4acf9163fed49ff102245fdd89255878fe26493e031e83b44d81639
3
+ metadata.gz: 5a11b83416f44cb9784f4f3553af1a37c5aa64faed10362c9835aebc4fbcf674
4
+ data.tar.gz: eee8395cdf66b5a12f558d54426e39107a9035befa8e2a85f41f81244deda7a7
5
5
  SHA512:
6
- metadata.gz: a94279a803e5f6294fe7e5fc6ac23d3d24a47b4ed04683c1b980ed5ba74946339dd13a27b5059bac1d7a5d9a5f752cd17b4ce88934fe5c6a2d47a73aeee38520
7
- data.tar.gz: 05a94c7db56f45477f18693d2b27ecf1a7bfc09446d667e0e9aae69db35bf23235b27ff35ee47a300f0fad750c5e4ec225c59bcf7e42ce49d4d0450920d1a5a6
6
+ metadata.gz: 4f3110c1c4e9dbaa7b3b66a66110f9655ebc32946493903904ee8ed1f373d6a8239549036cdb84476f198d20527634a9390560ec098ce48000823c93d10d3629
7
+ data.tar.gz: ab2b88cd0d9b117a70003d0666eb4e81c3c4834f0af19e28d59bc068c0f30776d2266d975561dbd0e69c77c6945861f73776ecc447990ed9cb0452988ea0651f
@@ -69,7 +69,6 @@ module RescueFromDuplicate::ActiveRecord
69
69
  def sqlite3_exception_columns(exception)
70
70
  extract_columns(exception.message[/columns? (.*) (?:is|are) not unique/, 1]) ||
71
71
  extract_columns(exception.message[/UNIQUE constraint failed: ([^:]*)\:?/, 1])
72
-
73
72
  end
74
73
 
75
74
  def extract_columns(columns_string)
@@ -1,5 +1,5 @@
1
1
  module Activerecord
2
2
  module RescueFromDuplicate
3
- VERSION = '0.1.4'
3
+ VERSION = '0.1.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-rescue_from_duplicate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Malette
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-22 00:00:00.000000000 Z
11
+ date: 2020-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord