rentlinx 0.8.1 → 0.8.2

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: 6eae905750ee135f97f6bf2b1fc54c0c3f24987c
4
- data.tar.gz: cc283e40fea528290d76af14b37236a45c533a5c
3
+ metadata.gz: 6aa97a327400aeff7f170786b69dc9e038371fdc
4
+ data.tar.gz: a9e6258229b0676180be3e00e145113ec497e5c9
5
5
  SHA512:
6
- metadata.gz: d56cf876af35847b5a3b70b6a49f3b722370bca816a050c7a96bef851b0195dcc2269dc00e7bc8e539b241343f23a2635e520c268825962f20a6d829a344fcb6
7
- data.tar.gz: eefd1eb9082f43d6664b07d97c7eee354533daa2a04f62ae6f85892f366e4a8a85335f1e76e07778a44c70aea595b4f761665a3e4082baedbef6607f03b2936d
6
+ metadata.gz: e4d8666090d655e879232483fbdd74e84249937dc41d459719ead0a04a07a1e62581d85f497880eaaafcd5c9751e0186c93c02d4549d5e1f0a3418997a7b8c2d
7
+ data.tar.gz: b117a9745b6e6bec1307cb5d31dddbdc0ca8e53312a0c45fb7e534fa585457b1d164a3fcb106d70bb6e6c0e85c1d277071d0cddf45c1ed916e63218cb36c8e13
@@ -102,6 +102,8 @@ module Rentlinx
102
102
  raise Rentlinx::Forbidden, response
103
103
  when 404
104
104
  raise Rentlinx::NotFound, response
105
+ when 409
106
+ raise Rentlinx::Conflict, response
105
107
  when 500, 501, 502, 503, 504, 505
106
108
  raise Rentlinx::ServerError, response
107
109
  else
@@ -47,6 +47,12 @@ module Rentlinx
47
47
  end
48
48
  end
49
49
 
50
+ class Conflict < HTTPError
51
+ def initialize(response)
52
+ super(response, 'There was a conflict on the remote server.')
53
+ end
54
+ end
55
+
50
56
  class Forbidden < HTTPError
51
57
  def initialize(response)
52
58
  super(response, 'You are not permitted to access the item you requested.')
@@ -1,3 +1,3 @@
1
1
  module Rentlinx
2
- VERSION = '0.8.1'
2
+ VERSION = '0.8.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rentlinx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - AppFolio, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-09 00:00:00.000000000 Z
11
+ date: 2015-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient