action_kit_rest 0.4.11 → 1.0.0
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/.ruby-version +1 -1
- data/CHANGELOG.md +10 -0
- data/Gemfile +3 -14
- data/Rakefile +4 -38
- data/lib/action_kit_rest/api.rb +21 -10
- data/lib/action_kit_rest/response/raise_error.rb +1 -1
- data/lib/action_kit_rest/response/wrapper.rb +1 -1
- data/lib/action_kit_rest/user.rb +1 -1
- data/lib/action_kit_rest/version.rb +3 -3
- metadata +61 -50
- data/.document +0 -5
- data/.github/workflows/ci.yml +0 -24
- data/action_kit_rest.gemspec +0 -111
- data/spec/fixtures/action/event_create_action.json +0 -24
- data/spec/fixtures/action/event_signup_action.json +0 -24
- data/spec/fixtures/allowed_user_field/get.json +0 -19
- data/spec/fixtures/allowed_user_field/list.json +0 -49
- data/spec/fixtures/allowed_user_field/list_filtered.json +0 -30
- data/spec/fixtures/error.json +0 -1
- data/spec/fixtures/page/campaign.json +0 -32
- data/spec/fixtures/page/collection.json +0 -984
- data/spec/fixtures/page/find_campaign.json +0 -43
- data/spec/fixtures/page/find_event_create.json +0 -42
- data/spec/fixtures/page/find_event_signup.json +0 -41
- data/spec/fixtures/page/object.json +0 -18
- data/spec/fixtures/phone/object.json +0 -33
- data/spec/fixtures/user/object_with_phones.json +0 -1
- data/spec/fixtures/user/object_without_phones.json +0 -1
- data/spec/lib/action_kit_rest/actions/event_create_action_spec.rb +0 -22
- data/spec/lib/action_kit_rest/actions/event_signup_action_spec.rb +0 -22
- data/spec/lib/action_kit_rest/allowed_user_field_spec.rb +0 -80
- data/spec/lib/action_kit_rest/api_spec.rb +0 -111
- data/spec/lib/action_kit_rest/logger_spec.rb +0 -22
- data/spec/lib/action_kit_rest/page_spec.rb +0 -112
- data/spec/lib/action_kit_rest/pages/event_campaign_page_spec.rb +0 -77
- data/spec/lib/action_kit_rest/pages/import_page_spec.rb +0 -53
- data/spec/lib/action_kit_rest/response/collection_spec.rb +0 -28
- data/spec/lib/action_kit_rest/response/validation_error_spec.rb +0 -39
- data/spec/lib/action_kit_rest/response/wrapper_spec.rb +0 -27
- data/spec/lib/action_kit_rest/user_spec.rb +0 -73
- data/spec/spec_helper.rb +0 -51
- data/spec/support/shared_contexts/stub_logger.rb +0 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8a966fd576c0286abc5ff32d3aca713c26a45523bdaab1755c021a871e99ee32
|
|
4
|
+
data.tar.gz: 915d9a530ab2f22afebbbe491136859782721e356cc27c5bb125b2e11479e5ba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 72730c7b53a26bfb18c6e669e3b499de457faff1ca14ee83188ab6b7a2bec8bfaf4d7ddae0106e51a27ad89471e09a2757c24a65929fa035904fd32f37ed96b4
|
|
7
|
+
data.tar.gz: 5caf00a99e516af10e50c941c9b45e1ea8bbff36b694d2f76d032d0257a5e0ece2353262cdf4d1c6e1cedbe6e894d376f64013a8f82f0b3d73753c0996dac218
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
4.0.1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.0] - 2026-02-09
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- Upgraded to Ruby 4.0.1 compatibility
|
|
7
|
+
- Upgraded Faraday from 1.x to 2.14.1 for Ruby 4.0+ support
|
|
8
|
+
- Upgraded Vertebrae from 0.8.0 to 1.0.5
|
|
9
|
+
- Upgraded Hashie from 3.6.0 to 5.1.0
|
|
10
|
+
- Removed juwelier dependency in favor of standard Bundler gem tasks
|
|
11
|
+
- Updated Faraday middleware to use Faraday 2.x API
|
|
12
|
+
|
|
3
13
|
## [0.4.11] - 2025-10-27
|
|
4
14
|
|
|
5
15
|
### Bugfixes
|
data/Gemfile
CHANGED
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
source '
|
|
3
|
+
source 'https://rubygems.org'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
group :development do
|
|
8
|
-
gem 'bundler', '>= 2.0', '<3.0'
|
|
9
|
-
gem 'byebug'
|
|
10
|
-
gem 'em-http-request', '>=1.1.5', '<2.0'
|
|
11
|
-
gem 'em-synchrony', '>=1.0.6', '<2.0'
|
|
12
|
-
gem 'eventmachine', '>=1.2.5', '<2.0'
|
|
13
|
-
gem 'juwelier', git: 'https://github.com/flajann2/juwelier.git'
|
|
14
|
-
gem 'rspec', '~> 3.7'
|
|
15
|
-
gem 'rubocop'
|
|
16
|
-
gem 'webmock', '~> 3.3'
|
|
17
|
-
end
|
|
5
|
+
# Specify your gem's dependencies in action_kit_rest.gemspec
|
|
6
|
+
gemspec
|
data/Rakefile
CHANGED
|
@@ -1,47 +1,13 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require '
|
|
4
|
-
require 'bundler'
|
|
5
|
-
begin
|
|
6
|
-
Bundler.setup(:default, :development)
|
|
7
|
-
rescue Bundler::BundlerError => e
|
|
8
|
-
warn e.message
|
|
9
|
-
warn 'Run `bundle install` to install missing gems'
|
|
10
|
-
exit e.status_code
|
|
11
|
-
end
|
|
12
|
-
require 'rake'
|
|
13
|
-
require './lib/action_kit_rest/version'
|
|
14
|
-
|
|
15
|
-
require 'juwelier'
|
|
16
|
-
Juwelier::Tasks.new do |gem|
|
|
17
|
-
gem.name = 'action_kit_rest'
|
|
18
|
-
gem.version = ActionKitRest::VERSION::STRING
|
|
19
|
-
gem.homepage = 'http://github.com/controlshift/action_kit_rest'
|
|
20
|
-
gem.license = 'MIT'
|
|
21
|
-
gem.summary = %(A wrapper for the ActionKit REST API)
|
|
22
|
-
gem.description = %(Gem for interacting with the ActionKit API)
|
|
23
|
-
gem.email = 'systems@controlshiftlabs.com'
|
|
24
|
-
gem.authors = ['Nathan Woodhull', 'Diego Marcet', 'Grey Moore']
|
|
25
|
-
# dependencies defined in Gemfile
|
|
26
|
-
end
|
|
27
|
-
Juwelier::RubygemsDotOrgTasks.new
|
|
28
|
-
|
|
3
|
+
require 'bundler/gem_tasks'
|
|
29
4
|
require 'rspec/core/rake_task'
|
|
5
|
+
|
|
30
6
|
desc 'Default: run specs.'
|
|
31
7
|
task default: :spec
|
|
32
8
|
|
|
33
9
|
desc 'Run specs'
|
|
34
|
-
RSpec::Core::RakeTask.new do |t|
|
|
35
|
-
t.pattern = './spec/**/*_spec.rb'
|
|
10
|
+
RSpec::Core::RakeTask.new(:spec) do |t|
|
|
11
|
+
t.pattern = './spec/**/*_spec.rb'
|
|
36
12
|
t.rspec_opts = '--color'
|
|
37
13
|
end
|
|
38
|
-
|
|
39
|
-
require 'rdoc/task'
|
|
40
|
-
Rake::RDocTask.new do |rdoc|
|
|
41
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ''
|
|
42
|
-
|
|
43
|
-
rdoc.rdoc_dir = 'rdoc'
|
|
44
|
-
rdoc.title = "action_kit_rest #{version}"
|
|
45
|
-
rdoc.rdoc_files.include('README*')
|
|
46
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
47
|
-
end
|
data/lib/action_kit_rest/api.rb
CHANGED
|
@@ -35,21 +35,32 @@ module ActionKitRest
|
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
def setup
|
|
38
|
-
connection
|
|
39
|
-
|
|
40
|
-
builder.use Faraday::Request::UrlEncoded
|
|
38
|
+
# Override the faraday connection to use ActionKitRest's custom error handler
|
|
39
|
+
connection.faraday_connection = Faraday.new(connection.configuration.faraday_options) do |f|
|
|
41
40
|
if connection.configuration.authenticated?
|
|
42
|
-
|
|
43
|
-
connection.configuration.password
|
|
41
|
+
f.request :authorization, :basic, connection.configuration.username, connection.configuration.password
|
|
44
42
|
end
|
|
43
|
+
f.request :multipart
|
|
44
|
+
f.request :url_encoded
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
f.response :logger if ENV['DEBUG']
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
unless initialisation_options[:raw]
|
|
49
|
+
f.response :mashify
|
|
50
|
+
f.response :json
|
|
51
|
+
end
|
|
50
52
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
f.use ActionKitRest::Response::RaiseError
|
|
54
|
+
|
|
55
|
+
# Handle adapter registration - some adapters need to be required separately in Faraday 2.x
|
|
56
|
+
adapter_name = connection.configuration.adapter
|
|
57
|
+
begin
|
|
58
|
+
f.adapter adapter_name
|
|
59
|
+
rescue Faraday::Error => e
|
|
60
|
+
# Fall back to default adapter if the requested one isn't available
|
|
61
|
+
warn "Adapter #{adapter_name} not available (#{e.message}), falling back to default"
|
|
62
|
+
f.adapter Faraday.default_adapter
|
|
63
|
+
end
|
|
53
64
|
end
|
|
54
65
|
end
|
|
55
66
|
end
|
|
@@ -8,7 +8,7 @@ module ActionKitRest
|
|
|
8
8
|
|
|
9
9
|
attr_reader :response, :kind, :obj
|
|
10
10
|
|
|
11
|
-
def_delegators :body, :empty?, :size, :include?, :length, :to_a, :first, :flatten, :
|
|
11
|
+
def_delegators :body, :empty?, :size, :include?, :length, :to_a, :first, :flatten, :keys
|
|
12
12
|
|
|
13
13
|
def initialize(response)
|
|
14
14
|
@response = response
|
data/lib/action_kit_rest/user.rb
CHANGED
|
@@ -13,7 +13,7 @@ module ActionKitRest
|
|
|
13
13
|
# (user.phones attribute includes the path for associated phones, not the data itself)
|
|
14
14
|
if user.id.present? && user.phones.any?
|
|
15
15
|
phones_list = client.phone.list(user: user.id)
|
|
16
|
-
user.obj.phones = phones_list.obj
|
|
16
|
+
user.obj.phones = phones_list.obj
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
user
|
metadata
CHANGED
|
@@ -1,31 +1,73 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: action_kit_rest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nathan Woodhull
|
|
8
8
|
- Diego Marcet
|
|
9
9
|
- Grey Moore
|
|
10
|
-
|
|
10
|
+
- Owens Ehimen
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: vertebrae
|
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
|
18
18
|
requirements:
|
|
19
|
-
- - "
|
|
19
|
+
- - "~>"
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 0.
|
|
21
|
+
version: 1.0.5
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
25
|
requirements:
|
|
26
|
-
- - "
|
|
26
|
+
- - "~>"
|
|
27
|
+
- !ruby/object:Gem::Version
|
|
28
|
+
version: 1.0.5
|
|
29
|
+
- !ruby/object:Gem::Dependency
|
|
30
|
+
name: hashie
|
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
|
32
|
+
requirements:
|
|
33
|
+
- - "~>"
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: 5.1.0
|
|
36
|
+
type: :runtime
|
|
37
|
+
prerelease: false
|
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
39
|
+
requirements:
|
|
40
|
+
- - "~>"
|
|
41
|
+
- !ruby/object:Gem::Version
|
|
42
|
+
version: 5.1.0
|
|
43
|
+
- !ruby/object:Gem::Dependency
|
|
44
|
+
name: faraday
|
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
|
46
|
+
requirements:
|
|
47
|
+
- - "~>"
|
|
48
|
+
- !ruby/object:Gem::Version
|
|
49
|
+
version: '2.0'
|
|
50
|
+
type: :runtime
|
|
51
|
+
prerelease: false
|
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
53
|
+
requirements:
|
|
54
|
+
- - "~>"
|
|
27
55
|
- !ruby/object:Gem::Version
|
|
28
|
-
version:
|
|
56
|
+
version: '2.0'
|
|
57
|
+
- !ruby/object:Gem::Dependency
|
|
58
|
+
name: faraday-mashify
|
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
|
60
|
+
requirements:
|
|
61
|
+
- - "~>"
|
|
62
|
+
- !ruby/object:Gem::Version
|
|
63
|
+
version: '1.0'
|
|
64
|
+
type: :runtime
|
|
65
|
+
prerelease: false
|
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
67
|
+
requirements:
|
|
68
|
+
- - "~>"
|
|
69
|
+
- !ruby/object:Gem::Version
|
|
70
|
+
version: '1.0'
|
|
29
71
|
- !ruby/object:Gem::Dependency
|
|
30
72
|
name: bundler
|
|
31
73
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -121,7 +163,7 @@ dependencies:
|
|
|
121
163
|
- !ruby/object:Gem::Version
|
|
122
164
|
version: '2.0'
|
|
123
165
|
- !ruby/object:Gem::Dependency
|
|
124
|
-
name:
|
|
166
|
+
name: rake
|
|
125
167
|
requirement: !ruby/object:Gem::Requirement
|
|
126
168
|
requirements:
|
|
127
169
|
- - ">="
|
|
@@ -177,15 +219,12 @@ dependencies:
|
|
|
177
219
|
- !ruby/object:Gem::Version
|
|
178
220
|
version: '3.3'
|
|
179
221
|
description: Gem for interacting with the ActionKit API
|
|
180
|
-
email:
|
|
222
|
+
email:
|
|
223
|
+
- systems@controlshiftlabs.com
|
|
181
224
|
executables: []
|
|
182
225
|
extensions: []
|
|
183
|
-
extra_rdoc_files:
|
|
184
|
-
- LICENSE.txt
|
|
185
|
-
- README.md
|
|
226
|
+
extra_rdoc_files: []
|
|
186
227
|
files:
|
|
187
|
-
- ".document"
|
|
188
|
-
- ".github/workflows/ci.yml"
|
|
189
228
|
- ".rspec"
|
|
190
229
|
- ".rubocop.yml"
|
|
191
230
|
- ".ruby-gemset"
|
|
@@ -195,7 +234,6 @@ files:
|
|
|
195
234
|
- LICENSE.txt
|
|
196
235
|
- README.md
|
|
197
236
|
- Rakefile
|
|
198
|
-
- action_kit_rest.gemspec
|
|
199
237
|
- lib/action_kit_rest.rb
|
|
200
238
|
- lib/action_kit_rest/action.rb
|
|
201
239
|
- lib/action_kit_rest/actions/event_create_action.rb
|
|
@@ -225,40 +263,14 @@ files:
|
|
|
225
263
|
- lib/action_kit_rest/tag.rb
|
|
226
264
|
- lib/action_kit_rest/user.rb
|
|
227
265
|
- lib/action_kit_rest/version.rb
|
|
228
|
-
|
|
229
|
-
- spec/fixtures/action/event_signup_action.json
|
|
230
|
-
- spec/fixtures/allowed_user_field/get.json
|
|
231
|
-
- spec/fixtures/allowed_user_field/list.json
|
|
232
|
-
- spec/fixtures/allowed_user_field/list_filtered.json
|
|
233
|
-
- spec/fixtures/error.json
|
|
234
|
-
- spec/fixtures/page/campaign.json
|
|
235
|
-
- spec/fixtures/page/collection.json
|
|
236
|
-
- spec/fixtures/page/find_campaign.json
|
|
237
|
-
- spec/fixtures/page/find_event_create.json
|
|
238
|
-
- spec/fixtures/page/find_event_signup.json
|
|
239
|
-
- spec/fixtures/page/object.json
|
|
240
|
-
- spec/fixtures/phone/object.json
|
|
241
|
-
- spec/fixtures/user/object_with_phones.json
|
|
242
|
-
- spec/fixtures/user/object_without_phones.json
|
|
243
|
-
- spec/lib/action_kit_rest/actions/event_create_action_spec.rb
|
|
244
|
-
- spec/lib/action_kit_rest/actions/event_signup_action_spec.rb
|
|
245
|
-
- spec/lib/action_kit_rest/allowed_user_field_spec.rb
|
|
246
|
-
- spec/lib/action_kit_rest/api_spec.rb
|
|
247
|
-
- spec/lib/action_kit_rest/logger_spec.rb
|
|
248
|
-
- spec/lib/action_kit_rest/page_spec.rb
|
|
249
|
-
- spec/lib/action_kit_rest/pages/event_campaign_page_spec.rb
|
|
250
|
-
- spec/lib/action_kit_rest/pages/import_page_spec.rb
|
|
251
|
-
- spec/lib/action_kit_rest/response/collection_spec.rb
|
|
252
|
-
- spec/lib/action_kit_rest/response/validation_error_spec.rb
|
|
253
|
-
- spec/lib/action_kit_rest/response/wrapper_spec.rb
|
|
254
|
-
- spec/lib/action_kit_rest/user_spec.rb
|
|
255
|
-
- spec/spec_helper.rb
|
|
256
|
-
- spec/support/shared_contexts/stub_logger.rb
|
|
257
|
-
homepage: http://github.com/controlshift/action_kit_rest
|
|
266
|
+
homepage: https://github.com/controlshift/action_kit_rest
|
|
258
267
|
licenses:
|
|
259
268
|
- MIT
|
|
260
|
-
metadata:
|
|
261
|
-
|
|
269
|
+
metadata:
|
|
270
|
+
homepage_uri: https://github.com/controlshift/action_kit_rest
|
|
271
|
+
source_code_uri: https://github.com/controlshift/action_kit_rest
|
|
272
|
+
changelog_uri: https://github.com/controlshift/action_kit_rest/blob/main/CHANGELOG.md
|
|
273
|
+
rubygems_mfa_required: 'true'
|
|
262
274
|
rdoc_options: []
|
|
263
275
|
require_paths:
|
|
264
276
|
- lib
|
|
@@ -266,15 +278,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
266
278
|
requirements:
|
|
267
279
|
- - ">="
|
|
268
280
|
- !ruby/object:Gem::Version
|
|
269
|
-
version:
|
|
281
|
+
version: 3.0.0
|
|
270
282
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
271
283
|
requirements:
|
|
272
284
|
- - ">="
|
|
273
285
|
- !ruby/object:Gem::Version
|
|
274
286
|
version: '0'
|
|
275
287
|
requirements: []
|
|
276
|
-
rubygems_version:
|
|
277
|
-
signing_key:
|
|
288
|
+
rubygems_version: 4.0.3
|
|
278
289
|
specification_version: 4
|
|
279
290
|
summary: A wrapper for the ActionKit REST API
|
|
280
291
|
test_files: []
|
data/.document
DELETED
data/.github/workflows/ci.yml
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
on: [push]
|
|
3
|
-
|
|
4
|
-
jobs:
|
|
5
|
-
test:
|
|
6
|
-
runs-on: ubuntu-latest
|
|
7
|
-
steps:
|
|
8
|
-
- uses: actions/checkout@v2
|
|
9
|
-
- uses: ruby/setup-ruby@v1
|
|
10
|
-
with:
|
|
11
|
-
ruby-version: 3.2
|
|
12
|
-
bundler-cache: true
|
|
13
|
-
- run: bundle install
|
|
14
|
-
- run: bundle exec rspec
|
|
15
|
-
rubocop:
|
|
16
|
-
runs-on: ubuntu-latest
|
|
17
|
-
steps:
|
|
18
|
-
- uses: actions/checkout@v2
|
|
19
|
-
- uses: ruby/setup-ruby@v1
|
|
20
|
-
with:
|
|
21
|
-
ruby-version: 3.2
|
|
22
|
-
bundler-cache: true
|
|
23
|
-
- run: bundle install
|
|
24
|
-
- run: bundle exec rubocop
|
data/action_kit_rest.gemspec
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
# Generated by juwelier
|
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
-
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
|
-
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: action_kit_rest 0.4.11 ruby lib
|
|
6
|
-
|
|
7
|
-
Gem::Specification.new do |s|
|
|
8
|
-
s.name = "action_kit_rest".freeze
|
|
9
|
-
s.version = "0.4.11"
|
|
10
|
-
|
|
11
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
12
|
-
s.require_paths = ["lib".freeze]
|
|
13
|
-
s.authors = ["Nathan Woodhull".freeze, "Diego Marcet".freeze, "Grey Moore".freeze]
|
|
14
|
-
s.date = "2025-10-27"
|
|
15
|
-
s.description = "Gem for interacting with the ActionKit API".freeze
|
|
16
|
-
s.email = "systems@controlshiftlabs.com".freeze
|
|
17
|
-
s.extra_rdoc_files = [
|
|
18
|
-
"LICENSE.txt",
|
|
19
|
-
"README.md"
|
|
20
|
-
]
|
|
21
|
-
s.files = [
|
|
22
|
-
".document",
|
|
23
|
-
".github/workflows/ci.yml",
|
|
24
|
-
".rspec",
|
|
25
|
-
".rubocop.yml",
|
|
26
|
-
".ruby-gemset",
|
|
27
|
-
".ruby-version",
|
|
28
|
-
"CHANGELOG.md",
|
|
29
|
-
"Gemfile",
|
|
30
|
-
"LICENSE.txt",
|
|
31
|
-
"README.md",
|
|
32
|
-
"Rakefile",
|
|
33
|
-
"action_kit_rest.gemspec",
|
|
34
|
-
"lib/action_kit_rest.rb",
|
|
35
|
-
"lib/action_kit_rest/action.rb",
|
|
36
|
-
"lib/action_kit_rest/actions/event_create_action.rb",
|
|
37
|
-
"lib/action_kit_rest/actions/event_signup_action.rb",
|
|
38
|
-
"lib/action_kit_rest/actions/unsubscribe_action.rb",
|
|
39
|
-
"lib/action_kit_rest/allowed_user_field.rb",
|
|
40
|
-
"lib/action_kit_rest/api.rb",
|
|
41
|
-
"lib/action_kit_rest/base.rb",
|
|
42
|
-
"lib/action_kit_rest/client.rb",
|
|
43
|
-
"lib/action_kit_rest/event.rb",
|
|
44
|
-
"lib/action_kit_rest/event_signup.rb",
|
|
45
|
-
"lib/action_kit_rest/language.rb",
|
|
46
|
-
"lib/action_kit_rest/list.rb",
|
|
47
|
-
"lib/action_kit_rest/page.rb",
|
|
48
|
-
"lib/action_kit_rest/pages/base.rb",
|
|
49
|
-
"lib/action_kit_rest/pages/donation_page.rb",
|
|
50
|
-
"lib/action_kit_rest/pages/event_campaign_page.rb",
|
|
51
|
-
"lib/action_kit_rest/pages/import_page.rb",
|
|
52
|
-
"lib/action_kit_rest/pages/signup_page.rb",
|
|
53
|
-
"lib/action_kit_rest/pages/unsubscribe_page.rb",
|
|
54
|
-
"lib/action_kit_rest/phone.rb",
|
|
55
|
-
"lib/action_kit_rest/railties.rb",
|
|
56
|
-
"lib/action_kit_rest/response/collection.rb",
|
|
57
|
-
"lib/action_kit_rest/response/raise_error.rb",
|
|
58
|
-
"lib/action_kit_rest/response/validation_error.rb",
|
|
59
|
-
"lib/action_kit_rest/response/wrapper.rb",
|
|
60
|
-
"lib/action_kit_rest/tag.rb",
|
|
61
|
-
"lib/action_kit_rest/user.rb",
|
|
62
|
-
"lib/action_kit_rest/version.rb",
|
|
63
|
-
"spec/fixtures/action/event_create_action.json",
|
|
64
|
-
"spec/fixtures/action/event_signup_action.json",
|
|
65
|
-
"spec/fixtures/allowed_user_field/get.json",
|
|
66
|
-
"spec/fixtures/allowed_user_field/list.json",
|
|
67
|
-
"spec/fixtures/allowed_user_field/list_filtered.json",
|
|
68
|
-
"spec/fixtures/error.json",
|
|
69
|
-
"spec/fixtures/page/campaign.json",
|
|
70
|
-
"spec/fixtures/page/collection.json",
|
|
71
|
-
"spec/fixtures/page/find_campaign.json",
|
|
72
|
-
"spec/fixtures/page/find_event_create.json",
|
|
73
|
-
"spec/fixtures/page/find_event_signup.json",
|
|
74
|
-
"spec/fixtures/page/object.json",
|
|
75
|
-
"spec/fixtures/phone/object.json",
|
|
76
|
-
"spec/fixtures/user/object_with_phones.json",
|
|
77
|
-
"spec/fixtures/user/object_without_phones.json",
|
|
78
|
-
"spec/lib/action_kit_rest/actions/event_create_action_spec.rb",
|
|
79
|
-
"spec/lib/action_kit_rest/actions/event_signup_action_spec.rb",
|
|
80
|
-
"spec/lib/action_kit_rest/allowed_user_field_spec.rb",
|
|
81
|
-
"spec/lib/action_kit_rest/api_spec.rb",
|
|
82
|
-
"spec/lib/action_kit_rest/logger_spec.rb",
|
|
83
|
-
"spec/lib/action_kit_rest/page_spec.rb",
|
|
84
|
-
"spec/lib/action_kit_rest/pages/event_campaign_page_spec.rb",
|
|
85
|
-
"spec/lib/action_kit_rest/pages/import_page_spec.rb",
|
|
86
|
-
"spec/lib/action_kit_rest/response/collection_spec.rb",
|
|
87
|
-
"spec/lib/action_kit_rest/response/validation_error_spec.rb",
|
|
88
|
-
"spec/lib/action_kit_rest/response/wrapper_spec.rb",
|
|
89
|
-
"spec/lib/action_kit_rest/user_spec.rb",
|
|
90
|
-
"spec/spec_helper.rb",
|
|
91
|
-
"spec/support/shared_contexts/stub_logger.rb"
|
|
92
|
-
]
|
|
93
|
-
s.homepage = "http://github.com/controlshift/action_kit_rest".freeze
|
|
94
|
-
s.licenses = ["MIT".freeze]
|
|
95
|
-
s.rubygems_version = "3.4.10".freeze
|
|
96
|
-
s.summary = "A wrapper for the ActionKit REST API".freeze
|
|
97
|
-
|
|
98
|
-
s.specification_version = 4
|
|
99
|
-
|
|
100
|
-
s.add_runtime_dependency(%q<vertebrae>.freeze, [">= 0.6.0"])
|
|
101
|
-
s.add_development_dependency(%q<bundler>.freeze, [">= 2.0", "< 3.0"])
|
|
102
|
-
s.add_development_dependency(%q<byebug>.freeze, [">= 0"])
|
|
103
|
-
s.add_development_dependency(%q<em-http-request>.freeze, [">= 1.1.5", "< 2.0"])
|
|
104
|
-
s.add_development_dependency(%q<em-synchrony>.freeze, [">= 1.0.6", "< 2.0"])
|
|
105
|
-
s.add_development_dependency(%q<eventmachine>.freeze, [">= 1.2.5", "< 2.0"])
|
|
106
|
-
s.add_development_dependency(%q<juwelier>.freeze, [">= 0"])
|
|
107
|
-
s.add_development_dependency(%q<rspec>.freeze, ["~> 3.7"])
|
|
108
|
-
s.add_development_dependency(%q<rubocop>.freeze, [">= 0"])
|
|
109
|
-
s.add_development_dependency(%q<webmock>.freeze, ["~> 3.3"])
|
|
110
|
-
end
|
|
111
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"akid": "xyz.abcd.123456",
|
|
3
|
-
"created_at": "2017-09-04T20:51:14",
|
|
4
|
-
"created_user": false,
|
|
5
|
-
"event": "/rest/v1/event/999/",
|
|
6
|
-
"fields": { "is_virtual": "0"},
|
|
7
|
-
"id": 12345,
|
|
8
|
-
"ip_address": "127.0.0.1",
|
|
9
|
-
"is_forwarded": false,
|
|
10
|
-
"link": null,
|
|
11
|
-
"mailing": null,
|
|
12
|
-
"opq_id": "",
|
|
13
|
-
"page": "/rest/v1/eventcreatepage/818/",
|
|
14
|
-
"referring_mailing": null,
|
|
15
|
-
"referring_user": null,
|
|
16
|
-
"resource_uri": "/rest/v1/eventcreateaction/12345/",
|
|
17
|
-
"source": "restful_api",
|
|
18
|
-
"status": "complete",
|
|
19
|
-
"subscribed_user": false,
|
|
20
|
-
"taf_emails_sent": null,
|
|
21
|
-
"type": "EventCreate",
|
|
22
|
-
"updated_at": "2017-09-04T20:51:15",
|
|
23
|
-
"user": "/rest/v1/user/112233/"
|
|
24
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"akid": "xyz.abcd.123456",
|
|
3
|
-
"created_at": "2017-12-01T21:27:33",
|
|
4
|
-
"created_user": false,
|
|
5
|
-
"fields": { "id": "54321"},
|
|
6
|
-
"id": 54321,
|
|
7
|
-
"ip_address": null,
|
|
8
|
-
"is_forwarded": false,
|
|
9
|
-
"link": null,
|
|
10
|
-
"mailing": null,
|
|
11
|
-
"opq_id": "",
|
|
12
|
-
"page": "/rest/v1/eventsignuppage/253/",
|
|
13
|
-
"referring_mailing": null,
|
|
14
|
-
"referring_user": "/rest/v1/user/111/",
|
|
15
|
-
"resource_uri": "/rest/v1/eventsignupaction/54321/",
|
|
16
|
-
"signup": "/rest/v1/eventsignup/888/",
|
|
17
|
-
"source": "restful_api",
|
|
18
|
-
"status": "complete",
|
|
19
|
-
"subscribed_user": false,
|
|
20
|
-
"taf_emails_sent": 1,
|
|
21
|
-
"type": "EventSignup",
|
|
22
|
-
"updated_at": "2012-02-23T20:26:24",
|
|
23
|
-
"user": "/rest/v1/user/111/"
|
|
24
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"allow_multiple": false,
|
|
3
|
-
"always_show": false,
|
|
4
|
-
"choices": [],
|
|
5
|
-
"created_at": "2016-10-19T01:39:35",
|
|
6
|
-
"description": "",
|
|
7
|
-
"display_name": "Foo",
|
|
8
|
-
"field_choices": "",
|
|
9
|
-
"field_default": "",
|
|
10
|
-
"field_length": null,
|
|
11
|
-
"field_regex": "",
|
|
12
|
-
"field_type": "string",
|
|
13
|
-
"hidden": false,
|
|
14
|
-
"name": "foo",
|
|
15
|
-
"order_index": 0,
|
|
16
|
-
"required": false,
|
|
17
|
-
"resource_uri": "/rest/v1/alloweduserfield/age/",
|
|
18
|
-
"updated_at": "2016-10-19T01:39:35"
|
|
19
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"meta": {
|
|
3
|
-
"limit": 20,
|
|
4
|
-
"next": "/rest/v1/alloweduserfield/?_offset=20&_limit=20",
|
|
5
|
-
"offset": 0,
|
|
6
|
-
"previous": null,
|
|
7
|
-
"total_count": 124
|
|
8
|
-
},
|
|
9
|
-
"objects": [
|
|
10
|
-
{
|
|
11
|
-
"allow_multiple": false,
|
|
12
|
-
"always_show": false,
|
|
13
|
-
"choices": [],
|
|
14
|
-
"created_at": "2016-10-19T01:39:35",
|
|
15
|
-
"description": "",
|
|
16
|
-
"display_name": "age",
|
|
17
|
-
"field_choices": "",
|
|
18
|
-
"field_default": "",
|
|
19
|
-
"field_length": null,
|
|
20
|
-
"field_regex": "",
|
|
21
|
-
"field_type": "integer",
|
|
22
|
-
"hidden": false,
|
|
23
|
-
"name": "age",
|
|
24
|
-
"order_index": 0,
|
|
25
|
-
"required": false,
|
|
26
|
-
"resource_uri": "/rest/v1/alloweduserfield/age/",
|
|
27
|
-
"updated_at": "2016-10-19T01:39:35"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"allow_multiple": false,
|
|
31
|
-
"always_show": false,
|
|
32
|
-
"choices": [],
|
|
33
|
-
"created_at": "2017-08-21T00:50:53",
|
|
34
|
-
"description": "",
|
|
35
|
-
"display_name": "email",
|
|
36
|
-
"field_choices": "",
|
|
37
|
-
"field_default": "",
|
|
38
|
-
"field_length": null,
|
|
39
|
-
"field_regex": "",
|
|
40
|
-
"field_type": "text",
|
|
41
|
-
"hidden": false,
|
|
42
|
-
"name": "email",
|
|
43
|
-
"order_index": 0,
|
|
44
|
-
"required": false,
|
|
45
|
-
"resource_uri": "/rest/v1/alloweduserfield/email/",
|
|
46
|
-
"updated_at": "2017-08-21T00:50:53"
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"meta": {
|
|
3
|
-
"limit": 20,
|
|
4
|
-
"next": "/rest/v1/alloweduserfield/?_offset=20&_limit=20",
|
|
5
|
-
"offset": 0,
|
|
6
|
-
"previous": null,
|
|
7
|
-
"total_count": 124
|
|
8
|
-
},
|
|
9
|
-
"objects": [
|
|
10
|
-
{
|
|
11
|
-
"allow_multiple": false,
|
|
12
|
-
"always_show": false,
|
|
13
|
-
"choices": [],
|
|
14
|
-
"created_at": "2016-10-19T01:39:35",
|
|
15
|
-
"description": "",
|
|
16
|
-
"display_name": "age",
|
|
17
|
-
"field_choices": "",
|
|
18
|
-
"field_default": "",
|
|
19
|
-
"field_length": null,
|
|
20
|
-
"field_regex": "",
|
|
21
|
-
"field_type": "integer",
|
|
22
|
-
"hidden": false,
|
|
23
|
-
"name": "age",
|
|
24
|
-
"order_index": 0,
|
|
25
|
-
"required": false,
|
|
26
|
-
"resource_uri": "/rest/v1/alloweduserfield/age/",
|
|
27
|
-
"updated_at": "2016-10-19T01:39:35"
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
}
|