mercadopago-sdk 0.3.2 → 0.3.3
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 +4 -4
- data/README.md +3 -1
- data/lib/mercadopago.rb +2 -0
- data/lib/ssl_options_patch.rb +15 -0
- data/lib/version.rb +1 -1
- data/mercadopago-sdk-0.3.2.gem +0 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8b0e01fd2d255d0020dae3763c4767452e59edb
|
4
|
+
data.tar.gz: 7b265e3ef96f56aefd662c82315f909f247c2c5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 514be24d9e881a95b8663fab6e9dc8314029a327a67ec0b6116ea25ebbf370d14ebf6b0fcb76669b96ee7a2e236debf3575e25c15cdfbcef0e41182541784727
|
7
|
+
data.tar.gz: 58368766bdfd935d7739a0341be2545e5f5c4ddc750573eaacd6954b5b86ea224d8fe7e0544a86cfdba08fb30152da4028bc61ed53edb30c4c3971bc68291480
|
data/README.md
CHANGED
data/lib/mercadopago.rb
CHANGED
@@ -10,6 +10,7 @@ require 'uri'
|
|
10
10
|
require 'net/https'
|
11
11
|
require 'yaml'
|
12
12
|
require 'version'
|
13
|
+
require 'ssl_options_patch'
|
13
14
|
|
14
15
|
class MercadoPago
|
15
16
|
def initialize(*args)
|
@@ -297,6 +298,7 @@ class MercadoPago
|
|
297
298
|
|
298
299
|
if API_BASE_URL.scheme == "https" # enable SSL/TLS
|
299
300
|
@http.use_ssl = true
|
301
|
+
@http.ssl_options = OpenSSL::SSL::OP_NO_SSLv3 # explicitly tell OpenSSL not to use SSL3
|
300
302
|
end
|
301
303
|
|
302
304
|
@http.set_debug_output debug_logger if debug_logger
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# This is a workaround for issue #9450 in Ruby core
|
2
|
+
# https://bugs.ruby-lang.org/issues/9450
|
3
|
+
#
|
4
|
+
# Add an :ssl_options accessor to Net::HTTP, which controls the options
|
5
|
+
# attribute on the resulting SSLContext. This allows the user to customize
|
6
|
+
# behavior of SSL connections, like disabling specific protocol versions.
|
7
|
+
|
8
|
+
require 'net/http'
|
9
|
+
|
10
|
+
(Net::HTTP::SSL_IVNAMES << :@ssl_options).uniq!
|
11
|
+
(Net::HTTP::SSL_ATTRIBUTES << :options).uniq!
|
12
|
+
|
13
|
+
Net::HTTP.class_eval do
|
14
|
+
attr_accessor :ssl_options
|
15
|
+
end
|
data/lib/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
MERCADO_PAGO_VERSION = '0.3.
|
1
|
+
MERCADO_PAGO_VERSION = '0.3.3' unless defined?(MERCADO_PAGO_VERSION)
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mercadopago-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- maticompiano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -73,7 +73,9 @@ files:
|
|
73
73
|
- examples/payment-search/search-payments.rb
|
74
74
|
- examples/preapproval-payments/button.rb
|
75
75
|
- lib/mercadopago.rb
|
76
|
+
- lib/ssl_options_patch.rb
|
76
77
|
- lib/version.rb
|
78
|
+
- mercadopago-sdk-0.3.2.gem
|
77
79
|
- mercadopago.gemspec
|
78
80
|
- tests/tests.rb
|
79
81
|
homepage: http://github.com/mercadopago/sdk-ruby
|