stbaldricks 12.1.0.alpha.1 → 12.1.0.alpha.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1550fd1a9631b911536f2e53a877ac67a6741dcae53637af7faeae37690e4586
4
- data.tar.gz: a9102203f052dec9c8e84d324306f3896d3811695cc44d4d09250077a62ad2c2
3
+ metadata.gz: 4046725677da85869bc8ba8fc18a5d916244b87a782eb3532d7e6a23330b7a87
4
+ data.tar.gz: 203bdd3ceeb97a22c071e22103b1f266ff65058fc8a9a48e288310b0a770139c
5
5
  SHA512:
6
- metadata.gz: 15fc6cca729635c8bf5be26c5ea6f0ef9437c18878748d91524916121c90c411f0df0cb2574b63575e356119ca1e3ebeb6562cb89a72d8e0be12c5f22694b95b
7
- data.tar.gz: 808fc10b4ae06d5e3bef8a0b8a6304c07b1e5c2bcdaaad45bf3a1776d64f8c6e23e094aab030c6eaf59b5fe6a9f30257ff3e87bcabe4ac8bca7e8af5418dd0bc
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
- BLANK10 = 'blank10'
53
- BLANK11 = 'blank11'
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, BLANK10, BLANK11, BLANK12, BLANK13,
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
@@ -24,7 +24,6 @@ module SBF
24
24
  action :join_team
25
25
  action :start_team
26
26
  action :leave_team
27
- action :delete_role
28
27
  action :move_to_different_event
29
28
 
30
29
  disallow_instantiation
@@ -1,5 +1,5 @@
1
1
  module SBF
2
2
  module Client
3
- VERSION = '12.1.0.alpha.1'.freeze
3
+ VERSION = '12.1.0.alpha.2'.freeze
4
4
  end
5
5
  end
@@ -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.1
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-09-30 00:00:00.000000000 Z
11
+ date: 2021-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel