fanforce-api 0.18.1 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/fanforce/api/response.rb +2 -0
- data/lib/fanforce/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzFiMTZiNjJjYzVmNTQ0NmRmNzI0NTgyOGMwZGE2MTg4NDIyYWY2NA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDFiZjE5ZmY4N2U5YjFiNjBkODgxODZlY2MzMzBhNzFlYjU3ZDI5Yg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTUzYjg4Y2VhMjNmYmRkNTdjNmFlNjgzNjBkMTUyZTFmOGE5MDk2NTdiMjJi
|
10
|
+
MzA3NDdjYzhkMTI5MmE4MDVmODQ1ODFjNDY4ZTE3NDQxM2JkM2YxNTg5MDM5
|
11
|
+
YzlhYTNjNzRhNTUzNTI5OGU5NDg4ZTkwMmZiZDY5MjgxMzVlMjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjZkMzIwNmM0YzEwNTg0MGQwMGMwY2EyZWUyMjEyOWFmMDVjZDE4MzliNWVj
|
14
|
+
NWE3MTI1ZjVjYWVjYTQ1Y2I4YTc0OWM3M2U3NmRmNTIwMTliNGM5YTFhOTBj
|
15
|
+
MmQ3ODU2MzU2ZGI3MTMxZDdiYTk4ODkwZTUwMzU4YjY1ZThmZjA=
|
@@ -2,7 +2,9 @@ class Fanforce::API::Response
|
|
2
2
|
attr_reader :curl_command, :requested_url, :requested_params
|
3
3
|
|
4
4
|
def self.process(response, request, requested_url, requested_params)
|
5
|
+
return nil if response.code == 404
|
5
6
|
raise Fanforce::API::ServerError.new(response, request, requested_url, requested_params) if response.code > 201
|
7
|
+
|
6
8
|
begin response_hash = Fanforce::Utils.decode_json(response)
|
7
9
|
rescue Exception => e; raise Fanforce::API::DecodingError.new(e, response, request, requested_url, requested_params) end
|
8
10
|
if !response_hash.is_a?(Hash)
|
data/lib/fanforce/api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fanforce-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Caleb Clark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|