panoptes-client 0.2.9 → 0.2.10

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: 96266ed38b7d4fe259e619442a846799aa288869
4
- data.tar.gz: 37cd787d50f953f09859225fa8c4d266047bd112
3
+ metadata.gz: 8b42f62d37eb1a50015790632a89f95a5a9c8c77
4
+ data.tar.gz: 8dc5e61b91806a4682245cbbdc34d31341af84c0
5
5
  SHA512:
6
- metadata.gz: 6a0411f918d38ce50975a7cd1d969813186451df2b212df426d0ae2bf03cc65a4cf9b66d1d5e052e648c46810d5db518c5307c09be564862b8a8cad10952f357
7
- data.tar.gz: 43113eb2812115dc0798a76c8e93c4a14e8205902a1a7d1c65bdbb4390c4497dd2aeb841c92c420dda1fb853d4de4175da388225f492d034e6981843ef238ae5
6
+ metadata.gz: 4fad2ac7cf6b18b902a25b0709f074098af409c8c847cd5ca982b2db6011c50480d60d50ce09de182432836cfe270f3ac57d1410deffe6d034e2264c2baeb96a
7
+ data.tar.gz: 6f22b537da4417bf7eb7e6b70df39454f84e9a9a52bfa10fba36d8248714a7fd84399c45be722d1ace5d462b5ab7eb41688269705556471129736088d95f253f
@@ -1,3 +1,7 @@
1
+ # 0.2.10
2
+
3
+ * Fix bug with server errors
4
+
1
5
  # 0.2.9
2
6
 
3
7
  * Be compatible with JRuby
@@ -1,5 +1,5 @@
1
1
  module Panoptes
2
2
  class Client
3
- VERSION = "0.2.9".freeze
3
+ VERSION = "0.2.10".freeze
4
4
  end
5
5
  end
@@ -64,9 +64,9 @@ module Panoptes
64
64
  def handle_response(response)
65
65
  case response.status
66
66
  when 404
67
- raise ResourceNotFound, status: response.status, body: response.body
67
+ raise Panoptes::Client::ResourceNotFound, status: response.status, body: response.body
68
68
  when 400..600
69
- raise ServerError.new, response.body
69
+ raise Panoptes::Client::ServerError.new, response.body
70
70
  else
71
71
  response.body
72
72
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panoptes-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marten Veldthuis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-06 00:00:00.000000000 Z
11
+ date: 2016-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday