action_kit_rest 0.4.10 → 0.4.11
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/CHANGELOG.md +12 -0
- data/README.md +6 -0
- data/action_kit_rest.gemspec +5 -4
- data/lib/action_kit_rest/response/validation_error.rb +1 -1
- data/lib/action_kit_rest/version.rb +1 -1
- data/spec/lib/action_kit_rest/api_spec.rb +8 -0
- metadata +7 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a9e03d9f0cecb5f8827854f1ece6de8b18eed0c024b26a665a03c43d3f55d7ec
|
|
4
|
+
data.tar.gz: ed19dc8e130f37700383e37e29e14f7567a802e5c3ff3b90d614e45ba275c636
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 63e3dd57fa043c7d36b4290941341b90946cf007335809a211c78733acf7fc39525f5799395680bce1a477c1ad9f570c1d79eeaf59208d9f4784899639f78061
|
|
7
|
+
data.tar.gz: 78b911df1c1194e8dc9c4fe23738282564fbb1867c2601c90e759505392b5ba97d4657fb1dd0e10398b9830740e2efb242d090ab49e53cbef520fa8fc439cd53
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.4.11] - 2025-10-27
|
|
4
|
+
|
|
5
|
+
### Bugfixes
|
|
6
|
+
- Avoids a crash in error handling when ActionKit returns a response with a non-object "errors" value
|
|
7
|
+
|
|
8
|
+
## [0.4.10] - 2024-01-10
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- Rather than raising StandardError when ActionKit returns a 500 response we now raise `ActionKitRest::Response::UnknownServerError` which is a subclass of StandardError. This allows users to rescue from this specific error if they want to handle it differently than other errors.
|
|
12
|
+
|
data/README.md
CHANGED
|
@@ -76,6 +76,12 @@ Use this action for retrieving the eventsignup details (see the schema at: https
|
|
|
76
76
|
|
|
77
77
|
Use this object for retrieving and updating an event attendee. For creating new attendees must POST an action on an eventsignuppage.
|
|
78
78
|
|
|
79
|
+
### Releasing
|
|
80
|
+
|
|
81
|
+
* bump the version (update the appropriate file and add a git tag)
|
|
82
|
+
* do a gem build, which will build a .gem file with the version number in the filename
|
|
83
|
+
* do a gem push of that gem file you just built. You'll need to be a gem owner to do this.
|
|
84
|
+
|
|
79
85
|
## Copyright
|
|
80
86
|
|
|
81
87
|
Copyright (c) 2013 ControlShift Ltd. See LICENSE.txt for
|
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.11 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.11"
|
|
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 = "2025-10-27"
|
|
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 = [
|
|
@@ -25,6 +25,7 @@ Gem::Specification.new do |s|
|
|
|
25
25
|
".rubocop.yml",
|
|
26
26
|
".ruby-gemset",
|
|
27
27
|
".ruby-version",
|
|
28
|
+
"CHANGELOG.md",
|
|
28
29
|
"Gemfile",
|
|
29
30
|
"LICENSE.txt",
|
|
30
31
|
"README.md",
|
|
@@ -91,7 +92,7 @@ Gem::Specification.new do |s|
|
|
|
91
92
|
]
|
|
92
93
|
s.homepage = "http://github.com/controlshift/action_kit_rest".freeze
|
|
93
94
|
s.licenses = ["MIT".freeze]
|
|
94
|
-
s.rubygems_version = "3.4.
|
|
95
|
+
s.rubygems_version = "3.4.10".freeze
|
|
95
96
|
s.summary = "A wrapper for the ActionKit REST API".freeze
|
|
96
97
|
|
|
97
98
|
s.specification_version = 4
|
|
@@ -28,7 +28,7 @@ module ActionKitRest
|
|
|
28
28
|
'لم ننجح في مطابقة العنوان الالكتروني مع الحساب.'].freeze
|
|
29
29
|
|
|
30
30
|
def self.matches?(errors)
|
|
31
|
-
return false unless errors
|
|
31
|
+
return false unless errors.try(:keys) == ['mailing_id']
|
|
32
32
|
|
|
33
33
|
mailing_id_errors = errors['mailing_id']
|
|
34
34
|
return false unless mailing_id_errors.size == 1
|
|
@@ -60,6 +60,14 @@ describe ActionKitRest::API do
|
|
|
60
60
|
expect{ subject.post_request('something/', request_body) }.to raise_error(ActionKitRest::Response::ValidationError)
|
|
61
61
|
end
|
|
62
62
|
end
|
|
63
|
+
|
|
64
|
+
context 'non-hash errors key in response' do
|
|
65
|
+
let(:response_body) { '{"errors": "what is going on?"}' }
|
|
66
|
+
|
|
67
|
+
it 'sould raise a ValidationError' do
|
|
68
|
+
expect{ subject.post_request('something/', request_body) }.to raise_error(ActionKitRest::Response::ValidationError)
|
|
69
|
+
end
|
|
70
|
+
end
|
|
63
71
|
end
|
|
64
72
|
|
|
65
73
|
context '401 response' do
|
metadata
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
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.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nathan Woodhull
|
|
8
8
|
- Diego Marcet
|
|
9
9
|
- Grey Moore
|
|
10
|
-
autorequire:
|
|
10
|
+
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 2025-10-27 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: vertebrae
|
|
@@ -190,6 +190,7 @@ files:
|
|
|
190
190
|
- ".rubocop.yml"
|
|
191
191
|
- ".ruby-gemset"
|
|
192
192
|
- ".ruby-version"
|
|
193
|
+
- CHANGELOG.md
|
|
193
194
|
- Gemfile
|
|
194
195
|
- LICENSE.txt
|
|
195
196
|
- README.md
|
|
@@ -257,7 +258,7 @@ homepage: http://github.com/controlshift/action_kit_rest
|
|
|
257
258
|
licenses:
|
|
258
259
|
- MIT
|
|
259
260
|
metadata: {}
|
|
260
|
-
post_install_message:
|
|
261
|
+
post_install_message:
|
|
261
262
|
rdoc_options: []
|
|
262
263
|
require_paths:
|
|
263
264
|
- lib
|
|
@@ -272,8 +273,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
272
273
|
- !ruby/object:Gem::Version
|
|
273
274
|
version: '0'
|
|
274
275
|
requirements: []
|
|
275
|
-
rubygems_version: 3.4.
|
|
276
|
-
signing_key:
|
|
276
|
+
rubygems_version: 3.4.10
|
|
277
|
+
signing_key:
|
|
277
278
|
specification_version: 4
|
|
278
279
|
summary: A wrapper for the ActionKit REST API
|
|
279
280
|
test_files: []
|