mercadopago-sdk 2.0.1 → 2.0.2

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: bee45ea6f73bf8d6f15c8ccc1c52e8c8aaa2100d48bb412e854191fe0f839abb
4
- data.tar.gz: db1205f29dee26aa91a344a9976a22179015a586d407c2a4a9c1b9bd59a55586
2
+ SHA1:
3
+ metadata.gz: 1a028d1665b138bef922596f5d780c99111abfc7
4
+ data.tar.gz: 27102b30802beabd7e3b4fb30e4121e661c9a8be
5
5
  SHA512:
6
- metadata.gz: 1a4ce5dd066d00115c1e1d379ea4a24714039d72235bce09e5129152ad6166178bc3a3acff78fe86075e7a6e75c449dfb8b1643a50e7f1b7296928a6391338f3
7
- data.tar.gz: e7073e0605e07728d9b331092f06887ef6af1a000814c80805c9cb2208ebdc341e5b1bfd2a4aa88b0baf8cb7a4a9c314155500d119c4194346c7c6c3f74fdf12
6
+ metadata.gz: d1f97dca83f4fbafb1e4ed4052517dfd1168be5a03c3f33006f04495c4a838cd093fb4dfd750dcd9e922faeacba085cd5c273677eccd6e395445100e02c72ce3
7
+ data.tar.gz: a166429baae7c7aed15ab4fff5acc17fd3197563fd69197f592794d08535da415eb5a409daafc1cab9e9747edc76584c5722aca481e828cb6dc8519395d789aa
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.2
1
+ 2.3.0
data/CODE_OF_CONDUCT.md CHANGED
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
55
55
  ## Enforcement
56
56
 
57
57
  Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at danilo.elias@mercadolivre.com. All
