stbaldricks 10.4.0.alpha.2 → 10.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stbaldricks/configuration.rb +4 -4
  3. data/lib/stbaldricks/endpoints/donation.rb +2 -2
  4. data/lib/stbaldricks/endpoints/lib/entity.rb +2 -2
  5. data/lib/stbaldricks/endpoints/photo.rb +1 -3
  6. data/lib/stbaldricks/entities/batch.rb +2 -2
  7. data/lib/stbaldricks/entities/challenge.rb +4 -4
  8. data/lib/stbaldricks/entities/challenger.rb +2 -2
  9. data/lib/stbaldricks/entities/challenger/model_type.rb +2 -0
  10. data/lib/stbaldricks/entities/concerns/entity_response_concern.rb +2 -4
  11. data/lib/stbaldricks/entities/config.rb +1 -1
  12. data/lib/stbaldricks/entities/contact.rb +1 -1
  13. data/lib/stbaldricks/entities/deduplicator_match.rb +5 -5
  14. data/lib/stbaldricks/entities/donation.rb +3 -3
  15. data/lib/stbaldricks/entities/donation/donor_type.rb +2 -0
  16. data/lib/stbaldricks/entities/donation/how_created.rb +2 -0
  17. data/lib/stbaldricks/entities/donation/payment_gateway.rb +2 -0
  18. data/lib/stbaldricks/entities/donation/payment_type.rb +2 -0
  19. data/lib/stbaldricks/entities/donation/promo_code.rb +19 -5
  20. data/lib/stbaldricks/entities/donation/recipient_type.rb +2 -0
  21. data/lib/stbaldricks/entities/donation/special_donation_type.rb +2 -0
  22. data/lib/stbaldricks/entities/donation/status.rb +2 -0
  23. data/lib/stbaldricks/entities/donation/submitter_type.rb +2 -0
  24. data/lib/stbaldricks/entities/event.rb +10 -14
  25. data/lib/stbaldricks/entities/event/fund_relationship_type.rb +2 -0
  26. data/lib/stbaldricks/entities/event/how_created.rb +2 -0
  27. data/lib/stbaldricks/entities/event/promo_code.rb +2 -0
  28. data/lib/stbaldricks/entities/event/status.rb +2 -0
  29. data/lib/stbaldricks/entities/event/sub_type.rb +2 -0
  30. data/lib/stbaldricks/entities/event/type.rb +2 -0
  31. data/lib/stbaldricks/entities/event_application/model_type.rb +2 -0
  32. data/lib/stbaldricks/entities/event_application/status.rb +2 -0
  33. data/lib/stbaldricks/entities/fund.rb +1 -2
  34. data/lib/stbaldricks/entities/fundraiser.rb +21 -25
  35. data/lib/stbaldricks/entities/international_partner.rb +2 -2
  36. data/lib/stbaldricks/entities/kid.rb +62 -62
  37. data/lib/stbaldricks/entities/kid_honor.rb +4 -4
  38. data/lib/stbaldricks/entities/lib/address.rb +2 -2
  39. data/lib/stbaldricks/entities/lib/alternate_shipping_address.rb +2 -2
  40. data/lib/stbaldricks/entities/lib/base.rb +24 -27
  41. data/lib/stbaldricks/entities/lib/cacheable.rb +1 -3
  42. data/lib/stbaldricks/entities/lib/collection.rb +2 -2
  43. data/lib/stbaldricks/entities/lib/email_address.rb +2 -2
  44. data/lib/stbaldricks/entities/lib/fundraising_page.rb +1 -1
  45. data/lib/stbaldricks/entities/lib/not_implemented_object.rb +4 -4
  46. data/lib/stbaldricks/entities/lib/payment.rb +14 -14
  47. data/lib/stbaldricks/entities/lib/phone.rb +3 -3
  48. data/lib/stbaldricks/entities/lib/third_party_media.rb +2 -2
  49. data/lib/stbaldricks/entities/lib/top_level.rb +4 -4
  50. data/lib/stbaldricks/entities/memorial.rb +3 -4
  51. data/lib/stbaldricks/entities/message.rb +8 -8
  52. data/lib/stbaldricks/entities/organization.rb +21 -21
  53. data/lib/stbaldricks/entities/page.rb +4 -6
  54. data/lib/stbaldricks/entities/participant.rb +58 -61
  55. data/lib/stbaldricks/entities/person.rb +97 -98
  56. data/lib/stbaldricks/entities/photo.rb +26 -26
  57. data/lib/stbaldricks/entities/recurring_gift.rb +18 -18
  58. data/lib/stbaldricks/entities/search.rb +8 -8
  59. data/lib/stbaldricks/entities/shave_schedule.rb +2 -2
  60. data/lib/stbaldricks/entities/team.rb +15 -18
  61. data/lib/stbaldricks/entities/user.rb +7 -5
  62. data/lib/stbaldricks/enums/cancer_types.rb +2 -0
  63. data/lib/stbaldricks/enums/country.rb +2 -0
  64. data/lib/stbaldricks/enums/league_status.rb +2 -0
  65. data/lib/stbaldricks/enums/model_type.rb +2 -0
  66. data/lib/stbaldricks/enums/permission.rb +8 -8
  67. data/lib/stbaldricks/enums/permission_model_type.rb +2 -0
  68. data/lib/stbaldricks/enums/province.rb +2 -0
  69. data/lib/stbaldricks/enums/state.rb +2 -0
  70. data/lib/stbaldricks/enums/top_level_category_type.rb +2 -0
  71. data/lib/stbaldricks/log.rb +3 -1
  72. data/lib/stbaldricks/patches/hash.rb +2 -2
  73. data/lib/stbaldricks/patches/string.rb +1 -1
  74. data/lib/stbaldricks/request.rb +3 -3
  75. data/lib/stbaldricks/version.rb +1 -1
  76. data/lib/stbaldricks_factories.rb +1 -1
  77. data/spec/factories/challenger.rb +2 -2
  78. data/spec/factories/kid.rb +3 -3
  79. data/spec/factories/kid_institution.rb +2 -2
  80. data/spec/factories/team.rb +2 -2
  81. metadata +88 -88
