stbaldricks 10.6.0.alpha.1 → 10.6.0

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: 72f8169c42adcc7c82ac7202042a1fffaad74fdfdb9f513be013d50da1110709
4
- data.tar.gz: faaba94f50842b9b3df938c7dfb7af80d04c8019611080ef7f18d58270951dca
3
+ metadata.gz: 0ea675b1d359942d0694800c9e8588275e83ef41a8e363e39a2d6aa4ef4a5a02
4
+ data.tar.gz: 13a1140cc333d580dd7725e6acf598a840d3b1529fb41edddf3cccc59761df7e
5
5
  SHA512:
6
- metadata.gz: 0fa190e26daf96ff0dcc2d59a95f236a250b7556c589f831d998cf6581939a741af5208a6490705f490e6cbdd15cafa405e416346a9344d4b3c17c955485cba2
7
- data.tar.gz: 6f8663a5989167abf30623ab012c8dc1d9735e5f373aba56dc195c12755eb8a5a91e5c6764855f77b6c971c5a754f30c4c3acf3052ead974047afdf951ecc4ce
6
+ metadata.gz: c44585e4e05bd24ef4a976926995f409790707149d0298fcf3223febdf9219cf4ad774bd7213268cbe2b7d896393a4344d4f60f7cfd392cddbd1c8b895412830
7
+ data.tar.gz: 400493e6ff586305caf3d53bf22fd79f6838515ddfbc4266b7530f9c584e9a11e9fa70e1d35fcb2e1e3518837a9649a3499847ea11060a8f277cfe01d4c72b17
@@ -61,9 +61,7 @@ module SBF
61
61
  end
62
62
  end
63
63
 
64
- private
65
-
66
- def photo_for_upload(file, data)
64
+ private def photo_for_upload(file, data)
67
65
  if data.is_a?(SBF::Client::Photo)
68
66
  data.file = file
69
67
  data
@@ -47,16 +47,14 @@ module EntityResponseConcern
47
47
  self
48
48
  end
49
49
 
50
- private
51
-
52
- def single_active_model_error
50
+ private def single_active_model_error
53
51
  return if errors.empty?
54
52
  return [:base, errors[:base].first] if errors[:base].any?
55
53
 
56
54
  errors.first
57
55
  end
58
56
 
59
- def log_deprecated(method_name, method_caller = nil)
57
+ private def log_deprecated(method_name, method_caller = nil)
60
58
  SBF::Client::Configuration.logger.warn do
61
59
  caller_message = method_caller.nil? ? '' : " Called from #{method_caller.first}"
62
60
 
@@ -31,9 +31,7 @@ module SBF
31
31
  id
32
32
  end
33
33
 
34
- private
35
-
36
- def cache_id_from_hash_func(proc)
34
+ private def cache_id_from_hash_func(proc)
37
35
  raise ArgumentError, "Unable to re-set cache_id_from_hash on #{name}" if @cache_id_proc
38
36
 
39
37
  @cache_id_proc = proc
@@ -69,9 +69,7 @@ module SBF
69
69
  end
70
70
  end
71
71
 
72
- private
73
-
74
- def update_draft_content_section(content, data, cid)
72
+ private def update_draft_content_section(content, data, cid)
75
73
  # update or create draft version of content
76
74
  draft = draft_content.find { |d| d.id == cid }
77
75
  if draft.nil?
@@ -1,5 +1,5 @@
1
1
  module SBF
2
2
  module Client
3
- VERSION = '10.6.0.alpha.1'
3
+ VERSION = '10.6.0'
4
4
  end
5
5
  end
@@ -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)
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.6.0.alpha.1
4
+ version: 10.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Firespring
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-18 00:00:00.000000000 Z
11
+ date: 2020-05-29 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
@@ -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
567
- - spec/factories/donor.rb
568
- - spec/factories/newsletter_recipient.rb
569
- - 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
565
+ - spec/factories/collection.rb
566
+ - spec/factories/user.rb
567
+ - spec/factories/organization/addresses.rb
568
+ - spec/factories/organization/email_addresses.rb
569
+ - spec/factories/organization/phone_numbers.rb
570
+ - spec/factories/search_participant.rb
571
+ - spec/factories/location.rb
572
+ - spec/factories/email_address.rb
573
+ - spec/factories/grant_institution.rb
574
574
  - spec/factories/response.rb
