stbaldricks 9.3.1 → 10.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60ae63f44094ab70a745762065f6372929c891d14382f5f6ccc23c68f0ab82a9
4
- data.tar.gz: b1ecedd009d409012bc2fb6253c2299d5b09c8b677497ec1c619156e11cf5744
3
+ metadata.gz: ddc14dda441ec5fffd7c82f0b3be237d6f84e14d6b64fd1c19a4481a032a3deb
4
+ data.tar.gz: a490fd003103aee515fe0120e38df6aa3347781edacffcb01386714650ca4f7d
5
5
  SHA512:
6
- metadata.gz: fbddc57a23ec9234bd27357b307444a62a6621b07cc3f2c9f867b8e68b3c0d68e5580c166080c19d6ebe34b6bf6bdbc198790d5cdd3cdd77e8aa9188c96c3bad
7
- data.tar.gz: f3d33bb6ead17ea0765caa0970844a4df6efd112b78144f124756b552a0fe9fdcd37f7092dcb6fc1906f07a2f12552076e3b415d716a164486813f693570530a
6
+ metadata.gz: 2c500367fc8c60c71087ea9c5b8b2f6e1330d61b787e38b8c7462d9429f4f1cc707a4667ecd53070e901cb5ef24aa2f7cda4ba3ce4e76b6bdd41885777e5abd7
7
+ data.tar.gz: 0176ff360246c779546fd83dd097c68a30c65bc58062ff591a15689015505685ba7e0542e6018238324dc2e4e884eed726ccb4a3e0d319a32cd5f5b0dd768eca
@@ -12,7 +12,7 @@ module SBF
12
12
 
13
13
  class << self
14
14
  attr_writer :base_uri, :user_token, :general_token, :request_id
15
- attr_accessor :user_token, :forwarded_for
15
+ attr_accessor :user_token
16
16
  end
17
17
 
18
18
  def self.base_uri
@@ -1,19 +1,8 @@
1
1
  require 'stbaldricks/endpoints/lib/entity'
2
- require 'ipaddr'
3
2
 
4
3
  module SBF
5
4
  module Client
6
5
  class DonationEndpoint < SBF::Client::EntityEndpoint
7
- def create(entity_or_hash, with = {})
8
- unless SBF::Client::Configuration.forwarded_for
9
- SBF::Client::LOG.warn {
10
- "SBF::Client No forwarded_for configured for the client on the donation create route. \
11
- This may cause your app to be blocked from creating donations if too many errors occur."
12
- }
13
- end
14
- super
15
- end
16
-
17
6
  def external_sync(data)
18
7
  response = SBF::Client::Api::Request.post_request("#{base_uri}/external_sync", data)
19
8
 
@@ -73,7 +73,7 @@ module SBF
73
73
  end
74
74
  SBF::Client::Configuration.user_token = nil
75
75
 
76
- SBF::Client::LOG.info { "SBF::Client - Change Password for user with profile_id: #{profile_id}" }
76
+ SBF::Client::LOG.info { "SB::Client - Change Password for user with profile_id: #{profile_id}" }
77
77
  SBF::Client::Api::Response.new(http_code: response.code, data: nil, error: error)
78
78
  end
79
79
 
@@ -95,7 +95,7 @@ module SBF
95
95
  error = SBF::Client::ErrorEntity.new(parsed_response)
96
96
  end
97
97
 
98
- SBF::Client::LOG.info { "SBF::Client - Disconnecting Facebook user with profile_id: #{profile_id}" }
98
+ SBF::Client::LOG.info { "SB::Client - Disconnecting Facebook user with profile_id: #{profile_id}" }
99
99
  SBF::Client::Api::Response.new(http_code: response.code, data: nil, error: error)
100
100
  end
101
101
  end
@@ -21,7 +21,6 @@ module SBF
21
21
 
22
22
  module AccessScope
23
23
  ADMIN = 'admin'
24
- LIMITED_ADMIN = 'admin_limited'
25
24
  MEMBER = 'member'
26
25
  end
27
26
 
@@ -68,15 +68,12 @@ module SBF
68
68
 
69
69
  def self.options(auth: nil, type: :get, query: nil, body: nil)
70
70
  {}.tap do |options|
71
- options.merge!(
72
- base_uri: SBF::Client::Configuration.base_uri,
73
- headers: {}.tap do |hsh|
74
- hsh['Accept'] = 'application/json'
75
- hsh['X-Request-Id'] = SBF::Client::Configuration.request_id
76
- hsh['X-Forwarded-For'] = SBF::Client::Configuration.forwarded_for unless SBF::Client::Configuration.forwarded_for.blank?
77
- end,
78
- verify: verify_ssl_peer?
79
- )
71
+ options.merge!(base_uri: SBF::Client::Configuration.base_uri,
72
+ headers: {
73
+ 'Accept' => 'application/json',
74
+ 'X-Request-Id' => SBF::Client::Configuration.request_id
75
+ },
76
+ verify: verify_ssl_peer?)
80
77
  options[:body] = body if body
81
78
  options[:query] = query if query
82
79
  options[:headers]['Content-Type'] = 'application/json' if type == :post
@@ -1,5 +1,5 @@
1
1
  module SBF
2
2
  module Client
3
- VERSION = '9.3.1'
3
+ VERSION = '10.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: 9.3.1
4
+ version: 10.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: 2019-12-17 00:00:00.000000000 Z
11
+ date: 2019-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -538,9 +538,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
538
538
  version: '0'
539
539
  required_rubygems_version: !ruby/object:Gem::Requirement
540
540
  requirements:
541
- - - ">="
541
+ - - ">"
542
542
  - !ruby/object:Gem::Version
543
- version: '0'
543
+ version: 1.3.1
544
544
  requirements: []
545
545
  rubygems_version: 3.0.3
546
546
  signing_key: