connect_wise_rest 0.3.1 → 0.4.0

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: 75e34e38cf02534459657fbf231368b2bd44184b
4
- data.tar.gz: 24842f7523c53d322fe63609cdf5834113fbc55d
3
+ metadata.gz: 1b62fcdc5634c4805b7aa509a82afe462ed63776
4
+ data.tar.gz: 3dfe755ab510429f9ea77598208ab3899091b860
5
5
  SHA512:
6
- metadata.gz: b9999532fbd4ef13f4d29b30bab68608ca620d666ee9b4f6415aa7879dcb9918700845ebd530d51a819783b13b0400185de3bfa6be1e2318fdc878b671ed17af
7
- data.tar.gz: 21890fff2e9cd37b07790399ffd49307dfafbaaf164eeb739e5f2f230423a4a136d878bb0ab4887652234ec998a75bcbc75fdca1eb840547d1d0d1a52d21d08e
6
+ metadata.gz: b80c333044bd6c53532ddb8c08355d125c29d05ac4c607a42ccfd0602c22b9ad52aafe3320c08d18d34e487f2cbe36629f372b85fafed6f1780a8dac670a4ec9
7
+ data.tar.gz: ccd95c72174593bfffec8c41b43a07ad32a00dfb6e8d907905edb27a3fdf5e1e76c8b84e8eccd194337bad6a42911ad8e8800de5884dc2d5767f5c9d76181d34
@@ -22,11 +22,9 @@ module ConnectWiseRest
22
22
 
23
23
  def fetch(query = {})
24
24
  self.options[:query].merge!(query)
25
-
26
25
  @response = nil
27
- response
28
26
 
29
- if response.response.is_a?(Net::HTTPInternalServerError)
27
+ unless response.success?
30
28
  raise "#{response.parsed_response['code']}: #{response.parsed_response['message']}"
31
29
  end
32
30
 
@@ -1,3 +1,3 @@
1
1
  module ConnectWiseRest
2
- VERSION = '0.3.1'
2
+ VERSION = '0.4.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: connect_wise_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Pheasey
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-18 00:00:00.000000000 Z
11
+ date: 2018-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler