ocean-rails 1.22.0 → 1.22.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: 0863495cb9e8b69a7d6c5bd8385bd1652f13d9a1
4
- data.tar.gz: da30870c277cfb5ad6709dfb89a89bbdc6d37980
3
+ metadata.gz: c3a42a43e7f34158de4bfb09d4f2d90c81d44eb0
4
+ data.tar.gz: 69db544e332db4166ae928f6c9ceccb65e841e8e
5
5
  SHA512:
6
- metadata.gz: f1d51931c6932ab99fa294c5c6fcc0a427232707fbae00a63d558de119c2c3df8869626e2eb83c41b83f6553486214ba4add13aa483e5f8e65b1642e1c0c09a1
7
- data.tar.gz: 1800dea3ebee9e095ab9461d0a565878559b6407c8c028f9f5b952dadb960bb820cacdfafe51eb38c2deec406e035d5cb1331a1233b4a9a691492f29ba3f5510
6
+ metadata.gz: 4caa4fca1975ebd2d6fc93c58e174694e3616943718ad48db410ead18bb3fd0f73b45c4612abd18264e3e5f2818b1da09f876e9271f9c2ce23026e1dbcd4646a
7
+ data.tar.gz: c955925c5de020c0e58b3a723794f597f0e981aec00d3c6fcb3b7f2b59e252bb5c5334616cf6f8ddea84c85acb8ac066df81680f8962766c14eceea091262042
@@ -21,12 +21,12 @@ module Ocean
21
21
  if defined? ActiveRecord
22
22
  rescue_from ActiveRecord::RecordNotUnique,
23
23
  ActiveRecord::StatementInvalid,
24
- OceanDynamo::RecordNotSaved do |x|
24
+ OceanDynamo::RecordNotUnique do |x|
25
25
  render_api_error 422, "Resource not unique"
26
26
  end
27
27
 
28
28
  rescue_from ActiveRecord::StaleObjectError,
29
- OceanDynamo::RecordInConflict do |x|
29
+ OceanDynamo::StaleObjectError do |x|
30
30
  render_api_error 409, "Stale #{x.record.class.name}"
31
31
  end
32
32
 
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "1.22.0"
2
+ VERSION = "1.22.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.0
4
+ version: 1.22.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-07 00:00:00.000000000 Z
11
+ date: 2013-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday