mercadopago 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZWMzYWNmOWU2Y2UwNjQ1ZmQ0Yjg4OTM4MzBmNDU1MTA0ZWU4ODZmOA==
5
- data.tar.gz: !binary |-
6
- NzA0YTYyOTdlYjdkZTg4N2Y3MjZjYzU2Mjc2ZmM2MGM1NGQ4Nzg3MQ==
2
+ SHA1:
3
+ metadata.gz: acd5c1e6ec649dcb5e4efe4f0086a03e7f21a488
4
+ data.tar.gz: e768060bedd7efbe28fac6c6b36a4138274073e6
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NzFkODEwMDBlZDc1MjMzMDc3MmYzZmQ2Y2ZlZjc1MGYxYmIzZTlmMjFkZGUw
10
- YmFlYTRhZjVlMTA4NjE0NDk2Njg4OGRmNTllYmQyY2RhNmVlNDA3ODFlNzZk
11
- NmZlZTA5NjZkNDcwNzcxZmY3NjJmMGIzYTJmOWY1N2QzOGQyNjI=
12
- data.tar.gz: !binary |-
13
- NWQ4MTAzOGE1ZjJlNmQ3NzYyNDBjOGUzYTBkZTA0ZTNmZWMyZGFiNDY5ZGJm
14
- Y2ViNmViZGNlZDg1NWFjYmM1MDkwMTJlYTI1MTAzMzg0MmJjMWRkM2MzNTQw
15
- M2FlYjk5NTE4MjY1NzQyN2NhMTgzMTAxMmE4MGE1YmI2M2IxNjE=
6
+ metadata.gz: d2dbb5493bc591321c9c3d10e5ee77bee6281ff9ceb5a91a5b9ceb9336878a580630d0e98e924f15698940fe48e176ffade1e16c63737e24aee73d2d059f53dc
7
+ data.tar.gz: dc9d3f9965f752815143be6f32ee18f07e9e705aeccc43ef8b8e731b202f8047c720e1c18cb40496d555dcd05f494600a559783937285606e8552510d17e2559
@@ -11,10 +11,10 @@ module MercadoPago
11
11
  #
12
12
  # This URL is the base for all API calls.
13
13
  #
14
- MERCADOPAGO_URL = 'https://api.mercadolibre.com'
14
+ MERCADOPAGO_URL = 'https://api.mercadopago.com'
15
15
 
16
16
  #
17
- # Makes a POST request to a MercaPago API.
17
+ # Makes a POST request to a MercadoPago API.
18
18
  #
19
19
  # - path: the path of the API to be called.
20
20
  # - payload: the data to be trasmitted to the API.
@@ -26,7 +26,7 @@ module MercadoPago
26
26
  end
27
27
 
28
28
  #
29
- # Makes a GET request to a MercaPago API.
29
+ # Makes a GET request to a MercadoPago API.
30
30
  #
31
31
  # - path: the path of the API to be called, including any query string parameters.
32
32
  # - headers: the headers to be transmitted over the HTTP request.
@@ -46,7 +46,7 @@ module MercadoPago
46
46
  def self.make_request(type, path, payload = nil, headers = {})
47
47
  args = [type, MERCADOPAGO_URL, path, payload, headers].compact
48
48
 
49
- connection = Faraday.new(MERCADOPAGO_URL, ssl: { version: :SSLv3 })
49
+ connection = Faraday.new(MERCADOPAGO_URL)
50
50
 
51
51
  response = connection.send(type) do |req|
52
52
  req.url path
@@ -1,3 +1,3 @@
1
1
  module MercadoPago
2
- VERSION = "2.2.0"
2
+ VERSION = "2.2.1"
3
3
  end
@@ -23,5 +23,6 @@ Gem::Specification.new do |s|
23
23
  s.add_dependency 'json', '>= 1.4.6'
24
24
  s.add_dependency 'faraday', '>= 0.9.0'
25
25
  s.add_development_dependency 'pry'
26
- s.add_development_dependency 'debugger'
26
+ s.add_development_dependency 'byebug'
27
+ s.add_development_dependency 'test-unit'
27
28
  end
@@ -1,9 +1,9 @@
1
1
  # encoding: utf-8
2
2
 
3
- require 'minitest/autorun'
3
+ require 'test/unit'
4
4
  require 'mercadopago'
5
5
 
6
- class TestMercadoPago < MiniTest::Unit::TestCase
6
+ class TestMercadoPago < Test::Unit::TestCase
7
7
 
8
8
  #
9
9
  # Valid credentials to be used in the tests.
@@ -113,11 +113,11 @@ class TestMercadoPago < MiniTest::Unit::TestCase
113
113
 
114
114
  def test_that_client_can_search
115
115
  mp_client = MercadoPago::Client.new(CREDENTIALS[:client_id], CREDENTIALS[:client_secret])
116
- response = mp_client.search(status: :pending)
116
+ response = mp_client.search(status: :refunded)
117
117
 
118
118
  assert response.has_key?('results')
119
119
 
120
- external_reference = 'OPERATION-ID-1234'
120
+ external_reference = '55723'
121
121
  response = mp_client.search(external_reference: external_reference)
122
122
  results = response['results']
123
123
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mercadopago
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kauplus Social Commerce
@@ -9,62 +9,76 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-10 00:00:00.000000000 Z
12
+ date: 2015-03-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ! '>='
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: 1.4.6
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ! '>='
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: 1.4.6
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: faraday
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ! '>='
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: 0.9.0
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ! '>='
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: 0.9.0
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: pry
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ! '>='
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
48
  version: '0'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ! '>='
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  - !ruby/object:Gem::Dependency
57
- name: debugger
57
+ name: byebug
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ! '>='
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ! '>='
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: test-unit
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
68
82
  - !ruby/object:Gem::Version
69
83
  version: '0'
70
84
  description: This gem allows developers to use the services available in the MercadoPago
@@ -75,7 +89,7 @@ executables: []
75
89
  extensions: []
76
90
  extra_rdoc_files: []
77
91
  files:
78
- - .gitignore
92
+ - ".gitignore"
79
93
  - Gemfile
80
94
  - README.md
81
95
  - Rakefile
@@ -99,20 +113,19 @@ require_paths:
99
113
  - lib
100
114
  required_ruby_version: !ruby/object:Gem::Requirement
101
115
  requirements:
102
- - - ! '>='
116
+ - - ">="
103
117
  - !ruby/object:Gem::Version
104
118
  version: '0'
105
119
  required_rubygems_version: !ruby/object:Gem::Requirement
106
120
  requirements:
107
- - - ! '>='
121
+ - - ">="
108
122
  - !ruby/object:Gem::Version
109
123
  version: '0'
110
124
  requirements: []
111
125
  rubyforge_project: mercadopago
112
- rubygems_version: 2.4.2
126
+ rubygems_version: 2.4.5
113
127
  signing_key:
114
128
  specification_version: 4
115
129
  summary: Client for the MercadoPago API
116
130
  test_files:
117
131
  - test/test_mercado_pago.rb
118
- has_rdoc: