stbaldricks 4.8.1.alpha.2 → 5.0.0.alpha.1

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
- SHA256:
3
- metadata.gz: c9413528711e97557df863dbde14d5aa1cee1832778ea08ba8cd71e47895bfde
4
- data.tar.gz: 27a4038c062f96fb1ada059d145e89a87a9b730ec3ed32addef8401d319dad58
2
+ SHA1:
3
+ metadata.gz: 596993a149badb7e0c6df08fd04d811418ad2b64
4
+ data.tar.gz: 8c5db21ffb658f9c670611e431694000942f2391
5
5
  SHA512:
6
- metadata.gz: 46d3e19f538c3fc89dd0bca300145d3c79f9960f229be79e0006a1d93b337aa2be91b6695c94a9bb34434ff5f8cf0ab1636bb02aec881b41aa97398d6c31345c
7
- data.tar.gz: 64e50823ceb3a9c91adaa1fc047d873115fe519c1b5738794bc3fe40894e455cc393e8cf61985b7a4f3a166a2d3c0da6ad613cd3f5e35702597f12066bc0b9de
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
@@ -1,5 +1,5 @@
1
1
  module SBF
2
2
  module Client
3
- VERSION = '4.8.1.alpha.2'
3
+ VERSION = '5.0.0.alpha.1'
4
4
  end
5
5
  end
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.8.1.alpha.2
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-19 00:00:00.000000000 Z
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.7.5
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