clio_client 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,7 @@ module ClioClient
4
4
  class ResourceNotFound < StandardError; end
5
5
  class BadRequest < StandardError; end
6
6
  class UnknownResponse < StandardError; end
7
+ class Forbidden < StandardError; end
7
8
 
8
9
  module Http
9
10
 
@@ -81,6 +82,8 @@ module ClioClient
81
82
  raise ClioClient::BadRequest.new(parse_body(res.body)["message"])
82
83
  when Net::HTTPSeeOther
83
84
  res["Location"]
85
+ when Net::HTTPForbidden
86
+ raise ClioClient::Forbidden.new(res.body)
84
87
  else
85
88
  raise UnknownResponse.new(res.body)
86
89
  end
@@ -1,3 +1,3 @@
1
1
  module ClioClient
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clio_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-01-14 00:00:00.000000000 Z
12
+ date: 2015-02-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler