stbaldricks 1.5.1.pre
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 +7 -0
- data/LICENSE +21 -0
- data/lib/stbaldricks.rb +2 -0
- data/lib/stbaldricks/api.rb +7 -0
- data/lib/stbaldricks/api_connector.rb +47 -0
- data/lib/stbaldricks/client.rb +7 -0
- data/lib/stbaldricks/configuration.rb +47 -0
- data/lib/stbaldricks/default_logger.rb +24 -0
- data/lib/stbaldricks/endpoints/communicate.rb +67 -0
- data/lib/stbaldricks/endpoints/config.rb +18 -0
- data/lib/stbaldricks/endpoints/contact.rb +12 -0
- data/lib/stbaldricks/endpoints/event.rb +39 -0
- data/lib/stbaldricks/endpoints/event_application.rb +32 -0
- data/lib/stbaldricks/endpoints/fund.rb +24 -0
- data/lib/stbaldricks/endpoints/kid.rb +24 -0
- data/lib/stbaldricks/endpoints/kid_honor.rb +17 -0
- data/lib/stbaldricks/endpoints/lib/entity.rb +247 -0
- data/lib/stbaldricks/endpoints/message.rb +27 -0
- data/lib/stbaldricks/endpoints/newsletter_recipient.rb +41 -0
- data/lib/stbaldricks/endpoints/participant.rb +66 -0
- data/lib/stbaldricks/endpoints/photo.rb +51 -0
- data/lib/stbaldricks/endpoints/recurring_gift.rb +18 -0
- data/lib/stbaldricks/endpoints/search.rb +63 -0
- data/lib/stbaldricks/endpoints/shave_schedule.rb +28 -0
- data/lib/stbaldricks/endpoints/user.rb +106 -0
- data/lib/stbaldricks/entities/batch.rb +29 -0
- data/lib/stbaldricks/entities/campaign.rb +37 -0
- data/lib/stbaldricks/entities/communicate.rb +20 -0
- data/lib/stbaldricks/entities/config.rb +41 -0
- data/lib/stbaldricks/entities/contact.rb +40 -0
- data/lib/stbaldricks/entities/contact_group.rb +29 -0
- data/lib/stbaldricks/entities/document_library.rb +19 -0
- data/lib/stbaldricks/entities/document_library_category.rb +14 -0
- data/lib/stbaldricks/entities/donation.rb +372 -0
- data/lib/stbaldricks/entities/donation/donor_type.rb +13 -0
- data/lib/stbaldricks/entities/donation/how_created.rb +22 -0
- data/lib/stbaldricks/entities/donation/payment_type.rb +17 -0
- data/lib/stbaldricks/entities/donation/promo_code.rb +22 -0
- data/lib/stbaldricks/entities/donation/recipient_type.rb +17 -0
- data/lib/stbaldricks/entities/donation/special_donation_type.rb +78 -0
- data/lib/stbaldricks/entities/donation/status.rb +12 -0
- data/lib/stbaldricks/entities/donation/submitter_type.rb +13 -0
- data/lib/stbaldricks/entities/donor.rb +15 -0
- data/lib/stbaldricks/entities/event.rb +173 -0
- data/lib/stbaldricks/entities/event/fund_relationship_type.rb +15 -0
- data/lib/stbaldricks/entities/event/how_created.rb +14 -0
- data/lib/stbaldricks/entities/event/promo_code.rb +11 -0
- data/lib/stbaldricks/entities/event/status.rb +13 -0
- data/lib/stbaldricks/entities/event/sub_type.rb +16 -0
- data/lib/stbaldricks/entities/event/type.rb +12 -0
- data/lib/stbaldricks/entities/event_application.rb +135 -0
- data/lib/stbaldricks/entities/event_application/model_type.rb +15 -0
- data/lib/stbaldricks/entities/event_application/status.rb +23 -0
- data/lib/stbaldricks/entities/event_donation_summary.rb +18 -0
- data/lib/stbaldricks/entities/event_participant_summary.rb +17 -0
- data/lib/stbaldricks/entities/event_supporter.rb +24 -0
- data/lib/stbaldricks/entities/fund.rb +98 -0
- data/lib/stbaldricks/entities/fundraiser.rb +124 -0
- data/lib/stbaldricks/entities/international_partner.rb +58 -0
- data/lib/stbaldricks/entities/kid.rb +190 -0
- data/lib/stbaldricks/entities/kid_honor.rb +123 -0
- data/lib/stbaldricks/entities/lib/address.rb +25 -0
- data/lib/stbaldricks/entities/lib/base.rb +505 -0
- data/lib/stbaldricks/entities/lib/cacheable.rb +43 -0
- data/lib/stbaldricks/entities/lib/default_cacheable.rb +17 -0
- data/lib/stbaldricks/entities/lib/email_address.rb +15 -0
- data/lib/stbaldricks/entities/lib/error.rb +38 -0
- data/lib/stbaldricks/entities/lib/fundraising_page.rb +20 -0
- data/lib/stbaldricks/entities/lib/geo_location.rb +9 -0
- data/lib/stbaldricks/entities/lib/location.rb +27 -0
- data/lib/stbaldricks/entities/lib/name.rb +17 -0
- data/lib/stbaldricks/entities/lib/not_implemented_object.rb +32 -0
- data/lib/stbaldricks/entities/lib/opt_out_settings.rb +21 -0
- data/lib/stbaldricks/entities/lib/payment.rb +86 -0
- data/lib/stbaldricks/entities/lib/permissions.rb +33 -0
- data/lib/stbaldricks/entities/lib/phone.rb +29 -0
- data/lib/stbaldricks/entities/lib/third_party_media.rb +20 -0
- data/lib/stbaldricks/entities/lib/top_level.rb +99 -0
- data/lib/stbaldricks/entities/lib/venue.rb +18 -0
- data/lib/stbaldricks/entities/memorial.rb +61 -0
- data/lib/stbaldricks/entities/message.rb +65 -0
- data/lib/stbaldricks/entities/newsletter_recipient.rb +17 -0
- data/lib/stbaldricks/entities/organization.rb +90 -0
- data/lib/stbaldricks/entities/page.rb +49 -0
- data/lib/stbaldricks/entities/participant.rb +216 -0
- data/lib/stbaldricks/entities/person.rb +403 -0
- data/lib/stbaldricks/entities/photo.rb +260 -0
- data/lib/stbaldricks/entities/recurring_gift.rb +215 -0
- data/lib/stbaldricks/entities/response.rb +37 -0
- data/lib/stbaldricks/entities/search.rb +223 -0
- data/lib/stbaldricks/entities/section.rb +15 -0
- data/lib/stbaldricks/entities/shave_schedule.rb +69 -0
- data/lib/stbaldricks/entities/summary.rb +32 -0
- data/lib/stbaldricks/entities/team.rb +95 -0
- data/lib/stbaldricks/entities/user.rb +76 -0
- data/lib/stbaldricks/enums/country.rb +223 -0
- data/lib/stbaldricks/enums/feature.rb +29 -0
- data/lib/stbaldricks/enums/league_status.rb +16 -0
- data/lib/stbaldricks/enums/model_type.rb +39 -0
- data/lib/stbaldricks/enums/permission.rb +223 -0
- data/lib/stbaldricks/enums/permission_model_type.rb +21 -0
- data/lib/stbaldricks/enums/province.rb +39 -0
- data/lib/stbaldricks/enums/state.rb +137 -0
- data/lib/stbaldricks/enums/top_level_category_type.rb +25 -0
- data/lib/stbaldricks/errors.rb +18 -0
- data/lib/stbaldricks/log.rb +16 -0
- data/lib/stbaldricks/patches/array.rb +6 -0
- data/lib/stbaldricks/patches/boolean.rb +25 -0
- data/lib/stbaldricks/patches/class.rb +13 -0
- data/lib/stbaldricks/patches/float.rb +9 -0
- data/lib/stbaldricks/patches/hash.rb +16 -0
- data/lib/stbaldricks/patches/integer.rb +9 -0
- data/lib/stbaldricks/patches/nil.rb +25 -0
- data/lib/stbaldricks/patches/string.rb +54 -0
- data/lib/stbaldricks/request.rb +146 -0
- data/lib/stbaldricks/version.rb +5 -0
- metadata +215 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module SBF
|
|
2
|
+
module Client
|
|
3
|
+
module TopLevelCategoryType
|
|
4
|
+
FUNDRAISING_TOOLBOX = 'Fundraising Toolbox'
|
|
5
|
+
VEO_AND_CORE_COMMITTEE = 'VEO & Core Committee'
|
|
6
|
+
PROMOTE_YOUR_EVENT = 'Promote Your Event'
|
|
7
|
+
DAY_OF_EVENT = 'Day of Event'
|
|
8
|
+
DO_WHAT_YOU_WANT = 'Do What You Want'
|
|
9
|
+
ON_DEMAND_VIDEOS = 'On-Demand Videos'
|
|
10
|
+
|
|
11
|
+
@list = {
|
|
12
|
+
FUNDRAISING_TOOLBOX => 'fundraising_toolbox',
|
|
13
|
+
VEO_AND_CORE_COMMITTEE => 'veo_and_core_committee',
|
|
14
|
+
PROMOTE_YOUR_EVENT => 'promote_your_event',
|
|
15
|
+
DAY_OF_EVENT => 'day_of_event',
|
|
16
|
+
DO_WHAT_YOU_WANT => 'do_what_you_want',
|
|
17
|
+
ON_DEMAND_VIDEOS => 'on_demand_videos'
|
|
18
|
+
}.freeze
|
|
19
|
+
|
|
20
|
+
class << self
|
|
21
|
+
attr_reader :list
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module SBF
|
|
2
|
+
module Client
|
|
3
|
+
# Generic error for our client library
|
|
4
|
+
class StandardError < ::StandardError; end
|
|
5
|
+
|
|
6
|
+
# Errors that arise from misuse of the Client Library
|
|
7
|
+
class Error < SBF::Client::StandardError; end
|
|
8
|
+
|
|
9
|
+
# Errors from passing an invalid URI to the client
|
|
10
|
+
class InvalidURIError < SBF::Client::Error; end
|
|
11
|
+
|
|
12
|
+
# Error that occurs when you try to access something you didn't include in the request
|
|
13
|
+
class DataNotProvidedError < SBF::Client::StandardError; end
|
|
14
|
+
|
|
15
|
+
# Error that occurs when invalid data is passed into a cachable method
|
|
16
|
+
class CacheableInvalidDataError < SBF::Client::StandardError; end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
require 'singleton'
|
|
2
|
+
require 'stbaldricks/configuration'
|
|
3
|
+
|
|
4
|
+
module SBF
|
|
5
|
+
module Client
|
|
6
|
+
class LOG
|
|
7
|
+
include Singleton
|
|
8
|
+
|
|
9
|
+
REQUIRED_METHODS = [:debug, :info, :warn, :error, :fatal, :unknown, :add, :level]
|
|
10
|
+
|
|
11
|
+
def self.method_missing(sym, *args, &block)
|
|
12
|
+
SBF::Client::Configuration.logger.send(sym, *args, &block)
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module Boolean
|
|
2
|
+
def empty?
|
|
3
|
+
false
|
|
4
|
+
end
|
|
5
|
+
|
|
6
|
+
def to_b
|
|
7
|
+
self
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
class TrueClass
|
|
12
|
+
include Boolean
|
|
13
|
+
|
|
14
|
+
def blank?
|
|
15
|
+
false
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
class FalseClass
|
|
20
|
+
include Boolean
|
|
21
|
+
|
|
22
|
+
def blank?
|
|
23
|
+
true
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
class Hash
|
|
2
|
+
def symbolize!
|
|
3
|
+
keys.each do |key|
|
|
4
|
+
unless key.is_a? Symbol
|
|
5
|
+
value = delete(key)
|
|
6
|
+
# rubocop:disable RescueModifier
|
|
7
|
+
self[(key.to_sym rescue key) || key] = value
|
|
8
|
+
# rubocop:enable RescueModifier
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
value.symbolize! if value.is_a?(Hash) || value.is_a?(Array)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
self
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
class String
|
|
2
|
+
SNAKE_CASE_REGEX = Regexp.new('(?<!^)([[:upper:]])|([[:upper:]])')
|
|
3
|
+
ID_REGEX = Regexp.new('(^|_)i_d')
|
|
4
|
+
UUID_REGEX = Regexp.new('(^|_)u_u_id')
|
|
5
|
+
URL_REGEX = Regexp.new('(^|_)u_r_l')
|
|
6
|
+
MODULE_SEPARATOR = '::'
|
|
7
|
+
|
|
8
|
+
def camel_case
|
|
9
|
+
x = split('_').map do |e|
|
|
10
|
+
case e
|
|
11
|
+
when 'id', 'uuid', 'url'
|
|
12
|
+
e.upcase
|
|
13
|
+
|
|
14
|
+
else
|
|
15
|
+
# capitalize first character (capitalize will lowercase the rest of the word)
|
|
16
|
+
e[0] = e[0].capitalize
|
|
17
|
+
e
|
|
18
|
+
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
x.join
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def snake_case
|
|
26
|
+
gsub(SNAKE_CASE_REGEX) {
|
|
27
|
+
(Regexp.last_match[1] ? "_#{Regexp.last_match[1]}" : Regexp.last_match[2]).downcase
|
|
28
|
+
}.sub(ID_REGEX, '_id').sub(UUID_REGEX, '_uuid').sub(URL_REGEX, '_url')
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def blank?
|
|
32
|
+
strip.empty?
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def deconstantize
|
|
36
|
+
rpartition(MODULE_SEPARATOR).first
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def demodulize
|
|
40
|
+
rpartition(MODULE_SEPARATOR).last
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def to_class
|
|
44
|
+
split(MODULE_SEPARATOR).reduce(Object) { |a, e| a.const_get(e.to_sym) }
|
|
45
|
+
rescue
|
|
46
|
+
nil
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
def to_b
|
|
50
|
+
return false if self == 'false' || self == '0'
|
|
51
|
+
return true if self == 'true' || self == '1'
|
|
52
|
+
nil
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
require 'httmultiparty'
|
|
2
|
+
require 'singleton'
|
|
3
|
+
require 'stbaldricks/api'
|
|
4
|
+
require 'stbaldricks/api_connector'
|
|
5
|
+
require 'stbaldricks/configuration'
|
|
6
|
+
require 'stbaldricks/log'
|
|
7
|
+
require 'uri'
|
|
8
|
+
|
|
9
|
+
# Require all monkey patches
|
|
10
|
+
patch_dir = File.realpath("#{File.dirname(__FILE__)}/patches/")
|
|
11
|
+
Dir["#{patch_dir}/*.rb"].each { |file| require file }
|
|
12
|
+
|
|
13
|
+
# Require all entities
|
|
14
|
+
entity_dir = File.realpath("#{File.dirname(__FILE__)}/entities/")
|
|
15
|
+
Dir["#{entity_dir}/**/*.rb"].each { |file| require file }
|
|
16
|
+
|
|
17
|
+
# Require all enums
|
|
18
|
+
enum_dir = File.realpath("#{File.dirname(__FILE__)}/enums/")
|
|
19
|
+
Dir["#{enum_dir}/*.rb"].each { |file| require file }
|
|
20
|
+
|
|
21
|
+
# Client library class for accessing the St. Baldrick's Foundation API
|
|
22
|
+
module SBF
|
|
23
|
+
module Client
|
|
24
|
+
module Api
|
|
25
|
+
module Request
|
|
26
|
+
# include HTTParty
|
|
27
|
+
include HTTMultiParty
|
|
28
|
+
|
|
29
|
+
base_uri SBF::Client::Configuration.base_uri
|
|
30
|
+
|
|
31
|
+
# Makes a HTTP GET request to the specified path with specified params and authentication credentials based on the configured client class.
|
|
32
|
+
# This method isn't intended to be used by a user and is for internal use only
|
|
33
|
+
#
|
|
34
|
+
# @param path [string]
|
|
35
|
+
# @param params [Hash]
|
|
36
|
+
# @return [HTTParty::Response]
|
|
37
|
+
def self.get_request(path, params = {})
|
|
38
|
+
raise SBF::Client::InvalidURIError, "Invalid URI: #{path}" unless valid_uri?(path)
|
|
39
|
+
|
|
40
|
+
# Use a public request if the user has not logged in
|
|
41
|
+
return public_get_request(path, params) if user_token.nil?
|
|
42
|
+
|
|
43
|
+
request_log('GET', path, params) do
|
|
44
|
+
get(path, options(query: params, auth: user_token))
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Makes a HTTP POST request to the specified path with specified params and authentication credentials based on the configured client class.
|
|
49
|
+
# Raises an error if the client library isn't configured with user specific credentials.
|
|
50
|
+
# This method isn't intended to be used by a user and is for internal use only
|
|
51
|
+
#
|
|
52
|
+
# @param path [string]
|
|
53
|
+
# @param params [Hash]
|
|
54
|
+
# @return [HTTParty::Response]
|
|
55
|
+
# @raise [Error]
|
|
56
|
+
def self.post_request(path, params = {})
|
|
57
|
+
raise SBF::Client::InvalidURIError, "Invalid URI: #{path}" unless valid_uri?(path)
|
|
58
|
+
raise SBF::Client::Error, 'Not yet authenticated' if user_token.nil?
|
|
59
|
+
|
|
60
|
+
request_log('POST', path, params) do
|
|
61
|
+
post(path, options(body: params.to_json, type: :post, auth: user_token))
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
def self.file_post_request(path:, params: {}, file:, filename:)
|
|
66
|
+
raise SBF::Client::InvalidURIError, "Invalid URI: #{path}" unless valid_uri?(path)
|
|
67
|
+
raise SBF::Client::Error, 'Not yet authenticated' if user_token.nil?
|
|
68
|
+
raise SBF::Client::Error, 'Invalid File' unless file.is_a?(File) || file.is_a?(Tempfile)
|
|
69
|
+
|
|
70
|
+
request_log('POST', path, params) do
|
|
71
|
+
post(path, options(body: params.merge(file: file, original_filename: filename), type: :file_post, auth: user_token))
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Makes a HTTP GET request to the specified path with specified params
|
|
76
|
+
# This is used for login which is the only request which should use the public key.
|
|
77
|
+
#
|
|
78
|
+
def self.public_get_request(path, params = {})
|
|
79
|
+
raise SBF::Client::InvalidURIError, "Invalid URI: #{path}" unless valid_uri?(path)
|
|
80
|
+
|
|
81
|
+
request_log('GET', path, params) do
|
|
82
|
+
get(path, options(query: params, auth: general_token))
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Makes a HTTP POST request to the specified path with specified params
|
|
87
|
+
# This is used for login which is the only request which should use the public key.
|
|
88
|
+
#
|
|
89
|
+
def self.public_post_request(path, params = {})
|
|
90
|
+
raise SBF::Client::InvalidURIError, "Invalid URI: #{path}" unless valid_uri?(path)
|
|
91
|
+
|
|
92
|
+
request_log('POST', path, params) do
|
|
93
|
+
post(path, options(body: params.to_json, type: :post, auth: general_token))
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
def self.options(auth: nil, type: :get, query: nil, body: nil)
|
|
98
|
+
{}.tap do |options|
|
|
99
|
+
options.merge!(base_uri: SBF::Client::Configuration.base_uri,
|
|
100
|
+
headers: {
|
|
101
|
+
'Accept' => 'application/json',
|
|
102
|
+
'X-Request-Id' => SBF::Client::Configuration.request_id
|
|
103
|
+
},
|
|
104
|
+
verify: verify_ssl_peer?)
|
|
105
|
+
options[:body] = body if body
|
|
106
|
+
options[:query] = query if query
|
|
107
|
+
options[:headers]['Content-Type'] = 'application/json' if type == :post
|
|
108
|
+
options[:headers]['Content-Type'] = 'multipart/form-data' if type == :file_post
|
|
109
|
+
options[:headers]['Authorization'] = "Bearer #{auth}" if auth
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
def self.general_token
|
|
114
|
+
SBF::Client::Configuration.general_token
|
|
115
|
+
end
|
|
116
|
+
private_class_method :general_token
|
|
117
|
+
|
|
118
|
+
def self.user_token
|
|
119
|
+
SBF::Client::Configuration.user_token
|
|
120
|
+
end
|
|
121
|
+
private_class_method :user_token
|
|
122
|
+
|
|
123
|
+
def self.request_log(type, path, params)
|
|
124
|
+
SBF::Client::LOG.debug { "SBF::Client - #{type}: #{path} | Body: #{JSON.pretty_generate(params)}" }
|
|
125
|
+
response = yield
|
|
126
|
+
SBF::Client::LOG.debug { "SBF::Client - Response: #{response}" }
|
|
127
|
+
response
|
|
128
|
+
end
|
|
129
|
+
private_class_method :request_log
|
|
130
|
+
|
|
131
|
+
def self.valid_uri?(path)
|
|
132
|
+
URI.parse(path)
|
|
133
|
+
true
|
|
134
|
+
rescue URI::InvalidURIError
|
|
135
|
+
false
|
|
136
|
+
end
|
|
137
|
+
private_class_method :valid_uri?
|
|
138
|
+
|
|
139
|
+
def self.verify_ssl_peer?
|
|
140
|
+
(ENV['VERIFY_SSL_PEER'] || true).to_b
|
|
141
|
+
end
|
|
142
|
+
private_class_method :verify_ssl_peer?
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: stbaldricks
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.5.1.pre
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Firespring
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2017-05-19 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: activemodel
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 5.0.0
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: 5.0.0
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: httparty
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - '='
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: 0.14.0
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - '='
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: 0.14.0
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: httmultiparty
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - '='
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: 0.3.16
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - '='
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: 0.3.16
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: htmlentities
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - '='
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: 4.3.4
|
|
62
|
+
type: :runtime
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - '='
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: 4.3.4
|
|
69
|
+
description: Ruby library for accessing and integrating with the St. Baldrick's Foundation
|
|
70
|
+
API
|
|
71
|
+
email: opensource@stbaldricks.org
|
|
72
|
+
executables: []
|
|
73
|
+
extensions: []
|
|
74
|
+
extra_rdoc_files: []
|
|
75
|
+
files:
|
|
76
|
+
- LICENSE
|
|
77
|
+
- lib/stbaldricks.rb
|
|
78
|
+
- lib/stbaldricks/api.rb
|
|
79
|
+
- lib/stbaldricks/api_connector.rb
|
|
80
|
+
- lib/stbaldricks/client.rb
|
|
81
|
+
- lib/stbaldricks/configuration.rb
|
|
82
|
+
- lib/stbaldricks/default_logger.rb
|
|
83
|
+
- lib/stbaldricks/endpoints/communicate.rb
|
|
84
|
+
- lib/stbaldricks/endpoints/config.rb
|
|
85
|
+
- lib/stbaldricks/endpoints/contact.rb
|
|
86
|
+
- lib/stbaldricks/endpoints/event.rb
|
|
87
|
+
- lib/stbaldricks/endpoints/event_application.rb
|
|
88
|
+
- lib/stbaldricks/endpoints/fund.rb
|
|
89
|
+
- lib/stbaldricks/endpoints/kid.rb
|
|
90
|
+
- lib/stbaldricks/endpoints/kid_honor.rb
|
|
91
|
+
- lib/stbaldricks/endpoints/lib/entity.rb
|
|
92
|
+
- lib/stbaldricks/endpoints/message.rb
|
|
93
|
+
- lib/stbaldricks/endpoints/newsletter_recipient.rb
|
|
94
|
+
- lib/stbaldricks/endpoints/participant.rb
|
|
95
|
+
- lib/stbaldricks/endpoints/photo.rb
|
|
96
|
+
- lib/stbaldricks/endpoints/recurring_gift.rb
|
|
97
|
+
- lib/stbaldricks/endpoints/search.rb
|
|
98
|
+
- lib/stbaldricks/endpoints/shave_schedule.rb
|
|
99
|
+
- lib/stbaldricks/endpoints/user.rb
|
|
100
|
+
- lib/stbaldricks/entities/batch.rb
|
|
101
|
+
- lib/stbaldricks/entities/campaign.rb
|
|
102
|
+
- lib/stbaldricks/entities/communicate.rb
|
|
103
|
+
- lib/stbaldricks/entities/config.rb
|
|
104
|
+
- lib/stbaldricks/entities/contact.rb
|
|
105
|
+
- lib/stbaldricks/entities/contact_group.rb
|
|
106
|
+
- lib/stbaldricks/entities/document_library.rb
|
|
107
|
+
- lib/stbaldricks/entities/document_library_category.rb
|
|
108
|
+
- lib/stbaldricks/entities/donation.rb
|
|
109
|
+
- lib/stbaldricks/entities/donation/donor_type.rb
|
|
110
|
+
- lib/stbaldricks/entities/donation/how_created.rb
|
|
111
|
+
- lib/stbaldricks/entities/donation/payment_type.rb
|
|
112
|
+
- lib/stbaldricks/entities/donation/promo_code.rb
|
|
113
|
+
- lib/stbaldricks/entities/donation/recipient_type.rb
|
|
114
|
+
- lib/stbaldricks/entities/donation/special_donation_type.rb
|
|
115
|
+
- lib/stbaldricks/entities/donation/status.rb
|
|
116
|
+
- lib/stbaldricks/entities/donation/submitter_type.rb
|
|
117
|
+
- lib/stbaldricks/entities/donor.rb
|
|
118
|
+
- lib/stbaldricks/entities/event.rb
|
|
119
|
+
- lib/stbaldricks/entities/event/fund_relationship_type.rb
|
|
120
|
+
- lib/stbaldricks/entities/event/how_created.rb
|
|
121
|
+
- lib/stbaldricks/entities/event/promo_code.rb
|
|
122
|
+
- lib/stbaldricks/entities/event/status.rb
|
|
123
|
+
- lib/stbaldricks/entities/event/sub_type.rb
|
|
124
|
+
- lib/stbaldricks/entities/event/type.rb
|
|
125
|
+
- lib/stbaldricks/entities/event_application.rb
|
|
126
|
+
- lib/stbaldricks/entities/event_application/model_type.rb
|
|
127
|
+
- lib/stbaldricks/entities/event_application/status.rb
|
|
128
|
+
- lib/stbaldricks/entities/event_donation_summary.rb
|
|
129
|
+
- lib/stbaldricks/entities/event_participant_summary.rb
|
|
130
|
+
- lib/stbaldricks/entities/event_supporter.rb
|
|
131
|
+
- lib/stbaldricks/entities/fund.rb
|
|
132
|
+
- lib/stbaldricks/entities/fundraiser.rb
|
|
133
|
+
- lib/stbaldricks/entities/international_partner.rb
|
|
134
|
+
- lib/stbaldricks/entities/kid.rb
|
|
135
|
+
- lib/stbaldricks/entities/kid_honor.rb
|
|
136
|
+
- lib/stbaldricks/entities/lib/address.rb
|
|
137
|
+
- lib/stbaldricks/entities/lib/base.rb
|
|
138
|
+
- lib/stbaldricks/entities/lib/cacheable.rb
|
|
139
|
+
- lib/stbaldricks/entities/lib/default_cacheable.rb
|
|
140
|
+
- lib/stbaldricks/entities/lib/email_address.rb
|
|
141
|
+
- lib/stbaldricks/entities/lib/error.rb
|
|
142
|
+
- lib/stbaldricks/entities/lib/fundraising_page.rb
|
|
143
|
+
- lib/stbaldricks/entities/lib/geo_location.rb
|
|
144
|
+
- lib/stbaldricks/entities/lib/location.rb
|
|
145
|
+
- lib/stbaldricks/entities/lib/name.rb
|
|
146
|
+
- lib/stbaldricks/entities/lib/not_implemented_object.rb
|
|
147
|
+
- lib/stbaldricks/entities/lib/opt_out_settings.rb
|
|
148
|
+
- lib/stbaldricks/entities/lib/payment.rb
|
|
149
|
+
- lib/stbaldricks/entities/lib/permissions.rb
|
|
150
|
+
- lib/stbaldricks/entities/lib/phone.rb
|
|
151
|
+
- lib/stbaldricks/entities/lib/third_party_media.rb
|
|
152
|
+
- lib/stbaldricks/entities/lib/top_level.rb
|
|
153
|
+
- lib/stbaldricks/entities/lib/venue.rb
|
|
154
|
+
- lib/stbaldricks/entities/memorial.rb
|
|
155
|
+
- lib/stbaldricks/entities/message.rb
|
|
156
|
+
- lib/stbaldricks/entities/newsletter_recipient.rb
|
|
157
|
+
- lib/stbaldricks/entities/organization.rb
|
|
158
|
+
- lib/stbaldricks/entities/page.rb
|
|
159
|
+
- lib/stbaldricks/entities/participant.rb
|
|
160
|
+
- lib/stbaldricks/entities/person.rb
|
|
161
|
+
- lib/stbaldricks/entities/photo.rb
|
|
162
|
+
- lib/stbaldricks/entities/recurring_gift.rb
|
|
163
|
+
- lib/stbaldricks/entities/response.rb
|
|
164
|
+
- lib/stbaldricks/entities/search.rb
|
|
165
|
+
- lib/stbaldricks/entities/section.rb
|
|
166
|
+
- lib/stbaldricks/entities/shave_schedule.rb
|
|
167
|
+
- lib/stbaldricks/entities/summary.rb
|
|
168
|
+
- lib/stbaldricks/entities/team.rb
|
|
169
|
+
- lib/stbaldricks/entities/user.rb
|
|
170
|
+
- lib/stbaldricks/enums/country.rb
|
|
171
|
+
- lib/stbaldricks/enums/feature.rb
|
|
172
|
+
- lib/stbaldricks/enums/league_status.rb
|
|
173
|
+
- lib/stbaldricks/enums/model_type.rb
|
|
174
|
+
- lib/stbaldricks/enums/permission.rb
|
|
175
|
+
- lib/stbaldricks/enums/permission_model_type.rb
|
|
176
|
+
- lib/stbaldricks/enums/province.rb
|
|
177
|
+
- lib/stbaldricks/enums/state.rb
|
|
178
|
+
- lib/stbaldricks/enums/top_level_category_type.rb
|
|
179
|
+
- lib/stbaldricks/errors.rb
|
|
180
|
+
- lib/stbaldricks/log.rb
|
|
181
|
+
- lib/stbaldricks/patches/array.rb
|
|
182
|
+
- lib/stbaldricks/patches/boolean.rb
|
|
183
|
+
- lib/stbaldricks/patches/class.rb
|
|
184
|
+
- lib/stbaldricks/patches/float.rb
|
|
185
|
+
- lib/stbaldricks/patches/hash.rb
|
|
186
|
+
- lib/stbaldricks/patches/integer.rb
|
|
187
|
+
- lib/stbaldricks/patches/nil.rb
|
|
188
|
+
- lib/stbaldricks/patches/string.rb
|
|
189
|
+
- lib/stbaldricks/request.rb
|
|
190
|
+
- lib/stbaldricks/version.rb
|
|
191
|
+
homepage:
|
|
192
|
+
licenses:
|
|
193
|
+
- MIT
|
|
194
|
+
metadata: {}
|
|
195
|
+
post_install_message:
|
|
196
|
+
rdoc_options: []
|
|
197
|
+
require_paths:
|
|
198
|
+
- lib
|
|
199
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
200
|
+
requirements:
|
|
201
|
+
- - ">="
|
|
202
|
+
- !ruby/object:Gem::Version
|
|
203
|
+
version: '0'
|
|
204
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
|
+
requirements:
|
|
206
|
+
- - ">"
|
|
207
|
+
- !ruby/object:Gem::Version
|
|
208
|
+
version: 1.3.1
|
|
209
|
+
requirements: []
|
|
210
|
+
rubyforge_project:
|
|
211
|
+
rubygems_version: 2.6.11
|
|
212
|
+
signing_key:
|
|
213
|
+
specification_version: 4
|
|
214
|
+
summary: St. Baldrick's Foundation Ruby Client Library
|
|
215
|
+
test_files: []
|