covalence 0.8.1 → 0.8.2

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: bef38dc9dd4bb1b885a740de3d38f203e52cd7d83d8a7c18c0d6076985e113ba
4
- data.tar.gz: b25e14fbc497d8eaf0d11c531fa4c2cb36f8eaf8de42173e042e1c59271946a4
3
+ metadata.gz: 20915983ec722de0caba4a9f7bfc5e2413ce8890e5b148ff79ec26e93723ab2a
4
+ data.tar.gz: 47d849adece9ecdc1ee249786b0d6fe5b15c66bcb55732f5eaff1b6fa8856353
5
5
  SHA512:
6
- metadata.gz: 04b181ce7004417edad4fca62bb50784c22ea58e8c1143e722463d6eebaba934b10752c00e957d19519d423a5e4ae0c356a378ff9e5dbdbcccc75035982bfb6a
7
- data.tar.gz: 7e7488841a004edd219646005e7d19a0dd9d105dc15f7a0f75fbc3d48660713e4054ce25a34dfe881b647170e4d5f9021b0bb5e31b2b2e056d5f6afcb55c2c7c
6
+ metadata.gz: b42f058a75021458f2aec909e5c5cd8389cffa56af40105f8a39768a8ff3416ab8adf75b552a00869bc61046eba591146ac5c5f3deefb639c391d627143ec55e
7
+ data.tar.gz: 3e2b7972ae1e6b31a2e5ebf02689f60cb3cb2793861f328ac47fd4532b610ab43d8930a99a83d388304add03d86b6d02b59e243d53b1511b9a9e8f1a37674d42
@@ -34,12 +34,16 @@ module Covalence
34
34
  @cache[bucket][document] ||= begin
35
35
  @s3.get_object(bucket: bucket, key: document).body.read
36
36
  rescue Aws::S3::Errors::ServiceError => err
37
- fail "Unable to retrieve document '#{document}' from bucket '#{bucket}': " + err.message
37
+ raise err, "Unable to retrieve document '#{document}' from bucket '#{bucket}'"
38
38
  end
39
39
  end
40
40
 
41
41
  def get_key(bucket, document, name)
42
- doc = self.get_doc(bucket, document)
42
+ begin
43
+ doc = self.get_doc(bucket, document)
44
+ rescue Aws::S3::Errors::ServiceError => err
45
+ fail err.message + " and the key is: #{name}. Check your data files."
46
+ end
43
47
 
44
48
  # Parse JSON response
45
49
  begin
@@ -1,3 +1,3 @@
1
1
  module Covalence
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: covalence
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Unif.io
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-01 00:00:00.000000000 Z
11
+ date: 2018-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deep_merge