stbaldricks 4.8.1.alpha.2 → 5.0.0.alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/lib/stbaldricks/endpoints/fundraiser.rb +0 -18
- data/lib/stbaldricks/entities/fundraiser.rb +4 -1
- data/lib/stbaldricks/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 596993a149badb7e0c6df08fd04d811418ad2b64
|
4
|
+
data.tar.gz: 8c5db21ffb658f9c670611e431694000942f2391
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ba56786c627238f8cf104c45c5f078a7f4d4798c2888657e11ecfd32f21e1ede085bd8d575bfa85dc7f9f2c918ae930c209f70a451d7751f93cedb155b3cb7f
|
7
|
+
data.tar.gz: 10f5501aa1052a81590e10be93940101a47c0c643f29fb7e4a9616abb224490585716dc04a265163f7579cb45ea75863772f093fda802160403d3f520c47e327
|
@@ -15,24 +15,6 @@ module SBF
|
|
15
15
|
SBF::Client::Api::Response.new(http_code: response.code, data: data, error: error)
|
16
16
|
end
|
17
17
|
|
18
|
-
def start_team(fundraiser_id, team_name, fundraising_goal)
|
19
|
-
response = SBF::Client::Api::Request.post_request(
|
20
|
-
"#{base_uri}/move_to_different_team",
|
21
|
-
id: fundraiser_id,
|
22
|
-
new_team_id: 0,
|
23
|
-
team_name: team_name,
|
24
|
-
goal: fundraising_goal,
|
25
|
-
how_created: SBF::Client::Team::HowCreated::WEBSITE)
|
26
|
-
|
27
|
-
if ok?(response)
|
28
|
-
data = SBF::Client::FullFundraiser.new(JSON.parse(response.body).symbolize!)
|
29
|
-
else
|
30
|
-
error = SBF::Client::ErrorEntity.new(JSON.parse(response.body).symbolize!)
|
31
|
-
end
|
32
|
-
|
33
|
-
SBF::Client::Api::Response.new(http_code: response.code, data: data, error: error)
|
34
|
-
end
|
35
|
-
|
36
18
|
def leave_team(fundraiser_id)
|
37
19
|
join_team(fundraiser_id, 0)
|
38
20
|
end
|
@@ -22,7 +22,6 @@ module SBF
|
|
22
22
|
endpoint SBF::Client::FundraiserEndpoint
|
23
23
|
actions DEFAULT_CRUD_ACTIONS
|
24
24
|
action :join_team
|
25
|
-
action :start_team
|
26
25
|
action :leave_team
|
27
26
|
action :join_event
|
28
27
|
action :leave_event
|
@@ -148,6 +147,10 @@ module SBF
|
|
148
147
|
rescue
|
149
148
|
nil
|
150
149
|
end
|
150
|
+
|
151
|
+
def event?
|
152
|
+
event && !event.id.nil?
|
153
|
+
end
|
151
154
|
end
|
152
155
|
end
|
153
156
|
end
|
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:
|
4
|
+
version: 5.0.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-04-
|
11
|
+
date: 2018-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -232,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
232
232
|
version: 1.3.1
|
233
233
|
requirements: []
|
234
234
|
rubyforge_project:
|
235
|
-
rubygems_version: 2.
|
235
|
+
rubygems_version: 2.6.13
|
236
236
|
signing_key:
|
237
237
|
specification_version: 4
|
238
238
|
summary: St. Baldrick's Foundation Ruby Client Library
|