stbaldricks 10.4.0 → 10.7.1.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stbaldricks/configuration.rb +4 -4
- data/lib/stbaldricks/endpoints/donation.rb +2 -2
- data/lib/stbaldricks/endpoints/lib/entity.rb +2 -2
- data/lib/stbaldricks/endpoints/photo.rb +1 -3
- data/lib/stbaldricks/entities/batch.rb +2 -2
- data/lib/stbaldricks/entities/challenge.rb +4 -4
- data/lib/stbaldricks/entities/challenger.rb +2 -2
- data/lib/stbaldricks/entities/challenger/model_type.rb +2 -0
- data/lib/stbaldricks/entities/concerns/entity_response_concern.rb +2 -4
- data/lib/stbaldricks/entities/config.rb +1 -1
- data/lib/stbaldricks/entities/contact.rb +1 -1
- data/lib/stbaldricks/entities/deduplicator_match.rb +5 -5
- data/lib/stbaldricks/entities/donation.rb +3 -3
- data/lib/stbaldricks/entities/donation/donor_type.rb +2 -0
- data/lib/stbaldricks/entities/donation/how_created.rb +2 -0
- data/lib/stbaldricks/entities/donation/payment_gateway.rb +2 -0
- data/lib/stbaldricks/entities/donation/payment_type.rb +2 -0
- data/lib/stbaldricks/entities/donation/promo_code.rb +19 -5
- data/lib/stbaldricks/entities/donation/recipient_type.rb +2 -0
- data/lib/stbaldricks/entities/donation/special_donation_type.rb +2 -0
- data/lib/stbaldricks/entities/donation/status.rb +2 -0
- data/lib/stbaldricks/entities/donation/submitter_type.rb +2 -0
- data/lib/stbaldricks/entities/event.rb +10 -14
- data/lib/stbaldricks/entities/event/fund_relationship_type.rb +2 -0
- data/lib/stbaldricks/entities/event/how_created.rb +2 -0
- data/lib/stbaldricks/entities/event/promo_code.rb +2 -0
- data/lib/stbaldricks/entities/event/status.rb +2 -0
- data/lib/stbaldricks/entities/event/sub_type.rb +2 -0
- data/lib/stbaldricks/entities/event/type.rb +2 -0
- data/lib/stbaldricks/entities/event_application/model_type.rb +2 -0
- data/lib/stbaldricks/entities/event_application/status.rb +2 -0
- data/lib/stbaldricks/entities/fund.rb +1 -2
- data/lib/stbaldricks/entities/fundraiser.rb +21 -25
- data/lib/stbaldricks/entities/international_partner.rb +2 -2
- data/lib/stbaldricks/entities/kid.rb +62 -62
- data/lib/stbaldricks/entities/kid_honor.rb +4 -4
- data/lib/stbaldricks/entities/lib/address.rb +2 -2
- data/lib/stbaldricks/entities/lib/alternate_shipping_address.rb +2 -2
- data/lib/stbaldricks/entities/lib/base.rb +24 -27
- data/lib/stbaldricks/entities/lib/cacheable.rb +1 -3
- data/lib/stbaldricks/entities/lib/collection.rb +2 -2
- data/lib/stbaldricks/entities/lib/email_address.rb +2 -2
- data/lib/stbaldricks/entities/lib/fundraising_page.rb +1 -1
- data/lib/stbaldricks/entities/lib/not_implemented_object.rb +4 -4
- data/lib/stbaldricks/entities/lib/payment.rb +14 -14
- data/lib/stbaldricks/entities/lib/phone.rb +3 -3
- data/lib/stbaldricks/entities/lib/third_party_media.rb +2 -2
- data/lib/stbaldricks/entities/lib/top_level.rb +4 -4
- data/lib/stbaldricks/entities/memorial.rb +3 -4
- data/lib/stbaldricks/entities/message.rb +8 -8
- data/lib/stbaldricks/entities/organization.rb +21 -21
- data/lib/stbaldricks/entities/page.rb +4 -6
- data/lib/stbaldricks/entities/participant.rb +58 -61
- data/lib/stbaldricks/entities/person.rb +97 -98
- data/lib/stbaldricks/entities/photo.rb +26 -26
- data/lib/stbaldricks/entities/recurring_gift.rb +23 -18
- data/lib/stbaldricks/entities/search.rb +8 -8
- data/lib/stbaldricks/entities/shave_schedule.rb +2 -2
- data/lib/stbaldricks/entities/team.rb +15 -18
- data/lib/stbaldricks/entities/user.rb +7 -5
- data/lib/stbaldricks/enums/cancer_types.rb +2 -0
- data/lib/stbaldricks/enums/country.rb +2 -0
- data/lib/stbaldricks/enums/league_status.rb +2 -0
- data/lib/stbaldricks/enums/model_type.rb +2 -0
- data/lib/stbaldricks/enums/permission.rb +8 -8
- data/lib/stbaldricks/enums/permission_model_type.rb +2 -0
- data/lib/stbaldricks/enums/province.rb +2 -0
- data/lib/stbaldricks/enums/state.rb +2 -0
- data/lib/stbaldricks/enums/top_level_category_type.rb +2 -0
- data/lib/stbaldricks/log.rb +3 -1
- data/lib/stbaldricks/patches/hash.rb +2 -2
- data/lib/stbaldricks/patches/string.rb +1 -1
- data/lib/stbaldricks/request.rb +3 -3
- data/lib/stbaldricks/version.rb +1 -1
- data/lib/stbaldricks_factories.rb +1 -1
- data/spec/factories/challenger.rb +2 -2
- data/spec/factories/kid.rb +3 -3
- data/spec/factories/kid_institution.rb +2 -2
- data/spec/factories/team.rb +2 -2
- metadata +80 -80
data/spec/factories/kid.rb
CHANGED
@@ -2,10 +2,10 @@ require_relative 'lib/helpers'
|
|
2
2
|
|
3
3
|
FactoryBot.define do
|
4
4
|
factory :kid, class: SBF::Client::FullKid do
|
5
|
-
to_create
|
5
|
+
to_create do |it|
|
6
6
|
it.relationships.first.person = FactoryBot.create(:person) if it.relationships.first.person.nil?
|
7
7
|
raise "Failed to create #{it.class}: #{it.errors.details}" unless it.save
|
8
|
-
|
8
|
+
end
|
9
9
|
|
10
10
|
initialize_with do
|
11
11
|
new(attributes)
|
@@ -19,7 +19,7 @@ FactoryBot.define do
|
|
19
19
|
after :build do |kid, evaluator|
|
20
20
|
kid.name_pieces = build(:name_pieces) if unpopulated?(evaluator, :name_pieces)
|
21
21
|
kid.address = build(:address) if unpopulated?(evaluator, :address)
|
22
|
-
kid.diagnosis = build(:diagnosis) if unpopulated?(evaluator, :diagnosis)
|
22
|
+
kid.diagnosis = build(:diagnosis, date: Faker::Date.between(from: kid.birthday, to: DateTime.now).to_s) if unpopulated?(evaluator, :diagnosis)
|
23
23
|
kid.treatment_status = build(:treatment_status) if unpopulated?(evaluator, :treatment_status)
|
24
24
|
kid.web_page = build(:web_page) if unpopulated?(evaluator, :web_page)
|
25
25
|
kid.photos = build(:photos) if unpopulated?(evaluator, :photos)
|
@@ -3,10 +3,10 @@ require_relative 'lib/helpers'
|
|
3
3
|
FactoryBot.define do
|
4
4
|
# This is the relationship object between the kid and system institutions
|
5
5
|
factory :kid_institution, class: SBF::Client::KidInstitution do
|
6
|
-
to_create
|
6
|
+
to_create do |it|
|
7
7
|
it.kid = FactoryBot.create(:kid) if it.kid.nil?
|
8
8
|
raise "Failed to create #{it.class}: #{it.errors.details}" unless it.save(kid: {}, institution: {})
|
9
|
-
|
9
|
+
end
|
10
10
|
|
11
11
|
initialize_with do
|
12
12
|
new(attributes)
|
data/spec/factories/team.rb
CHANGED
@@ -2,7 +2,7 @@ require_relative 'lib/helpers'
|
|
2
2
|
|
3
3
|
FactoryBot.define do
|
4
4
|
factory :team, class: SBF::Client::FullTeam do
|
5
|
-
to_create
|
5
|
+
to_create do |it|
|
6
6
|
# Really gross - we don't support team create through the api currently.
|
7
7
|
# Instead we need to use the start_team/move_participant_to_team logic
|
8
8
|
|
@@ -25,7 +25,7 @@ FactoryBot.define do
|
|
25
25
|
|
26
26
|
# Return the new team
|
27
27
|
it.attributes = team_hash.merge(captain: it.captain)
|
28
|
-
|
28
|
+
end
|
29
29
|
|
30
30
|
initialize_with do
|
31
31
|
new(attributes)
|
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: 10.
|
4
|
+
version: 10.7.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: 2020-
|
11
|
+
date: 2020-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 5.2.
|
19
|
+
version: 5.2.4.3
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 5.2.
|
26
|
+
version: 5.2.4.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: htmlentities
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0
|
47
|
+
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler-audit
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -552,9 +552,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
552
552
|
version: '0'
|
553
553
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
554
554
|
requirements:
|
555
|
-
- - "
|
555
|
+
- - ">"
|
556
556
|
- !ruby/object:Gem::Version
|
557
|
-
version:
|
557
|
+
version: 1.3.1
|
558
558
|
requirements: []
|
559
559
|
rubygems_version: 3.0.3
|
560
560
|
signing_key:
|
@@ -562,98 +562,98 @@ specification_version: 4
|
|
562
562
|
summary: St. Baldrick's Foundation Ruby Client Library
|
563
563
|
test_files:
|
564
564
|
- lib/stbaldricks_factories.rb
|
565
|
-
- spec/factories/collection.rb
|
566
|
-
- spec/factories/user.rb
|
567
565
|
- spec/factories/organization/addresses.rb
|
568
566
|
- spec/factories/organization/email_addresses.rb
|
569
567
|
- spec/factories/organization/phone_numbers.rb
|
570
|
-
- spec/factories/
|
571
|
-
- spec/factories/location.rb
|
572
|
-
- spec/factories/email_address.rb
|
573
|
-
- spec/factories/grant_institution.rb
|
574
|
-
- spec/factories/response.rb
|
568
|
+
- spec/factories/payment.rb
|
575
569
|
- spec/factories/fundraising_page.rb
|
576
|
-
- spec/factories/grant.rb
|
577
|
-
- spec/factories/campaign.rb
|
578
|
-
- spec/factories/donor.rb
|
579
|
-
- spec/factories/kid_institution.rb
|
580
|
-
- spec/factories/shave_schedule.rb
|
581
570
|
- spec/factories/donation/participant.rb
|
571
|
+
- spec/factories/challenge.rb
|
572
|
+
- spec/factories/kid_institution.rb
|
573
|
+
- spec/factories/memorial/totals.rb
|
574
|
+
- spec/factories/memorial/photos.rb
|
575
|
+
- spec/factories/memorial/tribute.rb
|
576
|
+
- spec/factories/search_kid.rb
|
577
|
+
- spec/factories/contact.rb
|
578
|
+
- spec/factories/researcher.rb
|
579
|
+
- spec/factories/photos.rb
|
580
|
+
- spec/factories/challenger.rb
|
581
|
+
- spec/factories/name_pieces.rb
|
582
|
+
- spec/factories/person/policies.rb
|
582
583
|
- spec/factories/person/addresses.rb
|
583
584
|
- spec/factories/person/email_addresses.rb
|
584
|
-
- spec/factories/person/policies.rb
|
585
585
|
- spec/factories/person/phone_numbers.rb
|
586
|
+
- spec/factories/participant/policies.rb
|
587
|
+
- spec/factories/participant/totals.rb
|
588
|
+
- spec/factories/participant/photos.rb
|
589
|
+
- spec/factories/participant/roles/role.rb
|
590
|
+
- spec/factories/participant/rankings/ranking.rb
|
591
|
+
- spec/factories/participant/rankings.rb
|
592
|
+
- spec/factories/participant/roles.rb
|
593
|
+
- spec/factories/donation.rb
|
594
|
+
- spec/factories/third_party_media.rb
|
595
|
+
- spec/factories/search_team.rb
|
596
|
+
- spec/factories/permissions.rb
|
586
597
|
- spec/factories/photo.rb
|
587
|
-
- spec/factories/
|
598
|
+
- spec/factories/collection.rb
|
599
|
+
- spec/factories/campaign.rb
|
600
|
+
- spec/factories/grant.rb
|
601
|
+
- spec/factories/location.rb
|
602
|
+
- spec/factories/email_address.rb
|
603
|
+
- spec/factories/disease.rb
|
604
|
+
- spec/factories/participant.rb
|
588
605
|
- spec/factories/kid.rb
|
589
|
-
- spec/factories/
|
590
|
-
- spec/factories/
|
591
|
-
- spec/factories/kid_honor.rb
|
592
|
-
- spec/factories/message.rb
|
593
|
-
- spec/factories/memorial/photos.rb
|
594
|
-
- spec/factories/memorial/tribute.rb
|
595
|
-
- spec/factories/memorial/totals.rb
|
596
|
-
- spec/factories/photos.rb
|
597
|
-
- spec/factories/kid/custom_institution.rb
|
598
|
-
- spec/factories/phone.rb
|
599
|
-
- spec/factories/campaign/totals.rb
|
606
|
+
- spec/factories/search_participant.rb
|
607
|
+
- spec/factories/event_supporter.rb
|
600
608
|
- spec/factories/page.rb
|
601
|
-
- spec/factories/
|
609
|
+
- spec/factories/message.rb
|
610
|
+
- spec/factories/response.rb
|
611
|
+
- spec/factories/search_event.rb
|
612
|
+
- spec/factories/event_application.rb
|
613
|
+
- spec/factories/fundraiser.rb
|
614
|
+
- spec/factories/team.rb
|
602
615
|
- spec/factories/memorial.rb
|
603
|
-
- spec/factories/institution.rb
|
604
|
-
- spec/factories/participant.rb
|
605
|
-
- spec/factories/address.rb
|
606
|
-
- spec/factories/contact_group.rb
|
607
|
-
- spec/factories/venue.rb
|
608
|
-
- spec/factories/permissions.rb
|
609
|
-
- spec/factories/participant/rankings/ranking.rb
|
610
|
-
- spec/factories/participant/photos.rb
|
611
|
-
- spec/factories/participant/roles.rb
|
612
|
-
- spec/factories/participant/roles/role.rb
|
613
|
-
- spec/factories/participant/totals.rb
|
614
|
-
- spec/factories/participant/rankings.rb
|
615
|
-
- spec/factories/participant/policies.rb
|
616
616
|
- spec/factories/diagnosis.rb
|
617
|
-
- spec/factories/
|
618
|
-
- spec/factories/
|
617
|
+
- spec/factories/team/totals.rb
|
618
|
+
- spec/factories/team/photos.rb
|
619
|
+
- spec/factories/team/rankings/ranking.rb
|
620
|
+
- spec/factories/team/rankings.rb
|
621
|
+
- spec/factories/newsletter_recipient.rb
|
622
|
+
- spec/factories/shave_schedule.rb
|
619
623
|
- spec/factories/organization.rb
|
620
|
-
- spec/factories/
|
621
|
-
- spec/factories/team.rb
|
622
|
-
- spec/factories/event_supporter.rb
|
623
|
-
- spec/factories/challenger.rb
|
624
|
-
- spec/factories/disease.rb
|
625
|
-
- spec/factories/third_party_media.rb
|
626
|
-
- spec/factories/search_kid.rb
|
627
|
-
- spec/factories/lib/faker_patch.rb
|
624
|
+
- spec/factories/campaign/totals.rb
|
628
625
|
- spec/factories/lib/helpers.rb
|
629
|
-
- spec/factories/
|
626
|
+
- spec/factories/lib/faker_patch.rb
|
627
|
+
- spec/factories/error.rb
|
628
|
+
- spec/factories/donor.rb
|
629
|
+
- spec/factories/contact_group.rb
|
630
630
|
- spec/factories/recurring_gift.rb
|
631
|
-
- spec/factories/
|
632
|
-
- spec/factories/
|
633
|
-
- spec/factories/
|
634
|
-
- spec/factories/
|
635
|
-
- spec/factories/
|
636
|
-
- spec/factories/
|
631
|
+
- spec/factories/person.rb
|
632
|
+
- spec/factories/treatment_status.rb
|
633
|
+
- spec/factories/fundraiser/policies.rb
|
634
|
+
- spec/factories/fundraiser/totals.rb
|
635
|
+
- spec/factories/fundraiser/photos.rb
|
636
|
+
- spec/factories/venue.rb
|
637
|
+
- spec/factories/search_fundraiser.rb
|
638
|
+
- spec/factories/institution.rb
|
639
|
+
- spec/factories/grant_institution.rb
|
640
|
+
- spec/factories/address.rb
|
641
|
+
- spec/factories/phone.rb
|
642
|
+
- spec/factories/event/totals.rb
|
637
643
|
- spec/factories/event/photos.rb
|
638
644
|
- spec/factories/event/contacts/contact.rb
|
639
645
|
- spec/factories/event/contacts/name_pieces.rb
|
640
|
-
- spec/factories/event/
|
646
|
+
- spec/factories/event/coach_tracking/coaching_interactions.rb
|
647
|
+
- spec/factories/event/coach_tracking/proceeds.rb
|
648
|
+
- spec/factories/event/coach_tracking/plaque.rb
|
641
649
|
- spec/factories/event/coach_tracking.rb
|
642
650
|
- spec/factories/event/venue/location.rb
|
643
651
|
- spec/factories/event/venue/social.rb
|
644
|
-
- spec/factories/event/
|
645
|
-
- spec/factories/
|
646
|
-
- spec/factories/team/photos.rb
|
647
|
-
- spec/factories/team/totals.rb
|
648
|
-
- spec/factories/team/rankings.rb
|
649
|
-
- spec/factories/fundraiser/photos.rb
|
650
|
-
- spec/factories/fundraiser/totals.rb
|
651
|
-
- spec/factories/fundraiser/policies.rb
|
652
|
-
- spec/factories/search_event.rb
|
653
|
-
- spec/factories/person.rb
|
654
|
-
- spec/factories/search_team.rb
|
655
|
-
- spec/factories/fundraiser.rb
|
656
|
-
- spec/factories/error.rb
|
657
|
-
- spec/factories/payment.rb
|
658
|
-
- spec/factories/challenge.rb
|
652
|
+
- spec/factories/event/contacts.rb
|
653
|
+
- spec/factories/event/venue.rb
|
659
654
|
- spec/factories/fund.rb
|
655
|
+
- spec/factories/event.rb
|
656
|
+
- spec/factories/kid/custom_institution.rb
|
657
|
+
- spec/factories/shave_schedule/time_selection_permissions.rb
|
658
|
+
- spec/factories/user.rb
|
659
|
+
- spec/factories/kid_honor.rb
|