stbaldricks 12.6.0 → 12.6.1.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: 5183e48ff0c1b00b3e986ae51fbb109fe71070c5a83a2810dad8f5c849b38a0a
4
- data.tar.gz: 4e0a1d479c080aad1404866a7258be0f7427aec735f9e57e38246771f8b74d9b
3
+ metadata.gz: 295d045076fc69979a34a802f56c23f77507c903cd0a91ec95a9bf7021565332
4
+ data.tar.gz: 269ddc1c2f1004f032dc30d6981b63055111a5345fda35b13a2994657e859443
5
5
  SHA512:
6
- metadata.gz: 42ada9bcd69eb1bc01214199d5a1e202cd5d0f645bb345684e736d00c45eb83b1289abde5faff1c35b2391808e769a43259897787a4aaf56ab7e5041c52359b8
7
- data.tar.gz: d2f217639d6db414d5a5a1fd84b2cbcbbd4c2ee1ed29564d1a01e0a223d7ac3bcae9e289aa9825a4671a2b6a215c2ad19b61d07ad5468d23c6a43dcbf8e2c103
6
+ metadata.gz: 315b7539a629ed3c238e59e3e91479330b5a2994cf6cfe1b82f1723036645bbac4a6740ae8e44c25987afb5dc809e327f5874f21fe2b00b6e9a879845dcb7901
7
+ data.tar.gz: 3ffa028f674df7d1803962494c97f9b6c13006c0d033a21757aa9649dc255be5f96b80cc4c102ce66011211a33a6b5bee54797c1f49237ef2341a6c1d9d1316c
@@ -19,6 +19,12 @@ module SBF
19
19
 
20
20
  disallow_instantiation
21
21
 
22
+ module ManagerType
23
+ INDIVIDUAL = 'individual'.freeze
24
+ BUSINESS = 'business'.freeze
25
+ ORGANIZATION_FOUNDATION = 'foundation'.freeze
26
+ end
27
+
22
28
  class Photos < SBF::Client::BaseEntity
23
29
  attr_reader :avatar, :default
24
30
  end
@@ -73,6 +79,28 @@ module SBF
73
79
  attr_accessor :kid_name
74
80
  attr_accessor :offline_donation_uuid, :offline_donation_form
75
81
 
82
+ multitype_attr_accessor(
83
+ :manager,
84
+ [
85
+ [
86
+ ->(v) { v[:type] == SBF::Client::Fund::ManagerType::INDIVIDUAL },
87
+ 'SBF::Client::FullPerson',
88
+ 'SBF::Client::PartialPerson'
89
+ ],
90
+ [
91
+ ->(v) { v[:type] == SBF::Client::Fund::ManagerType::BUSINESS },
92
+ 'SBF::Client::FullOrganization',
93
+ 'SBF::Client::PartialOrganization'
94
+ ],
95
+ [
96
+ ->(v) { v[:type] == SBF::Client::Fund::ManagerType::ORGANIZATION_FOUNDATION },
97
+ 'SBF::Client::FullOrganization',
98
+ 'SBF::Client::PartialOrganization'
99
+ ]
100
+ ],
101
+ optional: true
102
+ )
103
+
76
104
  def totals_by_year=(value)
77
105
  if value.nil? || value.empty?
78
106
  @totals_by_year = []
@@ -1,5 +1,5 @@
1
1
  module SBF
2
2
  module Client
3
- VERSION = '12.6.0'.freeze
3
+ VERSION = '12.6.1.alpha.1'.freeze
4
4
  end
5
5
  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.6.0
4
+ version: 12.6.1.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: 2022-06-20 00:00:00.000000000 Z
11
+ date: 2022-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -563,9 +563,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
563
563
  version: '0'
564
564
  required_rubygems_version: !ruby/object:Gem::Requirement
565
565
  requirements:
566
- - - ">="
566
+ - - ">"
567
567
  - !ruby/object:Gem::Version
568
- version: '0'
568
+ version: 1.3.1
569
569
  requirements: []
570
570
  rubygems_version: 3.0.3.1
571
571
  signing_key:
@@ -573,99 +573,99 @@ specification_version: 4
573
573
  summary: St. Baldrick's Foundation Ruby Client Library
574
574
  test_files:
575
575
  - lib/stbaldricks_factories.rb
