stbaldricks 12.1.0.alpha.1 → 12.1.0.alpha.2
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: 4046725677da85869bc8ba8fc18a5d916244b87a782eb3532d7e6a23330b7a87
|
4
|
+
data.tar.gz: 203bdd3ceeb97a22c071e22103b1f266ff65058fc8a9a48e288310b0a770139c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b767b65b458bef91d7127510f7b23629e529bc031d5e12067c049baead5b7be1ee0cc614784b4df68c3bd238eabcd322a2a0dccf54637a7d05a2bcf57150852a
|
7
|
+
data.tar.gz: 7aaacdad833dbb574bbe824d3d8072908bea89b9bf74eb65f33ce4bb50d093d09b7b01b84558fb4d96f2866a5df53de2da6fe28e0af7b97319eea73c85f1f8c5
|
@@ -46,14 +46,6 @@ 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
|
-
|
57
49
|
def move_to_different_event(participant_id, new_event_id)
|
58
50
|
response = SBF::Client::Api::Request.post_request("#{base_uri}/move_to_different_event",
|
59
51
|
id: participant_id, new_event_id: new_event_id)
|
@@ -49,8 +49,8 @@ module SBF
|
|
49
49
|
APPEAL = 'appeal'
|
50
50
|
INSTAGRAM = 'instagram'
|
51
51
|
EMPLOYEE_GIVING = 'employee_giving'
|
52
|
-
|
53
|
-
|
52
|
+
SITE_TAKEOVER = 'site_takeover'
|
53
|
+
GENERAL_CORPORATE = 'general_corporate'
|
54
54
|
BLANK12 = 'blank12'
|
55
55
|
BLANK13 = 'blank13'
|
56
56
|
BLANK14 = 'blank14'
|
@@ -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, EMPLOYEE_GIVING,
|
71
|
+
SCHICK, BATTLE, CCQR, QREVENTPRINTOUT, PDASHQR, APPEAL, INSTAGRAM, EMPLOYEE_GIVING, SITE_TAKEOVER, GENERAL_CORPORATE, 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,4 +38,29 @@ 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
|
41
66
|
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.1.0.alpha.
|
4
|
+
version: 12.1.0.alpha.2
|
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-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|