action_kit_rest 0.4.7 → 0.4.9
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d1a20be28c4958f6f3dd3c5e59a4fb55edeef76de26a40f55e48faff8c33020
|
4
|
+
data.tar.gz: 6f080fe7a70ab91c409bf1288f1a0efb2e135c2a0ecf917c57ae17d9dda2586b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 554527d0868d5f501a844019d34911254f7244f07b0d5057245d6cf6b6910a313465615760d66de46ee0e1e5ed515beccb6b4848748321902a0423daf81ed175
|
7
|
+
data.tar.gz: 7fde46c77d6994b2a90610c8ddd10765cac833288e735b9ef4408f25f427bf016e0d51dedbf4e7413aefd2ca78b221b6c92e82711d89821210e667e386c06547
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.1.2
|
data/action_kit_rest.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: action_kit_rest 0.4.
|
5
|
+
# stub: action_kit_rest 0.4.9 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "action_kit_rest".freeze
|
9
|
-
s.version = "0.4.
|
9
|
+
s.version = "0.4.9"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Nathan Woodhull".freeze, "Diego Marcet".freeze, "Grey Moore".freeze]
|
14
|
-
s.date = "
|
14
|
+
s.date = "2022-11-29"
|
15
15
|
s.description = "Gem for interacting with the ActionKit API".freeze
|
16
16
|
s.email = "systems@controlshiftlabs.com".freeze
|
17
17
|
s.extra_rdoc_files = [
|
@@ -91,7 +91,7 @@ Gem::Specification.new do |s|
|
|
91
91
|
]
|
92
92
|
s.homepage = "http://github.com/controlshift/action_kit_rest".freeze
|
93
93
|
s.licenses = ["MIT".freeze]
|
94
|
-
s.rubygems_version = "3.
|
94
|
+
s.rubygems_version = "3.3.19".freeze
|
95
95
|
s.summary = "A wrapper for the ActionKit REST API".freeze
|
96
96
|
|
97
97
|
if s.respond_to? :specification_version then
|
@@ -24,10 +24,11 @@ module ActionKitRest
|
|
24
24
|
|
25
25
|
class InvalidAkidError < ValidationError
|
26
26
|
MATCHING_ERRORS = ['Unable to associate this mailing ID with account.',
|
27
|
-
'לא הצלחנו לקשר בין מספר הזיהוי של רשימת הדיוור הזו לבין החשבון.'
|
27
|
+
'לא הצלחנו לקשר בין מספר הזיהוי של רשימת הדיוור הזו לבין החשבון.',
|
28
|
+
'لم ننجح في مطابقة العنوان الالكتروني مع الحساب.'].freeze
|
28
29
|
|
29
30
|
def self.matches?(errors)
|
30
|
-
return false unless errors
|
31
|
+
return false unless errors&.keys == ['mailing_id']
|
31
32
|
|
32
33
|
mailing_id_errors = errors['mailing_id']
|
33
34
|
return false unless mailing_id_errors.size == 1
|
@@ -52,6 +52,14 @@ describe ActionKitRest::API do
|
|
52
52
|
expect{ subject.post_request('something/', request_body) }.to raise_error(ActionKitRest::Response::ValidationError)
|
53
53
|
end
|
54
54
|
end
|
55
|
+
|
56
|
+
context 'no errors key in response' do
|
57
|
+
let(:response_body) { '{"strange": "things are happening here"}' }
|
58
|
+
|
59
|
+
it 'sould raise a ValidationError' do
|
60
|
+
expect{ subject.post_request('something/', request_body) }.to raise_error(ActionKitRest::Response::ValidationError)
|
61
|
+
end
|
62
|
+
end
|
55
63
|
end
|
56
64
|
|
57
65
|
context '401 response' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: action_kit_rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Woodhull
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2022-11-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: vertebrae
|
@@ -272,7 +272,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
272
272
|
- !ruby/object:Gem::Version
|
273
273
|
version: '0'
|
274
274
|
requirements: []
|
275
|
-
rubygems_version: 3.
|
275
|
+
rubygems_version: 3.3.19
|
276
276
|
signing_key:
|
277
277
|
specification_version: 4
|
278
278
|
summary: A wrapper for the ActionKit REST API
|