576
- - spec/factories/organization/addresses.rb
577
- - spec/factories/organization/email_addresses.rb
578
- - spec/factories/organization/phone_numbers.rb
579
- - spec/factories/payment.rb
580
- - spec/factories/fundraising_page.rb
581
- - spec/factories/donation/participant.rb
582
- - spec/factories/challenge.rb
583
- - spec/factories/kid_institution.rb
584
- - spec/factories/memorial/totals.rb
585
- - spec/factories/memorial/photos.rb
586
- - spec/factories/memorial/tribute.rb
587
- - spec/factories/search_kid.rb
588
- - spec/factories/contact.rb
589
- - spec/factories/researcher.rb
590
- - spec/factories/photos.rb
591
- - spec/factories/challenger.rb
592
- - spec/factories/name_pieces.rb
593
- - spec/factories/milestone.rb
594
- - spec/factories/person/policies.rb
595
- - spec/factories/person/addresses.rb
596
- - spec/factories/person/email_addresses.rb
597
- - spec/factories/person/phone_numbers.rb
598
- - spec/factories/participant/policies.rb
599
- - spec/factories/participant/totals.rb
576
+ - spec/factories/participant/rankings.rb
600
577
  - spec/factories/participant/photos.rb
601
578
  - spec/factories/participant/roles/role.rb
602
- - spec/factories/participant/rankings/ranking.rb
603
- - spec/factories/participant/rankings.rb
579
+ - spec/factories/participant/policies.rb
580
+ - spec/factories/participant/totals.rb
604
581
  - spec/factories/participant/roles.rb
605
- - spec/factories/donation.rb
606
- - spec/factories/third_party_media.rb
607
- - spec/factories/search_team.rb
608
- - spec/factories/permissions.rb
609
- - spec/factories/photo.rb
610
- - spec/factories/collection.rb
611
- - spec/factories/campaign.rb
582
+ - spec/factories/participant/rankings/ranking.rb
583
+ - spec/factories/search_fundraiser.rb
584
+ - spec/factories/newsletter_recipient.rb
585
+ - spec/factories/phone.rb
586
+ - spec/factories/contact_group.rb
587
+ - spec/factories/fundraiser/photos.rb
588
+ - spec/factories/fundraiser/policies.rb
589
+ - spec/factories/fundraiser/totals.rb
590
+ - spec/factories/team.rb
591
+ - spec/factories/venue.rb
592
+ - spec/factories/recurring_gift.rb
593
+ - spec/factories/donation/participant.rb
594
+ - spec/factories/error.rb
595
+ - spec/factories/grant_institution.rb
596
+ - spec/factories/page.rb
612
597
  - spec/factories/grant.rb
613
- - spec/factories/location.rb
614
- - spec/factories/email_address.rb
615
- - spec/factories/disease.rb
616
- - spec/factories/participant.rb
617
- - spec/factories/kid.rb
598
+ - spec/factories/search_team.rb
618
599
  - spec/factories/search_participant.rb
619
- - spec/factories/event_supporter.rb
620
- - spec/factories/page.rb
600
+ - spec/factories/name_pieces.rb
601
+ - spec/factories/researcher.rb
602
+ - spec/factories/photos.rb
603
+ - spec/factories/donor.rb
604
+ - spec/factories/diagnosis.rb
605
+ - spec/factories/kid_institution.rb
621
606
  - spec/factories/message.rb
622
- - spec/factories/response.rb
623
607
  - spec/factories/search_event.rb
608
+ - spec/factories/photo.rb
609
+ - spec/factories/event.rb
610
+ - spec/factories/organization.rb
611
+ - spec/factories/campaign.rb
612
+ - spec/factories/kid/custom_institution.rb
613
+ - spec/factories/fundraising_page.rb
614
+ - spec/factories/contact.rb
624
615
  - spec/factories/event_application.rb
616
+ - spec/factories/location.rb
617
+ - spec/factories/response.rb
618
+ - spec/factories/kid.rb
619
+ - spec/factories/challenger.rb
620
+ - spec/factories/treatment_status.rb
621
+ - spec/factories/institution.rb
622
+ - spec/factories/lib/helpers.rb
623
+ - spec/factories/lib/faker_patch.rb
624
+ - spec/factories/shave_schedule.rb
625
+ - spec/factories/address.rb
626
+ - spec/factories/shave_schedule/time_selection_permissions.rb
627
+ - spec/factories/person/phone_numbers.rb
628
+ - spec/factories/person/policies.rb
629
+ - spec/factories/person/addresses.rb
630
+ - spec/factories/person/email_addresses.rb
631
+ - spec/factories/collection.rb
625
632
  - spec/factories/fundraiser.rb
