action_kit_rest 0.4.11 → 1.0.1
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 +15 -0
- data/Gemfile +3 -14
- data/Rakefile +4 -38
- data/action_kit_rest.gemspec +43 -105
- 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 +65 -47
- data/.document +0 -5
- data/.github/workflows/ci.yml +0 -24
- 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: 1d74ca448bd67ee022f3f27b92a17d41bb58c82fbd336652fc8b4726f06d723b
|
|
4
|
+
data.tar.gz: 1cdf4c0227100534bbd23cfdb96518e3f44285d7a09e6f1b48c67c70afed3bbb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5aa12157120953d907ed9dc6f98160cdbd26f8f1850f2c9b50f1c6f558fcb55d9f049f1aed6a53feeec3fb0432a9d4c93d439da38be0411f07ada2a5cd64f371
|
|
7
|
+
data.tar.gz: 99e3c9fb33f0aeceaabb71091a4488e385a90bdc7834018f40e8d0c5248b4eeb0776794b6b2f7133497f0fddf5322e4220b9916fac93211f11bbcc262e743bf9
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
4.0.1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.1] - 2026-09-29
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- Loosened the `vertebrae` dependency from `~> 1.0.5` to `>= 1.0.5, < 3.0`, to allow picking up vertebrae 2.0.0 (fixes a duplicate-slash request path bug, see controlshift/vertebrae#8)
|
|
7
|
+
|
|
8
|
+
## [1.0.0] - 2026-02-09
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- Upgraded to Ruby 4.0.1 compatibility
|
|
12
|
+
- Upgraded Faraday from 1.x to 2.14.1 for Ruby 4.0+ support
|
|
13
|
+
- Upgraded Vertebrae from 0.8.0 to 1.0.5
|
|
14
|
+
- Upgraded Hashie from 3.6.0 to 5.1.0
|
|
15
|
+
- Removed juwelier dependency in favor of standard Bundler gem tasks
|
|
16
|
+
- Updated Faraday middleware to use Faraday 2.x API
|
|
17
|
+
|
|
3
18
|
## [0.4.11] - 2025-10-27
|
|
4
19
|
|
|
5
20
|
### 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/action_kit_rest.gemspec
CHANGED
|
@@ -1,111 +1,49 @@
|
|
|
1
|
-
#
|
|
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
|
|
1
|
+
# frozen_string_literal: true
|
|
6
2
|
|
|
7
|
-
|
|
8
|
-
s.name = "action_kit_rest".freeze
|
|
9
|
-
s.version = "0.4.11"
|
|
3
|
+
require_relative "lib/action_kit_rest/version"
|
|
10
4
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
|
5
|
+
Gem::Specification.new do |spec|
|
|
6
|
+
spec.name = "action_kit_rest"
|
|
7
|
+
spec.version = ActionKitRest::VERSION::STRING
|
|
8
|
+
spec.authors = ["Nathan Woodhull", "Diego Marcet", "Grey Moore", "Owens Ehimen"]
|
|
9
|
+
spec.email = ["systems@controlshiftlabs.com"]
|
|
97
10
|
|
|
98
|
-
|
|
11
|
+
spec.summary = "A wrapper for the ActionKit REST API"
|
|
12
|
+
spec.description = "Gem for interacting with the ActionKit API"
|
|
13
|
+
spec.homepage = "https://github.com/controlshift/action_kit_rest"
|
|
14
|
+
spec.license = "MIT"
|
|
15
|
+
spec.required_ruby_version = ">= 3.0.0"
|
|
99
16
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
17
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
|
18
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
|
19
|
+
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/main/CHANGELOG.md"
|
|
20
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
|
21
|
+
|
|
22
|
+
# Specify which files should be added to the gem when it is released.
|
|
23
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
24
|
+
spec.files = Dir.chdir(__dir__) do
|
|
25
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
|
26
|
+
(File.expand_path(f) == __FILE__) ||
|
|
27
|
+
f.start_with?(*%w[bin/ spec/ .git .github .document .idea coverage/])
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
spec.require_paths = ["lib"].freeze
|
|
31
|
+
|
|
32
|
+
# Runtime dependencies
|
|
33
|
+
spec.add_dependency "vertebrae", ">= 1.0.5", "< 3.0"
|
|
34
|
+
spec.add_dependency "hashie", "~> 5.1.0"
|
|
35
|
+
spec.add_dependency "faraday", "~> 2.0" # We use Faraday 2.x APIs directly (Faraday::Middleware, etc.)
|
|
36
|
+
spec.add_dependency "faraday-mashify", "~> 1.0" # Required in lib/action_kit_rest/api.rb
|
|
37
|
+
|
|
38
|
+
# Development dependencies
|
|
39
|
+
spec.add_development_dependency "bundler", ">= 2.0", "< 3.0"
|
|
40
|
+
spec.add_development_dependency "byebug"
|
|
41
|
+
spec.add_development_dependency "em-http-request", ">= 1.1.5", "< 2.0"
|
|
42
|
+
spec.add_development_dependency "em-synchrony", ">= 1.0.6", "< 2.0"
|
|
43
|
+
spec.add_development_dependency "eventmachine", ">= 1.2.5", "< 2.0"
|
|
44
|
+
spec.add_development_dependency "rake"
|
|
45
|
+
spec.add_development_dependency "rspec", "~> 3.7"
|
|
46
|
+
spec.add_development_dependency "rubocop"
|
|
47
|
+
spec.add_development_dependency "webmock", "~> 3.3"
|
|
110
48
|
end
|
|
111
49
|
|
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,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
|
+
version: 1.0.1
|
|
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
|
|
@@ -18,14 +18,62 @@ dependencies:
|
|
|
18
18
|
requirements:
|
|
19
19
|
- - ">="
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 0.
|
|
21
|
+
version: 1.0.5
|
|
22
|
+
- - "<"
|
|
23
|
+
- !ruby/object:Gem::Version
|
|
24
|
+
version: '3.0'
|
|
22
25
|
type: :runtime
|
|
23
26
|
prerelease: false
|
|
24
27
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
28
|
requirements:
|
|
26
29
|
- - ">="
|
|
27
30
|
- !ruby/object:Gem::Version
|
|
28
|
-
version: 0.
|
|
31
|
+
version: 1.0.5
|
|
32
|
+
- - "<"
|
|
33
|
+
- !ruby/object:Gem::Version
|
|
34
|
+
version: '3.0'
|
|
35
|
+
- !ruby/object:Gem::Dependency
|
|
36
|
+
name: hashie
|
|
37
|
+
requirement: !ruby/object:Gem::Requirement
|
|
38
|
+
requirements:
|
|
39
|
+
- - "~>"
|
|
40
|
+
- !ruby/object:Gem::Version
|
|
41
|
+
version: 5.1.0
|
|
42
|
+
type: :runtime
|
|
43
|
+
prerelease: false
|
|
44
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
45
|
+
requirements:
|
|
46
|
+
- - "~>"
|
|
47
|
+
- !ruby/object:Gem::Version
|
|
48
|
+
version: 5.1.0
|
|
49
|
+
- !ruby/object:Gem::Dependency
|
|
50
|
+
name: faraday
|
|
51
|
+
requirement: !ruby/object:Gem::Requirement
|
|
52
|
+
requirements:
|
|
53
|
+
- - "~>"
|
|
54
|
+
- !ruby/object:Gem::Version
|
|
55
|
+
version: '2.0'
|
|
56
|
+
type: :runtime
|
|
57
|
+
prerelease: false
|
|
58
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
59
|
+
requirements:
|
|
60
|
+
- - "~>"
|
|
61
|
+
- !ruby/object:Gem::Version
|
|
62
|
+
version: '2.0'
|
|
63
|
+
- !ruby/object:Gem::Dependency
|
|
64
|
+
name: faraday-mashify
|
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
|
66
|
+
requirements:
|
|
67
|
+
- - "~>"
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
version: '1.0'
|
|
70
|
+
type: :runtime
|
|
71
|
+
prerelease: false
|
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
73
|
+
requirements:
|
|
74
|
+
- - "~>"
|
|
75
|
+
- !ruby/object:Gem::Version
|
|
76
|
+
version: '1.0'
|
|
29
77
|
- !ruby/object:Gem::Dependency
|
|
30
78
|
name: bundler
|
|
31
79
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -121,7 +169,7 @@ dependencies:
|
|
|
121
169
|
- !ruby/object:Gem::Version
|
|
122
170
|
version: '2.0'
|
|
123
171
|
- !ruby/object:Gem::Dependency
|
|
124
|
-
name:
|
|
172
|
+
name: rake
|
|
125
173
|
requirement: !ruby/object:Gem::Requirement
|
|
126
174
|
requirements:
|
|
127
175
|
- - ">="
|
|
@@ -177,15 +225,12 @@ dependencies:
|
|
|
177
225
|
- !ruby/object:Gem::Version
|
|
178
226
|
version: '3.3'
|
|
179
227
|
description: Gem for interacting with the ActionKit API
|
|
180
|
-
email:
|
|
228
|
+
email:
|
|
229
|
+
- systems@controlshiftlabs.com
|
|
181
230
|
executables: []
|
|
182
231
|
extensions: []
|
|
183
|
-
extra_rdoc_files:
|
|
184
|
-
- LICENSE.txt
|
|
185
|
-
- README.md
|
|
232
|
+
extra_rdoc_files: []
|
|
186
233
|
files:
|
|
187
|
-
- ".document"
|
|
188
|
-
- ".github/workflows/ci.yml"
|
|
189
234
|
- ".rspec"
|
|
190
235
|
- ".rubocop.yml"
|
|
191
236
|
- ".ruby-gemset"
|
|
@@ -225,40 +270,14 @@ files:
|
|
|
225
270
|
- lib/action_kit_rest/tag.rb
|
|
226
271
|
- lib/action_kit_rest/user.rb
|
|
227
272
|
- 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
|
|
273
|
+
homepage: https://github.com/controlshift/action_kit_rest
|
|
258
274
|
licenses:
|
|
259
275
|
- MIT
|
|
260
|
-
metadata:
|
|
261
|
-
|
|
276
|
+
metadata:
|
|
277
|
+
homepage_uri: https://github.com/controlshift/action_kit_rest
|
|
278
|
+
source_code_uri: https://github.com/controlshift/action_kit_rest
|
|
279
|
+
changelog_uri: https://github.com/controlshift/action_kit_rest/blob/main/CHANGELOG.md
|
|
280
|
+
rubygems_mfa_required: 'true'
|
|
262
281
|
rdoc_options: []
|
|
263
282
|
require_paths:
|
|
264
283
|
- lib
|
|
@@ -266,15 +285,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
266
285
|
requirements:
|
|
267
286
|
- - ">="
|
|
268
287
|
- !ruby/object:Gem::Version
|
|
269
|
-
version:
|
|
288
|
+
version: 3.0.0
|
|
270
289
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
271
290
|
requirements:
|
|
272
291
|
- - ">="
|
|
273
292
|
- !ruby/object:Gem::Version
|
|
274
293
|
version: '0'
|
|
275
294
|
requirements: []
|
|
276
|
-
rubygems_version:
|
|
277
|
-
signing_key:
|
|
295
|
+
rubygems_version: 4.0.3
|
|
278
296
|
specification_version: 4
|
|
279
297
|
summary: A wrapper for the ActionKit REST API
|
|
280
298
|
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
|
|
@@ -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
|
-
}
|