575
+ - spec/factories/fundraising_page.rb
575
576
  - spec/factories/grant.rb
576
- - spec/factories/researcher.rb
577
- - spec/factories/payment.rb
578
- - spec/factories/collection.rb
579
- - spec/factories/fundraiser.rb
580
- - spec/factories/lib/helpers.rb
581
- - spec/factories/lib/faker_patch.rb
582
- - spec/factories/person/email_addresses.rb
583
- - spec/factories/person/phone_numbers.rb
577
+ - spec/factories/campaign.rb
578
+ - spec/factories/donor.rb
579
+ - spec/factories/kid_institution.rb
580
+ - spec/factories/shave_schedule.rb
581
+ - spec/factories/donation/participant.rb
584
582
  - spec/factories/person/addresses.rb
583
+ - spec/factories/person/email_addresses.rb
585
584
  - spec/factories/person/policies.rb
586
- - spec/factories/campaign.rb
585
+ - spec/factories/person/phone_numbers.rb
586
+ - spec/factories/photo.rb
587
+ - spec/factories/event_application.rb
588
+ - spec/factories/kid.rb
589
+ - spec/factories/event.rb
590
+ - spec/factories/donation.rb
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
587
600
  - spec/factories/page.rb
588
- - spec/factories/kid_institution.rb
601
+ - spec/factories/newsletter_recipient.rb
602
+ - spec/factories/memorial.rb
603
+ - spec/factories/institution.rb
589
604
  - spec/factories/participant.rb
590
- - spec/factories/donation.rb
591
- - spec/factories/event/venue/social.rb
592
- - spec/factories/event/venue/location.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
+ - spec/factories/diagnosis.rb
617
+ - spec/factories/researcher.rb
618
+ - spec/factories/contact.rb
619
+ - spec/factories/organization.rb
620
+ - spec/factories/search_fundraiser.rb
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
628
+ - spec/factories/lib/helpers.rb
629
+ - spec/factories/treatment_status.rb
630
+ - spec/factories/recurring_gift.rb
631
+ - spec/factories/name_pieces.rb
632
+ - spec/factories/shave_schedule/time_selection_permissions.rb
593
633
  - spec/factories/event/coach_tracking/coaching_interactions.rb
594
- - spec/factories/event/coach_tracking/plaque.rb
595
634
  - spec/factories/event/coach_tracking/proceeds.rb
596
- - spec/factories/event/venue.rb
635
+ - spec/factories/event/coach_tracking/plaque.rb
636
+ - spec/factories/event/contacts.rb
637
+ - spec/factories/event/photos.rb
597
638
  - spec/factories/event/contacts/contact.rb
598
639
  - spec/factories/event/contacts/name_pieces.rb
599
- - spec/factories/event/photos.rb
640
+ - spec/factories/event/venue.rb
600
641
  - spec/factories/event/coach_tracking.rb
601
- - spec/factories/event/contacts.rb
642
+ - spec/factories/event/venue/location.rb
643
+ - spec/factories/event/venue/social.rb
602
644
  - 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
612
- - spec/factories/event_application.rb
613
- - spec/factories/message.rb
614
- - spec/factories/user.rb
615
- - spec/factories/shave_schedule.rb
616
645
  - spec/factories/team/rankings/ranking.rb
617
- - spec/factories/team/rankings.rb
618
646
  - spec/factories/team/photos.rb
619
647
  - spec/factories/team/totals.rb
620
- - spec/factories/search_participant.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
621
652
  - spec/factories/search_event.rb
622
- - spec/factories/photo.rb
623
- - spec/factories/kid/custom_institution.rb
653
+ - spec/factories/person.rb
624
654
  - spec/factories/search_team.rb
655
+ - spec/factories/fundraiser.rb
625
656
  - 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
645
- - spec/factories/organization/email_addresses.rb
646
- - spec/factories/organization/phone_numbers.rb
647
- - 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
657
+ - spec/factories/payment.rb
652
658
  - 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
659
+ - spec/factories/fund.rb