hamburgerstore 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/hamburgerstore.rb +2 -2
- data/lib/hamburgerstore.rb +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea0b69bc90c81fbbbdf33d1925a8e51e48991acd
|
4
|
+
data.tar.gz: e5eea5e9299bc38cb9a6f94fdca3a8a20886c291
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d3c08bdc1ef67da2f27a94003a2df44de626c031a9902db9aa52ea315c61bfd79c05478addade3b46303215f1d3801cfe76f3a70a6da2838534a29ec5220c2f
|
7
|
+
data.tar.gz: f6308e2a823c1a8ad06d16f9ffcf4af0f565d65c1b1e26b157d9f2b4aa6e3a5e49cda455fdd2c0daa06bcf8fc68fb6fbb02e844ccb3492804cd64b8b2c9f590e
|
data/bin/hamburgerstore.rb
CHANGED
@@ -45,14 +45,14 @@ case cmd
|
|
45
45
|
when 'store'
|
46
46
|
begin
|
47
47
|
hamburger.store(cmd_opts[:identifier], cmd_opts[:keyname], cmd_opts[:value])
|
48
|
-
rescue
|
48
|
+
rescue StandardError => e
|
49
49
|
puts "#{e.class.name}: #{e.message}"
|
50
50
|
exit 1
|
51
51
|
end
|
52
52
|
when 'retrieve'
|
53
53
|
begin
|
54
54
|
result = hamburger.retrieve(cmd_opts[:identifier], cmd_opts[:keyname])
|
55
|
-
rescue
|
55
|
+
rescue StandardError => e
|
56
56
|
msg = "Failed to retrieve value for key #{cmd_opts[:keyname]} and hamburger #{cmd_opts[:identifier]}"
|
57
57
|
puts "#{e.class.name}: #{msg}"
|
58
58
|
exit 1
|
data/lib/hamburgerstore.rb
CHANGED
@@ -63,7 +63,7 @@ class HamburgerStore
|
|
63
63
|
error = nil
|
64
64
|
begin
|
65
65
|
item = ddb_get_item(identifier)
|
66
|
-
rescue
|
66
|
+
rescue StandardError => e
|
67
67
|
error = e
|
68
68
|
end
|
69
69
|
if !error.nil? || item.nil? || item[key].nil?
|
@@ -84,7 +84,7 @@ class HamburgerStore
|
|
84
84
|
end
|
85
85
|
|
86
86
|
# Top level exception so we can catch our exceptions explicitly
|
87
|
-
class HamburgerException <
|
87
|
+
class HamburgerException < StandardError
|
88
88
|
end
|
89
89
|
|
90
90
|
class HamburgerNoItemInTableError < HamburgerException
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hamburgerstore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonny Sywulak
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-02-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|
@@ -17,28 +17,28 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '0'
|
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: '
|
27
|
+
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: trollop
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
41
|
+
version: '0'
|
42
42
|
description: Hambuger Store is an easy, lightweight way to store data about your pipeline
|
43
43
|
instances. As you go through your pipeline, you're going to produce a lot of information
|
44
44
|
that's relevant to your pipeline instance, and having to store that in a text file
|
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
78
|
rubyforge_project:
|
79
|
-
rubygems_version: 2.4.
|
79
|
+
rubygems_version: 2.4.5.1
|
80
80
|
signing_key:
|
81
81
|
specification_version: 4
|
82
82
|
summary: Data store for pipeline instance metadata. Nothing to do with hamburgers.
|