spreedly 2.0.26 → 2.0.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/spreedly/connection.rb +0 -8
- data/lib/spreedly/environment.rb +2 -1
- data/lib/spreedly/ssl_requester.rb +0 -4
- data/lib/spreedly/version.rb +1 -1
- data/test/remote/remote_gateway_options_test.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '03482c0ff755ba3e4e0792be1edfa78100b3fd662daf03d4124c5509b5dd9cda'
|
4
|
+
data.tar.gz: cecad9999bea554a379b3b3d9b0c881dd44a0c4a2926be3cec6e4caf67f56cc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 253faba99872d14b1ef94d4a03fe3be0de152665da145eac55294e4beb6a3fd827d338f8b43e6454affc7cacc7705a4703b258246a704792ca2da7cf77baa067
|
7
|
+
data.tar.gz: 71ac07a96d3e37910b7cf9c609af9ed3859f378e1a270bf6e29bf024c9e511616da4eaff45387362522290eafb1abcee66584a66abd27e3205ec863ae988c2bd
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
|
+
## [2.0.27] - 2023-03-27
|
5
|
+
### Changed
|
6
|
+
- @jknipp - Add User-Agent header to requests
|
7
|
+
- @jknipp - Remove unused options request logic
|
8
|
+
|
4
9
|
## [2.0.26] - 2023-03-24
|
5
10
|
### Changed
|
6
11
|
- @jknipp - Update the gateway options url to use `GET /v1/gateways_options.xml` instead of `OPTIONS /v1/gateways.xml`
|
data/lib/spreedly/connection.rb
CHANGED
@@ -20,8 +20,6 @@ module Spreedly
|
|
20
20
|
http.put(endpoint.request_uri, body, headers)
|
21
21
|
when :delete
|
22
22
|
http.delete(endpoint.request_uri, headers)
|
23
|
-
when :options
|
24
|
-
http.request(OptionsWithResponseBody.new(endpoint.request_uri, headers))
|
25
23
|
else
|
26
24
|
raise ArgumentError, "Unsupported request method #{method.to_s.upcase}"
|
27
25
|
end
|
@@ -45,11 +43,5 @@ module Spreedly
|
|
45
43
|
|
46
44
|
end
|
47
45
|
|
48
|
-
class OptionsWithResponseBody < Net::HTTPRequest
|
49
|
-
METHOD = 'OPTIONS'
|
50
|
-
REQUEST_HAS_BODY = false
|
51
|
-
RESPONSE_HAS_BODY = true
|
52
|
-
end
|
53
|
-
|
54
46
|
end
|
55
47
|
|
data/lib/spreedly/environment.rb
CHANGED
@@ -166,7 +166,8 @@ module Spreedly
|
|
166
166
|
def headers
|
167
167
|
{
|
168
168
|
'Authorization' => ('Basic ' + Base64.strict_encode64("#{@key}:#{@access_secret}").chomp),
|
169
|
-
'Content-Type' => 'text/xml'
|
169
|
+
'Content-Type' => 'text/xml',
|
170
|
+
'User-Agent' => "spreedly-gem/#{Spreedly::VERSION}"
|
170
171
|
}
|
171
172
|
end
|
172
173
|
|
data/lib/spreedly/version.rb
CHANGED
@@ -10,7 +10,7 @@ class RemoteGatewayOptionsTest < Test::Unit::TestCase
|
|
10
10
|
gateway_classes = @environment.gateway_options
|
11
11
|
braintree = gateway_classes.select { |each| each.name == "Braintree" }.first
|
12
12
|
assert_equal "http://www.braintreepaymentsolutions.com/", braintree.homepage
|
13
|
-
|
13
|
+
assert (%w(credit_card third_party_token apple_pay android_pay google_pay) - braintree.payment_methods).empty?
|
14
14
|
assert_equal %w(asia_pacific europe north_america), braintree.regions
|
15
15
|
assert_equal %w(orange blue), braintree.auth_modes.map { |e| e.auth_mode_type }
|
16
16
|
assert_equal %w(login password), braintree.auth_modes.first.credentials.map { |e| e.name }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spreedly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Spreedly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03
|
11
|
+
date: 2023-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|