dao-gateway-active_record 1.5.2 → 1.6.1

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: 842cac1ec522866816bc26c0114bdebd033cea9f
4
- data.tar.gz: c82c4c40072268a3bb78923a2853db93e6ec1904
3
+ metadata.gz: 2a4da3192ac8b78719f44841151112f41bb69d63
4
+ data.tar.gz: c33e98ebdcd952ad15d55d17e6fee49bf94c7a81
5
5
  SHA512:
6
- metadata.gz: 4b1c1ff11c26d574dfb11a96e9311c29e04c7afe321a2539f1b93e9232383ea09763f443c42f399b37df0714389ac671399ac5ff6c1cb9111646abe5e54a96eb
7
- data.tar.gz: 59470195a5ad8fce70eb547864d074574eada255e317606b74b76a3a4f0c3d168edc98d0198460068cfbc730f662eb945bc5709d9194d9b17f3778c77eea13c6
6
+ metadata.gz: 12c10f4074ab9b4eae7956ad58b2549270fd1c8b8e64848496ea0144778280e53d884ff0b3f01d07fbb9732a707824d62017d0d1182df94753128fac4acb0e0b
7
+ data.tar.gz: 46cda09320e427df093f2229d840a739c8deb232c73d702664b0e0e453c9eedb869335bd969e93b41636cb170cf8aed6612b2a2c30272d0cbbfdfcd16851204b
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.required_ruby_version = '>= 2.2.2'
22
22
 
23
- spec.add_dependency 'dao-gateway', '~> 1.5'
23
+ spec.add_dependency 'dao-gateway', '>= 1.6.1'
24
24
  spec.add_dependency 'activerecord', '>= 4.2'
25
25
  spec.add_dependency 'activesupport', '>= 4.2'
26
26
 
@@ -19,6 +19,8 @@ module Dao
19
19
  raise Dao::Gateway::InvalidRecord.new(record.errors.to_hash)
20
20
  rescue ::ActiveRecord::RecordNotFound => e
21
21
  raise Dao::Gateway::RecordNotFound, e.message
22
+ rescue ::ActiveRecord::RecordNotUnique => e
23
+ raise Dao::Gateway::RecordNotUnique, e.message
22
24
  rescue Exception => e
23
25
  rescue_with_handler(e) || raise
24
26
  end
@@ -1,7 +1,7 @@
1
1
  module Dao
2
2
  module Gateway
3
3
  module ActiveRecord
4
- VERSION = '1.5.2'
4
+ VERSION = '1.6.1'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dao-gateway-active_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - llxff
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-03-20 00:00:00.000000000 Z
12
+ date: 2017-08-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dao-gateway
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '1.5'
20
+ version: 1.6.1
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: '1.5'
27
+ version: 1.6.1
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: activerecord
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  version: '0'
181
181
  requirements: []
182
182
  rubyforge_project:
183
- rubygems_version: 2.5.1
183
+ rubygems_version: 2.6.12
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: ActiveRecord gateway for dao-repository