dao-gateway-active_resource 1.4.0 → 1.4.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: ed658598220f92010ad395237d8a8a8c53ca7247
4
- data.tar.gz: 3229a11e36e24af7b163831d778ef2bbb2dd59bc
3
+ metadata.gz: 13674c078f6dcbd4851911abc4a8145767948957
4
+ data.tar.gz: 4a07e6e7ce3fbccbc55afb31978c1eca4aef8b2d
5
5
  SHA512:
6
- metadata.gz: c1827e842f4dcca2252ed6a61a90f937ae9d35858d0ae1c3f16d5d1738b4b3963b24fa726a6ffee4c5fef261732ffd61f1fc09f60b490d6b6fb6dda7abf5a9f2
7
- data.tar.gz: 080005eb5710bfc550fd0758898658c9ecb94314b53e7aa28b4ec65e332a0bd86fbdd13d63c8ff630829299e277a3a43b1b7c5d18f8019ae74776fef2bfb7543
6
+ metadata.gz: 18ff7d9d4e5705b3659ff799e56f224a30c09df0b07a7e0a374fcf1686eb0e7f3442539c1afb28cc6dee94d33e4c87ecfd2604e58866303af5d1b77a35a9b4b0
7
+ data.tar.gz: 28a52c01b7b89b824a56f769fb72ca4d7dd81014edab0cf6e0d6eca4c9080f7052299d0f56d89cc7f57e681cd8cefa11d38768d6ff49b82e59c24fc3411d7c45
@@ -10,6 +10,10 @@ module Dao
10
10
  domain
11
11
  rescue ::ActiveResource::ResourceInvalid
12
12
  raise Dao::Gateway::InvalidRecord.new(record.errors.to_hash)
13
+ rescue ::ActiveResource::ResourceNotFound => e
14
+ raise Dao::Gateway::RecordNotFound, e.message
15
+ rescue ::ActiveResource::ConnectionError => e
16
+ raise Dao::Gateway::BadConnection, e.to_s
13
17
  end
14
18
 
15
19
  def chain(scope, method_name, args, &block)
@@ -1,7 +1,7 @@
1
1
  module Dao
2
2
  module Gateway
3
3
  module ActiveResource
4
- VERSION = '1.4.0'
4
+ VERSION = '1.4.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_resource
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - llxff
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-09-05 00:00:00.000000000 Z
12
+ date: 2016-09-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dao-gateway