stbaldricks 12.0.0 → 12.1.0.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1550fd1a9631b911536f2e53a877ac67a6741dcae53637af7faeae37690e4586
|
4
|
+
data.tar.gz: a9102203f052dec9c8e84d324306f3896d3811695cc44d4d09250077a62ad2c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15fc6cca729635c8bf5be26c5ea6f0ef9437c18878748d91524916121c90c411f0df0cb2574b63575e356119ca1e3ebeb6562cb89a72d8e0be12c5f22694b95b
|
7
|
+
data.tar.gz: 808fc10b4ae06d5e3bef8a0b8a6304c07b1e5c2bcdaaad45bf3a1776d64f8c6e23e094aab030c6eaf59b5fe6a9f30257ff3e87bcabe4ac8bca7e8af5418dd0bc
|
@@ -46,6 +46,14 @@ module SBF
|
|
46
46
|
SBF::Client::Api::Response.new(http_code: response.code, data: data, error: error)
|
47
47
|
end
|
48
48
|
|
49
|
+
def delete_role(participant_id, role)
|
50
|
+
response = SBF::Client::Api::Request.post_request("#{base_uri}/delete_role", participant_id: participant_id, role: role)
|
51
|
+
|
52
|
+
error = SBF::Client::ErrorEntity.new(JSON.parse(response.body).symbolize!) unless ok?(response)
|
53
|
+
|
54
|
+
SBF::Client::Api::Response.new(http_code: response.code, data: nil, error: error)
|
55
|
+
end
|
56
|
+
|
49
57
|
def move_to_different_event(participant_id, new_event_id)
|
50
58
|
response = SBF::Client::Api::Request.post_request("#{base_uri}/move_to_different_event",
|
51
59
|
id: participant_id, new_event_id: new_event_id)
|
@@ -48,7 +48,7 @@ module SBF
|
|
48
48
|
PDASHQR = 'pdashqr'
|
49
49
|
APPEAL = 'appeal'
|
50
50
|
INSTAGRAM = 'instagram'
|
51
|
-
|
51
|
+
EMPLOYEE_GIVING = 'employee_giving'
|
52
52
|
BLANK10 = 'blank10'
|
53
53
|
BLANK11 = 'blank11'
|
54
54
|
BLANK12 = 'blank12'
|
@@ -68,7 +68,7 @@ module SBF
|
|
68
68
|
GIVING_TUESDAY, SURVIVOR, SPONSORSHIP, LAPSED_LOW, LAPSED_MID, RMMEVENTS, YEAR_END_DG, LAPSED_DG, FB_FUNDRAISER,
|
69
69
|
MOBILE_CAUSE, INTERNATIONAL, ACS, HEAD_SHAVING, SPORT_CLIPS, TWENTIETH_ANNIVERSARY, DWYW, GRANTS, SUMMER,
|
70
70
|
ADVOCACY, MISSION, RECURRING_GIVING, ACSEVENTS, HS_TO_DONOR, WIRELESS_VISION, BMC, DUTCH_BROS, FADO, SAP, BRIGADE,
|
71
|
-
SCHICK, BATTLE, CCQR, QREVENTPRINTOUT, PDASHQR, APPEAL, INSTAGRAM,
|
71
|
+
SCHICK, BATTLE, CCQR, QREVENTPRINTOUT, PDASHQR, APPEAL, INSTAGRAM, EMPLOYEE_GIVING, BLANK10, BLANK11, BLANK12, BLANK13,
|
72
72
|
BLANK14, BLANK15, BLANK16, BLANK17, BLANK18, BLANK19, BLANK20, BLANK21]
|
73
73
|
end
|
74
74
|
end
|
data/lib/stbaldricks/version.rb
CHANGED
data/spec/factories/event.rb
CHANGED
@@ -38,29 +38,4 @@ FactoryBot.define do
|
|
38
38
|
activity { random }
|
39
39
|
sort_order { 1 }
|
40
40
|
end
|
41
|
-
factory :past_event, class: SBF::Client::FullEvent do
|
42
|
-
to_create { |it| raise "Failed to create #{it.class}: #{it.errors.details}" unless it.create }
|
43
|
-
|
44
|
-
initialize_with do
|
45
|
-
new(attributes)
|
46
|
-
end
|
47
|
-
|
48
|
-
id { rand(1000) }
|
49
|
-
event_title { "#{Faker::Team.name} #{random}" }
|
50
|
-
year { Time.now.year - 5 }
|
51
|
-
date { Time.now.to_s }
|
52
|
-
fund_relationship_type { 'no_association' }
|
53
|
-
status { 'active' }
|
54
|
-
type { 'head_shaving' }
|
55
|
-
sub_type { 'community' }
|
56
|
-
how_created { 'admin_control_panel' }
|
57
|
-
fundraising_goal { rand(20) * 5000 }
|
58
|
-
is_private { false }
|
59
|
-
|
60
|
-
after :build do |event, evaluator|
|
61
|
-
event.venue = build(:event_venue) if unpopulated?(evaluator, :venue)
|
62
|
-
event.contacts = build(:event_contacts) if unpopulated?(evaluator, :contacts)
|
63
|
-
event.organizers = [build(:lead_organizer, person: build(:person))] if unpopulated?(evaluator, :organizers)
|
64
|
-
end
|
65
|
-
end
|
66
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stbaldricks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.0.
|
4
|
+
version: 12.1.0.alpha.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Firespring
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -554,9 +554,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
554
554
|
version: '0'
|
555
555
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
556
556
|
requirements:
|
557
|
-
- - "
|
557
|
+
- - ">"
|
558
558
|
- !ruby/object:Gem::Version
|
559
|
-
version:
|
559
|
+
version: 1.3.1
|
560
560
|
requirements: []
|
561
561
|
rubygems_version: 3.0.3.1
|
562
562
|
signing_key:
|