626
- - spec/factories/team.rb
627
- - spec/factories/memorial.rb
628
- - spec/factories/diagnosis.rb
629
- - spec/factories/team/totals.rb
633
+ - spec/factories/email_address.rb
634
+ - spec/factories/third_party_media.rb
635
+ - spec/factories/donation.rb
636
+ - spec/factories/person.rb
637
+ - spec/factories/team/rankings.rb
630
638
  - spec/factories/team/photos.rb
639
+ - spec/factories/team/totals.rb
631
640
  - spec/factories/team/rankings/ranking.rb
632
- - spec/factories/team/rankings.rb
633
- - spec/factories/newsletter_recipient.rb
634
- - spec/factories/shave_schedule.rb
635
- - spec/factories/organization.rb
641
+ - spec/factories/kid_honor.rb
642
+ - spec/factories/disease.rb
643
+ - spec/factories/payment.rb
644
+ - spec/factories/search_kid.rb
645
+ - spec/factories/user.rb
636
646
  - spec/factories/campaign/totals.rb
637
- - spec/factories/lib/helpers.rb
638
- - spec/factories/lib/faker_patch.rb
639
- - spec/factories/error.rb
640
- - spec/factories/donor.rb
641
- - spec/factories/contact_group.rb
642
- - spec/factories/recurring_gift.rb
643
- - spec/factories/person.rb
644
- - spec/factories/treatment_status.rb
645
- - spec/factories/fundraiser/policies.rb
646
- - spec/factories/fundraiser/totals.rb
647
- - spec/factories/fundraiser/photos.rb
648
- - spec/factories/venue.rb
649
- - spec/factories/search_fundraiser.rb
650
- - spec/factories/institution.rb
651
- - spec/factories/grant_institution.rb
652
- - spec/factories/address.rb
653
- - spec/factories/phone.rb
654
- - spec/factories/event/totals.rb
655
- - spec/factories/event/photos.rb
656
- - spec/factories/event/contacts/contact.rb
657
- - spec/factories/event/contacts/name_pieces.rb
658
- - spec/factories/event/coach_tracking/coaching_interactions.rb
647
+ - spec/factories/organization/phone_numbers.rb
648
+ - spec/factories/organization/addresses.rb
649
+ - spec/factories/organization/email_addresses.rb
650
+ - spec/factories/fund.rb
651
+ - spec/factories/milestone.rb
652
+ - spec/factories/memorial.rb
653
+ - spec/factories/challenge.rb
654
+ - spec/factories/event/contacts.rb
655
+ - spec/factories/event/venue.rb
659
656
  - spec/factories/event/coach_tracking/proceeds.rb
660
657
  - spec/factories/event/coach_tracking/plaque.rb
658
+ - spec/factories/event/coach_tracking/coaching_interactions.rb
659
+ - spec/factories/event/photos.rb
661
660
  - spec/factories/event/coach_tracking.rb
661
+ - spec/factories/event/contacts/name_pieces.rb
662
+ - spec/factories/event/contacts/contact.rb
662
663
  - spec/factories/event/venue/location.rb
663
664
  - spec/factories/event/venue/social.rb
664
- - spec/factories/event/contacts.rb
665
- - spec/factories/event/venue.rb
666
- - spec/factories/fund.rb
667
- - spec/factories/event.rb
668
- - spec/factories/kid/custom_institution.rb
669
- - spec/factories/shave_schedule/time_selection_permissions.rb
670
- - spec/factories/user.rb
671
- - spec/factories/kid_honor.rb
665
+ - spec/factories/event/totals.rb
666
+ - spec/factories/participant.rb
667
+ - spec/factories/event_supporter.rb
668
+ - spec/factories/memorial/photos.rb
669
+ - spec/factories/memorial/totals.rb
670
+ - spec/factories/memorial/tribute.rb
671
+ - spec/factories/permissions.rb