stbaldricks 4.4.0.beta.3 → 4.4.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: be2fc88386ca5ccda2e6f3b1f5068077d9ebbe06bd01041fadbbff1a685dc1b5
4
- data.tar.gz: 63c5247a246c493578af005ee14697b33d07449d39c03aa55a96cfb70e5ecd6a
3
+ metadata.gz: 7fb0f182f18fa39982133879002629823204a4cc11f966573ae8e35b3496a7d9
4
+ data.tar.gz: 74102383c231cc0c13f727676acee3b8bb13fb7ee21360af5cb0ec3d94a304c0
5
5
  SHA512:
6
- metadata.gz: 7744a36174356273b3c65212ae8c2933f71151d980e68a93905294c71ae0ee5a415d1596b9b14d9c8587e637f7e51a7fec8e8af1e921343b47f10976a7ba4abf
7
- data.tar.gz: e133507cb659339537a5811ad8dac63987a524e2113902afb4fecf84b6026c818635b28f1800724eb4fc29bcd4fbd9b680071301c86723846387c35dac3d8ac5
6
+ metadata.gz: 6c35de2317f3554d3d035be592703742bfe1cf4721e082c4822c27f01a3fd279517f1a4c08ff0fe540ed943dcbb1bf23a8b51821d5691673d5eb2fcd9d787c44
7
+ data.tar.gz: 22d47369f405f95b05a425456f7175a4e367bb2d01a0087aa9c9611401c4e7be4f261751cbe9685ff9e90c1d382243460e8d2a83f75a819caf9038ae76d0419a
@@ -67,11 +67,13 @@ module SBF
67
67
  password: password
68
68
  )
69
69
 
70
- unless ok?(response)
70
+ if ok?(response)
71
+ SBF::Client::Configuration.user_token = nil
72
+ else
73
+ SBF::Client::Configuration.user_token = nil
71
74
  parsed_response = JSON.parse(response.body).symbolize!
72
75
  error = SBF::Client::ErrorEntity.new(parsed_response)
73
76
  end
74
- SBF::Client::Configuration.user_token = nil
75
77
 
76
78
  SBF::Client::LOG.info { "SB::Client - Change Password for user with profile_id: #{profile_id}" }
77
79
  SBF::Client::Api::Response.new(http_code: response.code, data: nil, error: error)
@@ -96,7 +96,6 @@ module SBF
96
96
  SWITZERLAND = 'Switzerland'
97
97
  TAIWAN = 'Taiwan'
98
98
  THAILAND = 'Thailand'
99
- TONGA = 'Tonga'
100
99
  TRINIDAD_AND_TOBAGO = 'Trinidad And Tobago'
101
100
  TURKEY = 'Turkey'
102
101
  TURKS_AND_CAICOS_ISLANDS = 'Turks And Caicos Islands'
@@ -207,7 +206,6 @@ module SBF
207
206
  SWITZERLAND => :CH,
208
207
  TAIWAN => :TW,
209
208
  THAILAND => :TH,
210
- TONGA => :TO,
211
209
  TRINIDAD_AND_TOBAGO => :TT,
212
210
  TURKEY => :TR,
213
211
  TURKS_AND_CAICOS_ISLANDS => :TC,
@@ -1,5 +1,5 @@
1
1
  module SBF
2
2
  module Client
3
- VERSION = '4.4.0.beta.3'
3
+ VERSION = '4.4.0'
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.4.0.beta.3
4
+ version: 4.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Firespring
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-08 00:00:00.000000000 Z
11
+ date: 2018-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -85,7 +85,6 @@ files:
85
85
  - lib/stbaldricks/endpoints/contact.rb
86
86
  - lib/stbaldricks/endpoints/event.rb
87
87
  - lib/stbaldricks/endpoints/event_application.rb
88
- - lib/stbaldricks/endpoints/facebook/user.rb
89
88
  - lib/stbaldricks/endpoints/fund.rb
90
89
  - lib/stbaldricks/endpoints/kid.rb
91
90
  - lib/stbaldricks/endpoints/kid_honor.rb
@@ -139,7 +138,6 @@ files:
139
138
  - lib/stbaldricks/entities/event_donation_summary.rb
140
139
  - lib/stbaldricks/entities/event_participant_summary.rb
141
140
  - lib/stbaldricks/entities/event_supporter.rb
142
- - lib/stbaldricks/entities/facebook/user.rb
143
141
  - lib/stbaldricks/entities/fund.rb
144
142
  - lib/stbaldricks/entities/fundraiser.rb
145
143
  - lib/stbaldricks/entities/grant.rb
@@ -218,9 +216,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
218
216
  version: '0'
219
217
  required_rubygems_version: !ruby/object:Gem::Requirement
220
218
  requirements:
221
- - - ">"
219
+ - - ">="
222
220
  - !ruby/object:Gem::Version
223
- version: 1.3.1
221
+ version: '0'
224
222
  requirements: []
225
223
  rubyforge_project:
226
224
  rubygems_version: 2.7.4
@@ -1,39 +0,0 @@
1
- require 'stbaldricks/endpoints/user'
2
-
3
- module SBF
4
- module Client
5
- module Facebook
6
- class UserEndpoint < SBF::Client::UserEndpoint
7
- # Logs in a user, using a Facebook Oauth authorization code & redirect uri.
8
- # Configures the client library to use user credentials for subsequent requests.
9
- # Returns the SBF access token for the user that should be held onto to configure the client library in
10
- # future requests that are outside of this scope.
11
- #
12
- # @param authorization_code [string]
13
- # @param redirect_uri [string]
14
- # @return [string]
15
- def login!(authorization_code, redirect_uri)
16
- response = SBF::Client::Api::Request.post_request(
17
- "/#{SBF::Client::Api::VERSION}/security/facebook/login",
18
- authorization_code: authorization_code,
19
- redirect_uri: redirect_uri
20
- )
21
- parsed_response = JSON.parse(response.body).symbolize!
22
-
23
- if ok?(response)
24
- SBF::Client::Configuration.user_token = parsed_response[:token]
25
- data = parsed_response.merge(user: target_class.new(parsed_response[:user]))
26
- SBF::Client::LOG.info {
27
- "SBF::Client - Facebook User Login with Identifier: #{parsed_response[:user][:identifier]}, SBF Token: #{parsed_response[:token]}"
28
- }
29
- else
30
- SBF::Client::Configuration.user_token = nil
31
- error = SBF::Client::ErrorEntity.new(parsed_response)
32
- end
33
-
34
- SBF::Client::Api::Response.new(http_code: response.code, data: data, error: error)
35
- end
36
- end
37
- end
38
- end
39
- end
@@ -1,12 +0,0 @@
1
- require 'stbaldricks/entities/user'
2
- require 'stbaldricks/endpoints/facebook/user'
3
-
4
- module SBF
5
- module Client
6
- module Facebook
7
- class User < SBF::Client::User
8
- endpoint SBF::Client::Facebook::UserEndpoint
9
- end
10
- end
11
- end
12
- end