mercadopago-sdk 0.3.6 → 1.1.0

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
- SHA256:
3
- metadata.gz: 75c4c95289be299bf94adefca93494cb5303885b15ef0e3ccf6dc60d560f01c8
4
- data.tar.gz: 9b6191db58ef7307b8c9c39547012335881aabf729e450a2e6038f2640f54be8
2
+ SHA1:
3
+ metadata.gz: 89495678416603a35547582361f007bebb19d11d
4
+ data.tar.gz: 4ff15007633d63649cd97d86dbd6e76e2b6411fd
5
5
  SHA512:
6
- metadata.gz: 8c54401e025e3d53601b263dd9dfe33329cc550f6952ec93bfa588f9c703096f3854ae44d3bbfe2a9f456f3507012304ca921e53e62ddb78caf23ad662288a47
7
- data.tar.gz: 8ca641e3cc48a6d9b2cbc100959eb62a4952782e191b5d31d854c0b7fc267d33dcd47d5d916f625d35fd043e8668da2b9def46930ff1a46d611f6b0931258b64
6
+ metadata.gz: 3ba1dca8bf70df2e3da0eef2436e8c3f14572541fd4f6b9e9cde4f533fe2f6864f80512cfba081eb4813b58a0791a596f5832fdfac5102b65381e71571d2a222
7
+ data.tar.gz: 1f04c650559dd8398b22d19272956b69af5fbd6b1b297eeca8d8acfa6a7b59269e6c796eed3c2d3f2192c564d197d4450560d166fdab4e065de124b590a557a8
data/.gitignore CHANGED
@@ -2,4 +2,5 @@
2
2
  bin/
3
3
  config/*yml
4
4
  pkg/
5
- *.log
5
+ *.log
6
+ *.gem
@@ -0,0 +1,14 @@
1
+ sudo: required
2
+ language: ruby
3
+ rvm:
4
+ - 1.9.3
5
+ - 2.0.0
6
+ - 2.1
7
+ - 2.2
8
+ - 2.3.0
9
+ - jruby-19mode
10
+ - jruby-9.0.5.0
11
+ gemfile:
12
+ travis_Gemfile
13
+ script:
14
+ bundle exec rake test ./tests/tests.rb
@@ -69,7 +69,9 @@ class MercadoPago
69
69
  end
70
70
 
71
71
  uri_prefix = @sandbox ? "/sandbox" : ""
72
- @rest_client.get("/v1/payments/" + id + "?access_token=" + access_token)
72
+
73
+ @rest_client.get(uri_prefix + "/v1/payments/" + id + "?access_token=" + access_token)
74
+
73
75
  end
74
76
 
75
77
  def get_payment_info(id)
@@ -95,8 +97,10 @@ class MercadoPago
95
97
  return e.message
96
98
  end
97
99
 
100
+
98
101
  refund_status = {}
99
102
  @rest_client.post("/v1/payments/" + id + "/refunds?access_token=" + access_token, refund_status)
103
+
100
104
  end
101
105
 
102
106
  # Cancel pending payment
@@ -137,7 +141,9 @@ class MercadoPago
137
141
  filters = build_query(filters)
138
142
 
139
143
  uri_prefix = @sandbox ? "/sandbox" : ""
140
- @rest_client.get("/v1/payments/search?" + filters + "&access_token=" + access_token)
144
+
145
+ @rest_client.get(uri_prefix + "/v1/payments/search?" + filters + "&access_token=" + access_token)
146
+
141
147
  end
142
148
 
143
149
  # Create a checkout preference
@@ -317,6 +323,8 @@ class MercadoPago
317
323
  end
318
324
 
319
325
  headers = {
326
+ 'x-product-id' => PRODUCT_ID,
327
+ 'x-tracking-id' => "platform:"+RUBY_VERSION.split('.')[0]+"|"+RUBY_VERSION+",type:SDK"+MERCADO_PAGO_VERSION+",so;",
320
328
  'User-Agent' => "MercadoPago Ruby SDK v" + MERCADO_PAGO_VERSION,
321
329
  'Content-type' => content_type,
322
330
  'Accept' => MIME_JSON
@@ -1 +1,2 @@
1
- MERCADO_PAGO_VERSION = '0.3.6' unless defined?(MERCADO_PAGO_VERSION)
1
+ MERCADO_PAGO_VERSION = '1.1.0' unless defined?(MERCADO_PAGO_VERSION)
2
+ PRODUCT_ID = 'bc32a7vtrpp001u8nhjg'
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'rake'
4
+ gem 'test-unit'
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.6
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - maticompiano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-22 00:00:00.000000000 Z
11
+ date: 2020-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -60,6 +60,7 @@ extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
62
  - ".gitignore"
63
+ - ".travis.yml"
63
64
  - Gemfile
64
65
  - Gemfile.lock
65
66
  - README.md
@@ -75,10 +76,9 @@ files:
75
76
  - lib/mercadopago.rb
76
77
  - lib/ssl_options_patch.rb
77
78
  - lib/version.rb
78
- - mercadopago-sdk-0.3.2.gem
79
- - mercadopago-sdk-0.3.3.gem
80
79
  - mercadopago.gemspec
81
80
  - tests/tests.rb
81
+ - travis_Gemfile
82
82
  homepage: http://github.com/mercadopago/sdk-ruby
83
83
  licenses: []
84
84
  metadata: {}
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  requirements: []
100
100
  rubyforge_project:
101
- rubygems_version: 2.7.7
101
+ rubygems_version: 2.5.2.3
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: MercadoPago Ruby SDK
Binary file
Binary file