buffer 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/buffer/core.rb +5 -5
- data/lib/buffer/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: 3969440275623d4e3fa22609690cc9c086169e99
|
4
|
+
data.tar.gz: 3b49bed7468f9843e6b9469eedd35c4401efd0e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56e93575066c9f979bfdfcd5c30afdc2cfa821b280c805d94fcd1803cd5eea8b98e0df06bb5233747fdbb66c4b99abff323ed2bbcca38bf5fe60283f6a38d0ef
|
7
|
+
data.tar.gz: 4907ac37c28c9d642eee09db3e6e60c33f632f6775e8f8de02c065cc683f7868c444cf39ffa248525554f524ef47af89265bc6be1fb6c82e9f4913facdee4609
|
data/lib/buffer/core.rb
CHANGED
@@ -47,11 +47,11 @@ module Buffer
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def handle_response_code(response)
|
50
|
-
error = Hashie::Mash.new(response.body)
|
51
|
-
raise Buffer::Error::APIError
|
52
|
-
|
53
|
-
|
54
|
-
|
50
|
+
error = Hashie::Mash.new(JSON.parse(response.body))
|
51
|
+
raise Buffer::Error::APIError,
|
52
|
+
"Buffer API Error Code: #{error.code} " +
|
53
|
+
"HTTP Code: #{response.status}. " +
|
54
|
+
"Description: #{error.error}"
|
55
55
|
end
|
56
56
|
end
|
57
57
|
end
|
data/lib/buffer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buffer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ZPH
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|