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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d9793acd4e784b551ab7fc634b25c6b6405e34f0
4
- data.tar.gz: 52b18271fe05f996e8de43e55113f3e6acef5900
3
+ metadata.gz: 3969440275623d4e3fa22609690cc9c086169e99
4
+ data.tar.gz: 3b49bed7468f9843e6b9469eedd35c4401efd0e3
5
5
  SHA512:
6
- metadata.gz: a1144545ae627a84a30dfe1b2864fa25a14cf4851c3979a6fb5a359043425de4ee3acf6d3eb9ca23f3f32300a46311015c8ce3b62da6c67a0dd518d7ce7d12db
7
- data.tar.gz: e26756d5d8a66ff72ab437039c239914faa37d2c0df7203f38ba38ce727bbb841fc8618b63f47d928f27bbd4d47f5a646eb0b240270a794583fdcd86428e3a74
6
+ metadata.gz: 56e93575066c9f979bfdfcd5c30afdc2cfa821b280c805d94fcd1803cd5eea8b98e0df06bb5233747fdbb66c4b99abff323ed2bbcca38bf5fe60283f6a38d0ef
7
+ data.tar.gz: 4907ac37c28c9d642eee09db3e6e60c33f632f6775e8f8de02c065cc683f7868c444cf39ffa248525554f524ef47af89265bc6be1fb6c82e9f4913facdee4609
@@ -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 unless error.code
52
- "Buffer API Error Code: #{error.code}\n" +
53
- "HTTP Code: #{response.code}." +
54
- "Description: #{error.error}"
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
@@ -1,3 +1,3 @@
1
1
  module Buffer
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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: 2015-04-05 00:00:00.000000000 Z
11
+ date: 2016-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec