stbaldricks 12.6.0 → 12.6.2.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/fund.rb +28 -0
- data/lib/stbaldricks/enums/country.rb +2 -0
- data/lib/stbaldricks/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdb8aa3e470a7e9304a5720696ffcd5d76c60bfa2ca73841848801f7db896c16
|
4
|
+
data.tar.gz: 1e9701c0c14a473a7a87f02bc1cd3162bec21c46ba0d332d0f402e4535bb0939
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b52f42699b0797e8d13f1d3d50eec3495e2d0ca6b9d1572f6688d647e32d88eeacbb49fd08c2b16a85d0d2e80e6128a9e7436a7bf2fdcae067f022e9d051e417
|
7
|
+
data.tar.gz: 935fa79902bba9baa185be9ecda02011e4e683361998fdaea46d6668bb800841fc013fe90b1eb87da713bb84d3c486c3dc6a9b00c0a04c031e5506fac724613f
|
@@ -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 = []
|
@@ -58,6 +58,7 @@ module SBF
|
|
58
58
|
ITALY = 'Italy'
|
59
59
|
JAMAICA = 'Jamaica'
|
60
60
|
JAPAN = 'Japan'
|
61
|
+
JORDAN = 'Jordan'
|
61
62
|
KENYA = 'Kenya'
|
62
63
|
KUWAIT = 'Kuwait'
|
63
64
|
LEBANON = 'Lebanon'
|
@@ -171,6 +172,7 @@ module SBF
|
|
171
172
|
ITALY => :IT,
|
172
173
|
JAMAICA => :JM,
|
173
174
|
JAPAN => :JP,
|
175
|
+
JORDAN => :JO,
|
174
176
|
KENYA => :KE,
|
175
177
|
KUWAIT => :KW,
|
176
178
|
LEBANON => :LB,
|
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: 12.6.
|
4
|
+
version: 12.6.2.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-
|
11
|
+
date: 2022-07-18 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:
|
568
|
+
version: 1.3.1
|
569
569
|
requirements: []
|
570
570
|
rubygems_version: 3.0.3.1
|
571
571
|
signing_key:
|