mercado_pago_rails 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/config/initializers/http.rb +12 -0
- data/lib/mercado_pago_rails/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5be4b18cabbb5e5c59d9280fb862afaf6647191
|
4
|
+
data.tar.gz: 554bc7b270d427c686c9e8d915fb2a37d6d7103d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea20a564cbbbe728fdc1d705c4a8f58d6e2417b06183d9ae7268abcba84143a80e62e9585b80c5ed2f9635d581c3b61c72acf2b1e362a72cd07fcf4a49d639da
|
7
|
+
data.tar.gz: 6144e7d7e4a877e581b54f0360edd2d9f3bad9b4c8c61383d4ac0ef9f9483af213ed90548acacd80157765e3d927773adf5b38363513ec227b8b97fd10ef9c73
|
data/README.md
CHANGED
@@ -25,7 +25,7 @@ gem 'mercado_pago_rails'
|
|
25
25
|
## Usage
|
26
26
|
|
27
27
|
### MercadoPagoModule
|
28
|
-
|
28
|
+
The module **MercadoPagoModule** adds the method generate_purchase that receives two parameters:
|
29
29
|
* An object that holds the information of the purchase to be made
|
30
30
|
* A hash containing three urls: success_url, failure_url and pending_url
|
31
31
|
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'net/http/generic_request'
|
2
|
+
|
3
|
+
module Net
|
4
|
+
class HTTP
|
5
|
+
|
6
|
+
def send_request(name, path, data = nil, header = nil)
|
7
|
+
@ssl_version = :SSLv3
|
8
|
+
r = HTTPGenericRequest.new(name,(data ? true : false),true,path,header)
|
9
|
+
request r, data
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mercado_pago_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matias De Santi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -123,6 +123,7 @@ files:
|
|
123
123
|
- LICENSE
|
124
124
|
- README.md
|
125
125
|
- Rakefile
|
126
|
+
- config/initializers/http.rb
|
126
127
|
- lib/mercado_pago_rails.rb
|
127
128
|
- lib/mercado_pago_rails/mercado_pago_checkout.rb
|
128
129
|
- lib/mercado_pago_rails/mercado_pago_rails_helper.rb
|