icontact 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/icontact.gemspec +1 -1
- data/lib/icontact/connection.rb +3 -1
- data/lib/icontact/errors.rb +0 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eb1ddf429710b28bc945766763185eeb463fe3a1
|
|
4
|
+
data.tar.gz: 34a0b90966072a6c02f88547f29bda4645576982
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5cc31fbe7c7b3250b70c246bb13750e6aa444f1834d483e4f1fb5a052f8fcbb48f2ffed310e2431903b04c7757382178c2a6f575417faa6974f38bcdcbeb3711
|
|
7
|
+
data.tar.gz: 1c6d3920a16363731633a6bf55301cde2953d6e8371a3d43865fe2d8b75415851aa4270746e5b133cb1ae4a5442c6f4b8769a9f8df2347ff443fa2ad38220920
|
data/Gemfile.lock
CHANGED
data/icontact.gemspec
CHANGED
data/lib/icontact/connection.rb
CHANGED
|
@@ -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 ||
|
|
68
|
+
Oj.load((response.body || ''), mode: :compat)
|
|
67
69
|
end
|
|
68
70
|
end
|
|
69
71
|
|
data/lib/icontact/errors.rb
CHANGED
|
@@ -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
|
+
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-
|
|
11
|
+
date: 2014-12-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: oj
|