mercadopago-sdk 0.3.2 → 0.3.3

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
  SHA1:
3
- metadata.gz: 26a3194a03150cc3dc5867a925cac620d721ac1b
4
- data.tar.gz: ac9e1dc2864f2a23b3d25435cf343df26019e5cc
3
+ metadata.gz: f8b0e01fd2d255d0020dae3763c4767452e59edb
4
+ data.tar.gz: 7b265e3ef96f56aefd662c82315f909f247c2c5c
5
5
  SHA512:
6
- metadata.gz: 1a619c90f54d7615f8584854164fabd8c85233ab46cc081cf4a08ed0bdaff00333dc65b2c6a91f2dbf54e9c2c9685061a765d535953246af68013cd7ba630bf4
7
- data.tar.gz: 767b40d98de941cf09115cb386553549e2892a7ade47fb0929bf84e9a35d9bf992ae7e3cda4348c3572d0adec451fb47d22acddeb7bc68d9f60a139f3519a7c9
6
+ metadata.gz: 514be24d9e881a95b8663fab6e9dc8314029a327a67ec0b6116ea25ebbf370d14ebf6b0fcb76669b96ee7a2e236debf3575e25c15cdfbcef0e41182541784727
7
+ data.tar.gz: 58368766bdfd935d7739a0341be2545e5f5c4ddc750573eaacd6954b5b86ea224d8fe7e0544a86cfdba08fb30152da4028bc61ed53edb30c4c3971bc68291480
data/README.md CHANGED
@@ -7,7 +7,9 @@
7
7
  <a name="usage"></a>
8
8
  ## Usage:
9
9
 
10
- 1. Copy lib/mercadopago.rb to your project desired folder.
10
+ ```gem install mercadopago-sdk```
11
+
12
+ Then, instantiate the SDK...
11
13
 
12
14
  ### ...with your credentials:
13
15
 
@@ -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
@@ -1 +1 @@
1
- MERCADO_PAGO_VERSION = '0.3.2' unless defined?(MERCADO_PAGO_VERSION)
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.2
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-02-24 00:00:00.000000000 Z
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