gun_broker 0.6.1 → 0.6.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
  SHA1:
3
- metadata.gz: 7e3c024f2f1f31e202e435ff87c8109f52f72991
4
- data.tar.gz: 8e01bed24a4258c9559a98ba9fc56c268c3c52e9
3
+ metadata.gz: 0eddcb120b859d710ec5c0ac4b88e2e2f46ae744
4
+ data.tar.gz: 60ad33af4e373229e87180af396ba377a920d94f
5
5
  SHA512:
6
- metadata.gz: f470dd4a4c63cdcd4322d94bf1c725a786c5ac306d0d2dad4ce7c21d10fe7f2b27680a88cc309d02f926d04818e4808eca0ed9c8ad2634c221dca74ab536f52a
7
- data.tar.gz: dc848ad1ac16d576223a4f0a249abd1aaaf931b31613ff7f68f55b8d5d571a63de840a0b768434e6569dfb32259ef9b153b161ce9973f1cf40f2e2a9af14f446
6
+ metadata.gz: ac4e6567685637c5652cc0fe4b1db9b2950bec987c386872f848459df489f62d82510a08d8fa5372ae4bb66969029262835e9fbeff656559ae2c0c29aea8a44d
7
+ data.tar.gz: 96cc1e8f58d61b48e1982d88d5a1994cf60e3cd804993dd4804a2ff154e7bcd14369036cc7a56881f9dc1d34c127f8e2d081701b4b7772a93be36ba9660f26ba
@@ -29,5 +29,13 @@ module GunBroker
29
29
  @data
30
30
  end
31
31
 
32
+ # Like Hash#fetch
33
+ # @param [Object] A key from the response JSON.
34
+ # @raise [KeyError] If `key` is not in the response.
35
+ # @return [Object] The value for `key`.
36
+ def fetch(key)
37
+ @data.fetch(key)
38
+ end
39
+
32
40
  end
33
41
  end
@@ -1,3 +1,3 @@
1
1
  module GunBroker
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gun_broker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Campbell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-28 00:00:00.000000000 Z
11
+ date: 2015-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler