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 +4 -4
- data/lib/gun_broker/response.rb +8 -0
- data/lib/gun_broker/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0eddcb120b859d710ec5c0ac4b88e2e2f46ae744
|
4
|
+
data.tar.gz: 60ad33af4e373229e87180af396ba377a920d94f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac4e6567685637c5652cc0fe4b1db9b2950bec987c386872f848459df489f62d82510a08d8fa5372ae4bb66969029262835e9fbeff656559ae2c0c29aea8a44d
|
7
|
+
data.tar.gz: 96cc1e8f58d61b48e1982d88d5a1994cf60e3cd804993dd4804a2ff154e7bcd14369036cc7a56881f9dc1d34c127f8e2d081701b4b7772a93be36ba9660f26ba
|
data/lib/gun_broker/response.rb
CHANGED
@@ -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
|
data/lib/gun_broker/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|