mercadopago-sdk 0.3.4 → 0.3.5

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
- SHA1:
3
- metadata.gz: 2526054c3f3d6dc96d18621f4f070e20eddf55ad
4
- data.tar.gz: 9bb6445930f25e9e4ca5c3a046aec1a2ebe63ed6
2
+ SHA256:
3
+ metadata.gz: c7da46ec682afa2328d3fac50f789c51481c558ff0e9d063add5f427c93454bb
4
+ data.tar.gz: e00d97b529feb2094dac5e9de5da4f2ce23e4e2f941ce4864518dbfcd62a6008
5
5
  SHA512:
6
- metadata.gz: 7faa5c0a5a2067ad49df8153434b1d704a40741fc3c2f6527746f770c8cfaa50903444182014d3a760536164042b171766bbe378d6b5ff96e6b7182d43ca291e
7
- data.tar.gz: 350a5fae33bca384b219538160d99878f6f7a98948b9d523b680d5d67d41cb6feff94fa5d55a5082822dab7045d9e3ade7efb96026d7f1306916cd7f70a38f34
6
+ metadata.gz: 729d0e2425b90155cfa102ce7f587ebc67eb0bbfea318eae5e19f8ffaf33aeeb7be68684883b5e2e0d9fcb7c0d1d44d31b5b1eb23f0508db96f85cc5a8c447a7
7
+ data.tar.gz: 01a93754e2303b0971d326d26ef67a3eff8ea5b85eefd534d47903b7ddedf9d5376cb729724cb00b2f2b78b698c67edc7938e678e1e90d9f75e533c77e4c0bec
@@ -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
@@ -17,7 +17,7 @@ class Button
17
17
  </head>
18
18
  <body>
19
19
  <a href="' + preference['response']['init_point'] + '" name="MP-Checkout" class="orange-ar-m-sq-arall">Pay</a>
20
- <script type="text/javascript" src="http://mp-tools.mlstatic.com/buttons/render.js"></script>
20
+ <script type="text/javascript" src="//resources.mlstatic.com/mptools/render.js"></script>
21
21
  </body>
22
22
  </html>'
23
23
 
@@ -31,7 +31,7 @@ class Button
31
31
  </head>
32
32
  <body>
33
33
  <a href="' + preapprovalPayment['response']['init_point'] + '" name="MP-Checkout" class="orange-ar-m-sq-arall">Pay</a>
34
- <script type="text/javascript" src="http://mp-tools.mlstatic.com/buttons/render.js"></script>
34
+ <script type="text/javascript" src="//resources.mlstatic.com/mptools/render.js"></script>
35
35
  </body>
36
36
  </html>'
37
37
 
@@ -69,7 +69,7 @@ class MercadoPago
69
69
  end
70
70
 
71
71
  uri_prefix = @sandbox ? "/sandbox" : ""
72
- @rest_client.get(uri_prefix + "/collections/notifications/" + id + "?access_token=" + access_token)
72
+ @rest_client.get(uri_prefix + "/v1/payments/" + id + "?access_token=" + access_token)
73
73
  end
74
74
 
75
75
  def get_payment_info(id)
@@ -96,7 +96,7 @@ class MercadoPago
96
96
  end
97
97
 
98
98
  refund_status = {"status" => "refunded"}
99
- @rest_client.put("/collections/" + id + "?access_token=" + access_token, refund_status)
99
+ @rest_client.put("/v1/payments/" + id + "?access_token=" + access_token, refund_status)
100
100
  end
101
101
 
102
102
  # Cancel pending payment
@@ -108,7 +108,7 @@ class MercadoPago
108
108
  end
109
109
 
110
110
  cancel_status = {"status" => "cancelled"}
111
- @rest_client.put("/collections/" + id + "?access_token=" + access_token, cancel_status)
111
+ @rest_client.put("/v1/payments/" + id + "?access_token=" + access_token, cancel_status)
112
112
  end
113
113
 
114
114
  # Cancel preapproval payment
@@ -137,7 +137,7 @@ class MercadoPago
137
137
  filters = build_query(filters)
138
138
 
139
139
  uri_prefix = @sandbox ? "/sandbox" : ""
140
- @rest_client.get(uri_prefix + "/collections/search?" + filters + "&access_token=" + access_token)
140
+ @rest_client.get(uri_prefix + "/v1/payments/search?" + filters + "&access_token=" + access_token)
141
141
  end
142
142
 
143
143
  # Create a checkout preference
@@ -1 +1 @@
1
- MERCADO_PAGO_VERSION = '0.3.4' unless defined?(MERCADO_PAGO_VERSION)
1
+ MERCADO_PAGO_VERSION = '0.3.5' unless defined?(MERCADO_PAGO_VERSION)
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'rake'
4
+ gem 'test-unit'
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mercadopago-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - maticompiano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-24 00:00:00.000000000 Z
11
+ date: 2018-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pry
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: MercadoPago Ruby SDK
@@ -59,7 +59,8 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - .gitignore
62
+ - ".gitignore"
63
+ - ".travis.yml"
63
64
  - Gemfile
64
65
  - Gemfile.lock
65
66
  - README.md
@@ -79,6 +80,7 @@ files:
79
80
  - mercadopago-sdk-0.3.3.gem
80
81
  - mercadopago.gemspec
81
82
  - tests/tests.rb
83
+ - travis_Gemfile
82
84
  homepage: http://github.com/mercadopago/sdk-ruby
83
85
  licenses: []
84
86
  metadata: {}
@@ -88,17 +90,17 @@ require_paths:
88
90
  - lib
89
91
  required_ruby_version: !ruby/object:Gem::Requirement
90
92
  requirements:
91
- - - '>='
93
+ - - ">="
92
94
  - !ruby/object:Gem::Version
93
95
  version: '0'
94
96
  required_rubygems_version: !ruby/object:Gem::Requirement
95
97
  requirements:
96
- - - '>='
98
+ - - ">="
97
99
  - !ruby/object:Gem::Version
98
100
  version: '0'
99
101
  requirements: []
100
102
  rubyforge_project:
101
- rubygems_version: 2.0.14
103
+ rubygems_version: 2.7.7
102
104
  signing_key:
103
105
  specification_version: 4
104
106
  summary: MercadoPago Ruby SDK