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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 970ec2d1d03637ef0a3e1f82b3a55fe0981d6357
4
- data.tar.gz: 5921782e5db9df5d3b623680c2b6af1808ad82e7
3
+ metadata.gz: ea0b69bc90c81fbbbdf33d1925a8e51e48991acd
4
+ data.tar.gz: e5eea5e9299bc38cb9a6f94fdca3a8a20886c291
5
5
  SHA512:
6
- metadata.gz: 66a0e5df33291ef61ad5287534b844f779883114c7d63dcbcfd3d8cc469d6f07e9c28969d9605753ce6e5895832f6d45ba36219298019ec4c2cc2bf6c2bbfea3
7
- data.tar.gz: 085526d46b2de869b5d35d1de9249799ac7d224c714727dfbb7bb677f146d77a565f90caa3d57e0a287c0e9f852702a11ffdd2be3d9cc398fdd8a11167ae678e
6
+ metadata.gz: 0d3c08bdc1ef67da2f27a94003a2df44de626c031a9902db9aa52ea315c61bfd79c05478addade3b46303215f1d3801cfe76f3a70a6da2838534a29ec5220c2f
7
+ data.tar.gz: f6308e2a823c1a8ad06d16f9ffcf4af0f565d65c1b1e26b157d9f2b4aa6e3a5e49cda455fdd2c0daa06bcf8fc68fb6fbb02e844ccb3492804cd64b8b2c9f590e
@@ -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 Exception => e
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 Exception => e
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
@@ -63,7 +63,7 @@ class HamburgerStore
63
63
  error = nil
64
64
  begin
65
65
  item = ddb_get_item(identifier)
66
- rescue Exception => e
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 < Exception
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.3
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: 2015-12-07 00:00:00.000000000 Z
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: '2.1'
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: '2.1'
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: '2.1'
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: '2.1'
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.8
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.