icontact 0.0.4 → 0.0.5

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: f572c6471d13d68cbe4ba58806245804f45d5a66
4
- data.tar.gz: 20e10242041a60effef3af1e78fa74e82d08633a
3
+ metadata.gz: eb1ddf429710b28bc945766763185eeb463fe3a1
4
+ data.tar.gz: 34a0b90966072a6c02f88547f29bda4645576982
5
5
  SHA512:
6
- metadata.gz: dcc7988eda595f77b7e559b81f354cffcb1d926c7e8cac578d84c10b398cf89c997b87674b7e13033afbade4b03d9deaff88cfe91aad31f0ebf392b6aeac7baf
7
- data.tar.gz: 0624508f859b3a0a1b5556510a47429a0fde3c28cefdc7bc8a8d15a9f81936cb894e8b221338f8217d4b7f4f888ffe5f94459205b5248f15693fdc47085a7de4
6
+ metadata.gz: 5cc31fbe7c7b3250b70c246bb13750e6aa444f1834d483e4f1fb5a052f8fcbb48f2ffed310e2431903b04c7757382178c2a6f575417faa6974f38bcdcbeb3711
7
+ data.tar.gz: 1c6d3920a16363731633a6bf55301cde2953d6e8371a3d43865fe2d8b75415851aa4270746e5b133cb1ae4a5442c6f4b8769a9f8df2347ff443fa2ad38220920
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- icontact (0.0.4)
4
+ icontact (0.0.5)
5
5
  faraday (~> 0.8)
6
6
  oj (~> 2.11)
7
7
 
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  Gem::Specification.new do |gem|
3
3
  gem.name = 'icontact'
4
- gem.version = '0.0.4'
4
+ gem.version = '0.0.5'
5
5
  gem.authors = ['Devin Turner']
6
6
  gem.email = ['devin.turner09@gmail.com']
7
7
  gem.summary = 'Ruby wrapper for the iContact API'
@@ -54,6 +54,8 @@ module IContact
54
54
  case response.status.to_i
55
55
  when 200..299
56
56
  response_success(response)
57
+ when 404
58
+ []
57
59
  else
58
60
  IContact::ErrorHandler.new(response)
59
61
  end
@@ -63,7 +65,7 @@ module IContact
63
65
  if response.env[:method] == :delete
64
66
  { 'status' => true }
65
67
  else
66
- Oj.load((response.body || {}), mode: :compat)
68
+ Oj.load((response.body || ''), mode: :compat)
67
69
  end
68
70
  end
69
71
 
@@ -17,8 +17,6 @@ module IContact
17
17
 
18
18
  class IContact::PaymentRequest < IContactError; end
19
19
 
20
- class IContact::ResourceNotFound < IContactError; end
21
-
22
20
  class IContact::MethodNotAllowed < IContactError; end
23
21
 
24
22
  class IContact::InsufficientSpace < IContactError; end
@@ -33,7 +31,6 @@ module IContact
33
31
  401 => IContact::NotAuthorized,
34
32
  402 => IContact::PaymentRequest,
35
33
  403 => IContact::Forbidden,
36
- 404 => IContact::ResourceNotFound,
37
34
  405 => IContact::MethodNotAllowed,
38
35
  406 => IContact::NotAcceptable,
39
36
  415 => IContact::UnsupportedMediaType,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: icontact
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Devin Turner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-01 00:00:00.000000000 Z
11
+ date: 2014-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj