stbaldricks 6.8.0 → 6.9.0.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/entities/concerns/donation_recipient_concern.rb +11 -0
- data/lib/stbaldricks/entities/event.rb +2 -0
- data/lib/stbaldricks/entities/fund.rb +2 -0
- data/lib/stbaldricks/entities/fundraiser.rb +2 -0
- data/lib/stbaldricks/entities/memorial.rb +2 -0
- data/lib/stbaldricks/entities/participant.rb +2 -0
- data/lib/stbaldricks/entities/team.rb +2 -0
- data/lib/stbaldricks/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5681d0c7a20d2514f6d611321497a00a0cb8bc9eab1a0f7fe7eb83006d02569
|
4
|
+
data.tar.gz: 81bca9aa30ee697f9ab12f912d9994466625608d0c7ab3ddf020066452b372eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8077dc9dfe6ffc5df54b232bd7d1ff8a01f9bd5be1f66ffdf0280f1858abacb1804cea87544e53b8aecaff3579b14d128ea587b56d525b1658f586d3daa12ac
|
7
|
+
data.tar.gz: 9c97f29d38f70ebb0b6e483484eead4760c697fccf429bd41e61f8d2c39641c81863d5681a765a64c44b349d7d8a6ef1bb6643e642324e835b7b4b20036bd03c
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'active_support/concern'
|
2
|
+
|
3
|
+
module DonationRecipientConcern
|
4
|
+
extend ActiveSupport::Concern
|
5
|
+
|
6
|
+
def donation_recipient_url
|
7
|
+
donate_url = "/donate/#{model_name.element}/#{id}"
|
8
|
+
donate_url << "/#{event_year}" if respond_to?(:event_year)
|
9
|
+
donate_url
|
10
|
+
end
|
11
|
+
end
|
@@ -14,6 +14,7 @@ require 'stbaldricks/entities/lib/venue'
|
|
14
14
|
require 'stbaldricks/entities/lib/geo_location'
|
15
15
|
require 'stbaldricks/entities/lib/permissions'
|
16
16
|
require 'stbaldricks/entities/lib/third_party_media'
|
17
|
+
require 'stbaldricks/entities/concerns/donation_recipient_concern'
|
17
18
|
require 'stbaldricks/entities/concerns/event_year_concern'
|
18
19
|
require 'stbaldricks/entities/concerns/fundraising_page_concern'
|
19
20
|
require 'stbaldricks/entities/concerns/venue_concern'
|
@@ -22,6 +23,7 @@ module SBF
|
|
22
23
|
module Client
|
23
24
|
class Event < SBF::Client::TopLevelEntity
|
24
25
|
include Entities::Cacheable
|
26
|
+
include DonationRecipientConcern
|
25
27
|
include EventYearConcern
|
26
28
|
include FundraisingPageConcern
|
27
29
|
include VenueConcern
|
@@ -3,11 +3,13 @@ require 'stbaldricks/entities/lib/top_level'
|
|
3
3
|
require 'stbaldricks/entities/lib/fundraising_page'
|
4
4
|
require 'stbaldricks/endpoints/fund'
|
5
5
|
require 'stbaldricks/entities/lib/default_cacheable'
|
6
|
+
require 'stbaldricks/entities/concerns/donation_recipient_concern'
|
6
7
|
|
7
8
|
module SBF
|
8
9
|
module Client
|
9
10
|
class Fund < SBF::Client::TopLevelEntity
|
10
11
|
include Entities::DefaultCacheable
|
12
|
+
include DonationRecipientConcern
|
11
13
|
endpoint SBF::Client::FundEndpoint
|
12
14
|
action :allowed_entities
|
13
15
|
action :get
|
@@ -8,6 +8,7 @@ require 'stbaldricks/entities/lib/fundraising_page'
|
|
8
8
|
require 'stbaldricks/entities/lib/venue'
|
9
9
|
require 'stbaldricks/entities/lib/permissions'
|
10
10
|
require 'stbaldricks/entities/lib/default_cacheable'
|
11
|
+
require 'stbaldricks/entities/concerns/donation_recipient_concern'
|
11
12
|
require 'stbaldricks/entities/concerns/event_year_concern'
|
12
13
|
require 'stbaldricks/entities/concerns/fundraising_page_concern'
|
13
14
|
require 'stbaldricks/entities/concerns/venue_concern'
|
@@ -16,6 +17,7 @@ module SBF
|
|
16
17
|
module Client
|
17
18
|
class Fundraiser < SBF::Client::TopLevelEntity
|
18
19
|
include Entities::DefaultCacheable
|
20
|
+
include DonationRecipientConcern
|
19
21
|
include EventYearConcern
|
20
22
|
include FundraisingPageConcern
|
21
23
|
include VenueConcern
|
@@ -2,11 +2,13 @@ require 'stbaldricks/entities/lib/address'
|
|
2
2
|
require 'stbaldricks/entities/lib/top_level'
|
3
3
|
require 'stbaldricks/entities/lib/third_party_media'
|
4
4
|
require 'stbaldricks/entities/lib/default_cacheable'
|
5
|
+
require 'stbaldricks/entities/concerns/donation_recipient_concern'
|
5
6
|
|
6
7
|
module SBF
|
7
8
|
module Client
|
8
9
|
class Memorial < SBF::Client::TopLevelEntity
|
9
10
|
include Entities::DefaultCacheable
|
11
|
+
include DonationRecipientConcern
|
10
12
|
actions DEFAULT_CRUD_ACTIONS
|
11
13
|
blacklist_action :save
|
12
14
|
blacklist_action :create
|
@@ -11,6 +11,7 @@ require 'stbaldricks/entities/lib/name'
|
|
11
11
|
require 'stbaldricks/entities/lib/phone'
|
12
12
|
require 'stbaldricks/entities/lib/permissions'
|
13
13
|
require 'stbaldricks/entities/lib/default_cacheable'
|
14
|
+
require 'stbaldricks/entities/concerns/donation_recipient_concern'
|
14
15
|
require 'stbaldricks/entities/concerns/event_year_concern'
|
15
16
|
require 'stbaldricks/entities/concerns/fundraising_page_concern'
|
16
17
|
|
@@ -18,6 +19,7 @@ module SBF
|
|
18
19
|
module Client
|
19
20
|
class Participant < SBF::Client::TopLevelEntity
|
20
21
|
include Entities::DefaultCacheable
|
22
|
+
include DonationRecipientConcern
|
21
23
|
include EventYearConcern
|
22
24
|
include FundraisingPageConcern
|
23
25
|
endpoint SBF::Client::ParticipantEndpoint
|
@@ -5,6 +5,7 @@ require 'stbaldricks/entities/lib/top_level'
|
|
5
5
|
require 'stbaldricks/entities/lib/fundraising_page'
|
6
6
|
require 'stbaldricks/entities/lib/permissions'
|
7
7
|
require 'stbaldricks/entities/lib/default_cacheable'
|
8
|
+
require 'stbaldricks/entities/concerns/donation_recipient_concern'
|
8
9
|
require 'stbaldricks/entities/concerns/event_year_concern'
|
9
10
|
require 'stbaldricks/entities/concerns/fundraising_page_concern'
|
10
11
|
|
@@ -12,6 +13,7 @@ module SBF
|
|
12
13
|
module Client
|
13
14
|
class Team < SBF::Client::TopLevelEntity
|
14
15
|
include Entities::DefaultCacheable
|
16
|
+
include DonationRecipientConcern
|
15
17
|
include EventYearConcern
|
16
18
|
include FundraisingPageConcern
|
17
19
|
actions DEFAULT_CRUD_ACTIONS
|
data/lib/stbaldricks/version.rb
CHANGED
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: 6.
|
4
|
+
version: 6.9.0.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: 2018-11-
|
11
|
+
date: 2018-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -113,6 +113,7 @@ files:
|
|
113
113
|
- lib/stbaldricks/entities/challenger.rb
|
114
114
|
- lib/stbaldricks/entities/challenger/model_type.rb
|
115
115
|
- lib/stbaldricks/entities/communicate.rb
|
116
|
+
- lib/stbaldricks/entities/concerns/donation_recipient_concern.rb
|
116
117
|
- lib/stbaldricks/entities/concerns/entity_response_concern.rb
|
117
118
|
- lib/stbaldricks/entities/concerns/event_year_concern.rb
|
118
119
|
- lib/stbaldricks/entities/concerns/fundraising_page_concern.rb
|
@@ -236,9 +237,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
236
237
|
version: '0'
|
237
238
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
238
239
|
requirements:
|
239
|
-
- - "
|
240
|
+
- - ">"
|
240
241
|
- !ruby/object:Gem::Version
|
241
|
-
version:
|
242
|
+
version: 1.3.1
|
242
243
|
requirements: []
|
243
244
|
rubyforge_project:
|
244
245
|
rubygems_version: 2.7.8
|