58
+ reported by contacting the project team at [developers.mercadopago.com](https://www.mercadopago.com/developers). All
59
59
  complaints will be reviewed and investigated and will result in a response that
60
60
  is deemed necessary and appropriate to the circumstances. The project team is
61
61
  obligated to maintain confidentiality with regard to the reporter of an incident.
data/Gemfile CHANGED
@@ -2,7 +2,10 @@
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- gem 'minitest'
6
- gem 'rake'
7
- gem 'rest-client'
8
- gem 'rubocop', require: false
5
+ group :development, :test do
6
+ gem 'rake'
7
+ gem 'minitest'
8
+ gem 'rubocop', require: false
9
+ end
10
+
11
+ gemspec
data/Gemfile.lock CHANGED
@@ -1,54 +1,65 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ mercadopago-sdk (2.0.2)
5
+ json (~> 2.5)
6
+ rest-client (~> 2.1)
7
+
1
8
  GEM
2
9
  remote: https://rubygems.org/
3
10
  specs:
4
11
  ast (2.4.2)
12
+ coderay (1.1.3)
5
13
  domain_name (0.5.20190701)
6
14
  unf (>= 0.0.5, < 1.0.0)
7
15
  http-accept (1.7.0)
8
16
  http-cookie (1.0.3)
9
17
  domain_name (~> 0.5)
18
+ jaro_winkler (1.5.4)
19
+ json (2.5.1)
20
+ method_source (1.0.0)
10
21
  mime-types (3.3.1)
11
22
  mime-types-data (~> 3.2015)
12
23
  mime-types-data (3.2021.0225)
13
24
  minitest (5.14.4)
14
25
  netrc (0.11.0)
15
- parallel (1.20.1)
16
- parser (3.0.0.0)
26
+ parallel (1.19.2)
27
+ parser (3.0.1.0)
17
28
  ast (~> 2.4.1)
29
+ pry (0.14.1)
30
+ coderay (~> 1.1)
31
+ method_source (~> 1.0)
18
32
  rainbow (3.0.0)
19
33
  rake (13.0.3)
20
- regexp_parser (2.1.1)
21
34
  rest-client (2.1.0)
22
35
  http-accept (>= 1.7.0, < 2.0)
23
36
  http-cookie (>= 1.0.2, < 2.0)
24
37
  mime-types (>= 1.16, < 4.0)
25
38
  netrc (~> 0.8)
26
- rexml (3.2.4)
27
- rubocop (1.11.0)
39
+ rexml (3.2.5)
40
+ rubocop (0.81.0)
41
+ jaro_winkler (~> 1.5.1)
28
42
  parallel (~> 1.10)
29
- parser (>= 3.0.0.0)
43
+ parser (>= 2.7.0.1)
30
44
  rainbow (>= 2.2.2, < 4.0)
31
- regexp_parser (>= 1.8, < 3.0)
32
45
  rexml
33
- rubocop-ast (>= 1.2.0, < 2.0)
34
46
  ruby-progressbar (~> 1.7)
35
- unicode-display_width (>= 1.4.0, < 3.0)
36
- rubocop-ast (1.4.1)
37
- parser (>= 2.7.1.5)
47
+ unicode-display_width (>= 1.4.0, < 2.0)
38
48
  ruby-progressbar (1.11.0)
39
49
  unf (0.1.4)
40
50
  unf_ext
41
51
  unf_ext (0.0.7.7)
42
- unicode-display_width (2.0.0)
52
+ unicode-display_width (1.7.0)
43
53
 
44
54
  PLATFORMS
45
55
  ruby
46
56
 
47
57
  DEPENDENCIES
58
+ mercadopago-sdk!
48
59
  minitest
60
+ pry (~> 0.14)
49
61
  rake
50
- rest-client
51
62
  rubocop
52
63
 
53
64
  BUNDLED WITH
54
- 2.1.4
65
+ 1.17.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Mercadopago
5
5
  class Config
6
- @@VERSION = '2.0.1'
6
+ @@VERSION = '2.0.2'
7
7
  @@USER_AGENT = "MercadoPago Ruby SDK v#{@@VERSION}"
8
8
  @@PRODUCT_ID = 'bc32a7vtrpp001u8nhjg'
9
9
  @@TRACKING_ID = "plataform: ?,type:SDK#{@@VERSION},so;"
data/mercadopago.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'mercadopago-sdk'
5
- gem.version = '2.0.1'
5
+ gem.version = '2.0.2'
6
6
  gem.required_ruby_version = '>= 2.3.0'
7
7
  gem.author = 'Mercado Pago'
8
8
  gem.description = 'Mercado Pago Ruby SDK'
@@ -14,8 +14,8 @@ Gem::Specification.new do |gem|
14
14
  gem.test_files = gem.files.grep(%r{^(tests)/})
15
15
  gem.require_paths = ['lib']
16
16
 
17
- gem.add_dependency 'json'
18
-
19
- gem.add_development_dependency 'pry'
20
- gem.add_development_dependency 'rake'
17
+ gem.add_dependency 'json', '~>2.5'
18
+ gem.add_dependency 'rest-client', '~>2.1'
19
+ gem.add_development_dependency 'pry', '~>0.14'
20
+ gem.add_development_dependency 'rake', '~>13.0'
21
21
  end
data/tests/test_card.rb CHANGED
@@ -34,7 +34,7 @@ class TestCard < Minitest::Test
34
34
  sleep(1)
35
35
 
36
36
  card_token_object = {
37
- card_number: '4235647728025682',
37
+ card_number: '5031433215406351',
38
38
  expiration_year: 2025,
39
39
  expiration_month: 11,
40
40
  security_code: '123',
@@ -7,9 +7,9 @@ require 'minitest/autorun'
7
7
 
8
8
  class CardToken < Minitest::Test
9
9
  def test_method_get_id
10
- sdk = Mercadopago::SDK.new(access_token = 'APP_USR-558881221729581-091712-44fdc612e60e3e638775d8b4003edd51-471763966')
10
+ sdk = Mercadopago::SDK.new('APP_USR-558881221729581-091712-44fdc612e60e3e638775d8b4003edd51-471763966')
11
11
  card_token_object = {
12
- card_number: '4235647728025682',
12
+ card_number: '5031433215406351',
13
13
  expiration_year: 2025,
14
14
  expiration_month: 11,
15
15
  security_code: '123',
@@ -25,7 +25,7 @@ class CardToken < Minitest::Test
25
25
  def test_method_post
26
26
  sdk = Mercadopago::SDK.new('APP_USR-558881221729581-091712-44fdc612e60e3e638775d8b4003edd51-471763966')
27
27
  card_token_object = {
28
- card_number: '4235647728025682',
28
+ card_number: '5031433215406351',
29
29
  expiration_year: 2025,
30
30
  expiration_month: 11,
31
31
  security_code: '123',
@@ -23,7 +23,7 @@ class TestPayment < Minitest::Test
23
23
  def test_method_post
24
24
  sdk = Mercadopago::SDK.new('APP_USR-558881221729581-091712-44fdc612e60e3e638775d8b4003edd51-471763966')
25
25
  card_token_object = {
26
- card_number: '4235647728025682',
26
+ card_number: '5031433215406351',
27
27
  expiration_year: 2025,
28
28
  expiration_month: 11,
29
29
  security_code: '123',
@@ -38,7 +38,7 @@ class TestPayment < Minitest::Test
38
38
  installments: 1,
39
39
  transaction_amount: 58.80,
40
40
  description: 'Point Mini a maquininha que dá o dinheiro de suas vendas na hora',
41
- payment_method_id: 'visa',
41
+ payment_method_id: 'master',
42
42
  payer: {
43
43
  email: 'test_user_123456@testuser.com',
44
44
  identification: {
data/tests/test_refund.rb CHANGED
@@ -16,7 +16,7 @@ class TestRefund < Minitest::Test
16
16
  def test_method_post
17
17
  sdk = Mercadopago::SDK.new('APP_USR-558881221729581-091712-44fdc612e60e3e638775d8b4003edd51-471763966')
18
18
  card_token_object = {
19
- card_number: '4235647728025682',
19
+ card_number: '5031433215406351',
20
20
  expiration_year: 2025,
21
21
  expiration_month: 11,
22
22
  security_code: '123',
@@ -29,9 +29,9 @@ class TestRefund < Minitest::Test
29
29
  payment_object = {
30
30
  token: result_card_token[:response]['id'],
31
31
  installments: 1,
32
- transaction_amount: 58.80,
32
+ transaction_amount: 10,
33
33
  description: 'Point Mini a maquininha que dá o dinheiro de suas vendas na hora',
34
- payment_method_id: 'visa',
34
+ payment_method_id: 'master',
35
35
  payer: {
36
36
  email: 'test_user_123456@testuser.com',
37
37
  identification: {
metadata CHANGED
@@ -1,57 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mercadopago-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mercado Pago
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-25 00:00:00.000000000 Z
11
+ date: 2021-04-29 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
- version: '0'
19
+ version: '2.5'
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
- version: '0'
26
+ version: '2.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rest-client
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.1'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: pry
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - ">="
45
+ - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: '0'
47
+ version: '0.14'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - ">="
52
+ - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: '0'
54
+ version: '0.14'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rake
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - ">="
59
+ - - "~>"
46
60
  - !ruby/object:Gem::Version
47
- version: '0'
61
+ version: '13.0'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - ">="
66
+ - - "~>"
53
67
  - !ruby/object:Gem::Version
54
- version: '0'
68
+ version: '13.0'
55
69
  description: Mercado Pago Ruby SDK
56
70
  email:
57
71
  executables: []
@@ -190,7 +204,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
204
  - !ruby/object:Gem::Version
191
205
  version: '0'
192
206
  requirements: []
193
- rubygems_version: 3.1.4
207
+ rubyforge_project:
208
+ rubygems_version: 2.5.1
194
209
  signing_key:
195
210
  specification_version: 4
196
211
  summary: Mercado Pago Ruby SDK