@@ -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 { |it|
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)
@@ -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 { |it|
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,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stbaldricks
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.4.0.alpha.2
4
+ version: 10.6.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-04-02 00:00:00.000000000 Z
11
+ date: 2020-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 5.2.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.2
26
+ version: 5.2.4.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: htmlentities
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -224,16 +224,16 @@ dependencies:
224
224
  name: rubocop
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
- - - ">="
227
+ - - '='
228
228
  - !ruby/object:Gem::Version
229
- version: '0'
229
+ version: 0.82.0
230
230
  type: :development
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
- - - ">="
234
+ - - '='
235
235
  - !ruby/object:Gem::Version
236
- version: '0'
236
+ version: 0.82.0
237
237
  - !ruby/object:Gem::Dependency
238
238
  name: rubocop-performance
239
239
  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: 1.3.1
557
+ version: '0'
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/memorial.rb
566
- - spec/factories/kid_honor.rb
565
+ - spec/factories/response.rb
566
+ - spec/factories/contact.rb
567
+ - spec/factories/grant.rb
568
+ - spec/factories/lib/faker_patch.rb
569
+ - spec/factories/lib/helpers.rb
570
+ - spec/factories/disease.rb
571
+ - spec/factories/permissions.rb
572
+ - spec/factories/event_supporter.rb
573
+ - spec/factories/campaign.rb
574
+ - spec/factories/team/rankings/ranking.rb
575
+ - spec/factories/team/rankings.rb
576
+ - spec/factories/team/totals.rb
577
+ - spec/factories/team/photos.rb
578
+ - spec/factories/search_event.rb
579
+ - spec/factories/shave_schedule/time_selection_permissions.rb
580
+ - spec/factories/kid/custom_institution.rb
581
+ - spec/factories/fundraiser.rb
582
+ - spec/factories/search_kid.rb
583
+ - spec/factories/photo.rb
567
584
  - spec/factories/donor.rb
585
+ - spec/factories/page.rb
568
586
  - spec/factories/newsletter_recipient.rb
587
+ - spec/factories/email_address.rb
569
588
  - spec/factories/recurring_gift.rb
570
- - spec/factories/contact.rb
571
- - spec/factories/team.rb
572
- - spec/factories/donation/participant.rb
573
- - spec/factories/phone.rb
574
- - spec/factories/response.rb
575
- - spec/factories/grant.rb
576
- - spec/factories/researcher.rb
577
- - spec/factories/payment.rb
589
+ - spec/factories/shave_schedule.rb
590
+ - spec/factories/grant_institution.rb
591
+ - spec/factories/message.rb
578
592
  - spec/factories/collection.rb
579
- - spec/factories/fundraiser.rb
580
- - spec/factories/lib/helpers.rb
581
- - spec/factories/lib/faker_patch.rb
593
+ - spec/factories/participant/rankings/ranking.rb
594
+ - spec/factories/participant/policies.rb
595
+ - spec/factories/participant/rankings.rb
596
+ - spec/factories/participant/roles/role.rb
597
+ - spec/factories/participant/roles.rb
598
+ - spec/factories/participant/totals.rb
599
+ - spec/factories/participant/photos.rb
600
+ - spec/factories/campaign/totals.rb
601
+ - spec/factories/person/policies.rb
582
602
  - spec/factories/person/email_addresses.rb
583
603
  - spec/factories/person/phone_numbers.rb
584
604
  - spec/factories/person/addresses.rb
585
- - spec/factories/person/policies.rb
586
- - spec/factories/campaign.rb
587
- - spec/factories/page.rb
588
- - spec/factories/kid_institution.rb
605
+ - spec/factories/diagnosis.rb
606
+ - spec/factories/address.rb
607
+ - spec/factories/venue.rb
608
+ - spec/factories/memorial.rb
589
609
  - spec/factories/participant.rb
590
- - spec/factories/donation.rb
591
- - spec/factories/event/venue/social.rb
592
- - spec/factories/event/venue/location.rb
610
+ - spec/factories/challenge.rb
611
+ - spec/factories/fundraiser/policies.rb
612
+ - spec/factories/fundraiser/totals.rb
613
+ - spec/factories/fundraiser/photos.rb
614
+ - spec/factories/challenger.rb
615
+ - spec/factories/treatment_status.rb
616
+ - spec/factories/contact_group.rb
617
+ - spec/factories/person.rb
618
+ - spec/factories/third_party_media.rb
619
+ - spec/factories/search_team.rb
620
+ - spec/factories/search_participant.rb
621
+ - spec/factories/event.rb
622
+ - spec/factories/organization.rb
623
+ - spec/factories/institution.rb
624
+ - spec/factories/donation/participant.rb
625
+ - spec/factories/name_pieces.rb
593
626
  - spec/factories/event/coach_tracking/coaching_interactions.rb
594
- - spec/factories/event/coach_tracking/plaque.rb
595
627
  - spec/factories/event/coach_tracking/proceeds.rb
596
- - spec/factories/event/venue.rb
628
+ - spec/factories/event/coach_tracking/plaque.rb
597
629
  - spec/factories/event/contacts/contact.rb
598
630
  - spec/factories/event/contacts/name_pieces.rb
599
- - spec/factories/event/photos.rb
631
+ - spec/factories/event/venue/location.rb
632
+ - spec/factories/event/venue/social.rb
600
633
  - spec/factories/event/coach_tracking.rb
601
- - spec/factories/event/contacts.rb
634
+ - spec/factories/event/venue.rb
602
635
  - spec/factories/event/totals.rb
603
- - spec/factories/permissions.rb
604
- - spec/factories/location.rb
605
- - spec/factories/participant/rankings/ranking.rb
606
- - spec/factories/participant/rankings.rb
607
- - spec/factories/participant/photos.rb
608
- - spec/factories/participant/policies.rb
609
- - spec/factories/participant/roles/role.rb
610
- - spec/factories/participant/roles.rb
611
- - spec/factories/participant/totals.rb
636
+ - spec/factories/event/photos.rb
637
+ - spec/factories/event/contacts.rb
612
638
  - spec/factories/event_application.rb
613
- - spec/factories/message.rb
614
- - spec/factories/user.rb
615
- - spec/factories/shave_schedule.rb
616
- - spec/factories/team/rankings/ranking.rb
617
- - spec/factories/team/rankings.rb
618
- - spec/factories/team/photos.rb
619
- - spec/factories/team/totals.rb
620
- - spec/factories/search_participant.rb
621
- - spec/factories/search_event.rb
622
- - spec/factories/photo.rb
623
- - spec/factories/kid/custom_institution.rb
624
- - spec/factories/search_team.rb
639
+ - spec/factories/payment.rb
640
+ - spec/factories/kid_institution.rb
625
641
  - spec/factories/error.rb
626
- - spec/factories/search_fundraiser.rb
627
- - spec/factories/campaign/totals.rb
628
- - spec/factories/name_pieces.rb
629
- - spec/factories/challenger.rb
630
- - spec/factories/memorial/tribute.rb
631
- - spec/factories/memorial/photos.rb
632
- - spec/factories/memorial/totals.rb
633
- - spec/factories/venue.rb
634
- - spec/factories/institution.rb
635
- - spec/factories/treatment_status.rb
636
- - spec/factories/photos.rb
637
- - spec/factories/fund.rb
638
- - spec/factories/search_kid.rb
639
- - spec/factories/person.rb
640
- - spec/factories/contact_group.rb
641
- - spec/factories/disease.rb
642
- - spec/factories/fundraising_page.rb
643
- - spec/factories/event_supporter.rb
644
- - spec/factories/event.rb
642
+ - spec/factories/kid.rb
645
643
  - spec/factories/organization/email_addresses.rb
646
644
  - spec/factories/organization/phone_numbers.rb
647
645
  - spec/factories/organization/addresses.rb
648
- - spec/factories/address.rb
649
- - spec/factories/third_party_media.rb
650
- - spec/factories/kid.rb
651
- - spec/factories/shave_schedule/time_selection_permissions.rb
652
- - spec/factories/challenge.rb
653
- - spec/factories/fundraiser/photos.rb
654
- - spec/factories/fundraiser/policies.rb
655
- - spec/factories/fundraiser/totals.rb
656
- - spec/factories/organization.rb
657
- - spec/factories/grant_institution.rb
658
- - spec/factories/email_address.rb
659
- - spec/factories/diagnosis.rb
646
+ - spec/factories/search_fundraiser.rb
647
+ - spec/factories/kid_honor.rb
648
+ - spec/factories/photos.rb
649
+ - spec/factories/phone.rb
650
+ - spec/factories/fundraising_page.rb
651
+ - spec/factories/user.rb
652
+ - spec/factories/team.rb
653
+ - spec/factories/fund.rb
654
+ - spec/factories/memorial/totals.rb
655
+ - spec/factories/memorial/photos.rb
656
+ - spec/factories/memorial/tribute.rb
657
+ - spec/factories/location.rb
658
+ - spec/factories/researcher.rb
659
+ - spec/factories/donation.rb