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 +4 -4
- data/lib/covalence/core/state_stores/s3.rb +6 -2
- data/lib/covalence/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20915983ec722de0caba4a9f7bfc5e2413ce8890e5b148ff79ec26e93723ab2a
|
4
|
+
data.tar.gz: 47d849adece9ecdc1ee249786b0d6fe5b15c66bcb55732f5eaff1b6fa8856353
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
data/lib/covalence/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: deep_merge
|