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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTEwZTM5MTEyNmJjZmUyYjQ5NTA2YTBkOWYzNTFmODQ0MmNiZWQ3Zg==
4
+ MzFiMTZiNjJjYzVmNTQ0NmRmNzI0NTgyOGMwZGE2MTg4NDIyYWY2NA==
5
5
  data.tar.gz: !binary |-
6
- NGQ5OWUwNDQ2NmI2ODc5ODVmZDFlMTI4ZWE1YjI4ODg2ODk1MGY3MQ==
6
+ MDFiZjE5ZmY4N2U5YjFiNjBkODgxODZlY2MzMzBhNzFlYjU3ZDI5Yg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NmNlMDA1M2U0ZWExNjE4ZWU1ZDM0YjI0OGY1ZTk1NmQxNzQ3YWE1MmM1ZTU0
10
- ZGYyYzJkNjE4OGViYTdhMzRiNzllYzllZDQ2ZDU3NzIwOWVmNzU0NDcxNDYx
11
- Y2E5MTY4Njg5OWUxMTYxZTJmZGNjMTY4ZTQwNDQwNjJmNWZmZmM=
9
+ YTUzYjg4Y2VhMjNmYmRkNTdjNmFlNjgzNjBkMTUyZTFmOGE5MDk2NTdiMjJi
10
+ MzA3NDdjYzhkMTI5MmE4MDVmODQ1ODFjNDY4ZTE3NDQxM2JkM2YxNTg5MDM5
11
+ YzlhYTNjNzRhNTUzNTI5OGU5NDg4ZTkwMmZiZDY5MjgxMzVlMjY=
12
12
  data.tar.gz: !binary |-
13
- NzAxYWJiMWYwMjM2ZjAxMWJmNjhhZDZiYmQwNWVjZGI4NDI3OWEwN2I0OGY5
14
- ODVkMWNjMmMwZmJmZmYwMzg1N2VjNDU1YzVkYTJjN2U3YWEwNzc5YWZkNzdh
15
- ZTk5MWQ2MzE1ZmNmY2NlNmVhOWUzNTIzN2VlYzMzOWVkNThhYWM=
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)
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  class API
3
- VERSION = '0.18.1'
3
+ VERSION = '0.19.0'
4
4
  end
5
5
  end
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.18.1
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-17 00:00:00.000000000 Z
11
+ date: 2013-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client