Skip to content

Commit

Permalink
Merge pull request #55 from mercadopago/fix/dependencies
Browse files Browse the repository at this point in the history
Fix dependencies in Gemfile
  • Loading branch information
Nicholas Pedroso authored Apr 28, 2021
2 parents 32b1f1a + e94a2bd commit 40c307a
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.2
2.3.0
11 changes: 7 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

source 'https://rubygems.org'

gem 'minitest'
gem 'rake'
gem 'rest-client'
gem 'rubocop', require: false
group :development, :test do
gem 'rake'
gem 'minitest'
gem 'rubocop', require: false
end

gemspec
39 changes: 25 additions & 14 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,54 +1,65 @@
PATH
remote: .
specs:
mercadopago-sdk (2.0.2)
json (~> 2.5)
rest-client (~> 2.1)

GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
coderay (1.1.3)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
http-accept (1.7.0)
http-cookie (1.0.3)
domain_name (~> 0.5)
jaro_winkler (1.5.4)
json (2.5.1)
method_source (1.0.0)
mime-types (3.3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2021.0225)
minitest (5.14.4)
netrc (0.11.0)
parallel (1.20.1)
parser (3.0.0.0)
parallel (1.19.2)
parser (3.0.1.0)
ast (~> 2.4.1)
pry (0.14.1)
coderay (~> 1.1)
method_source (~> 1.0)
rainbow (3.0.0)
rake (13.0.3)
regexp_parser (2.1.1)
rest-client (2.1.0)
http-accept (>= 1.7.0, < 2.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
rexml (3.2.4)
rubocop (1.11.0)
rexml (3.2.5)
rubocop (0.81.0)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
parser (>= 3.0.0.0)
parser (>= 2.7.0.1)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml
rubocop-ast (>= 1.2.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.4.1)
parser (>= 2.7.1.5)
unicode-display_width (>= 1.4.0, < 2.0)
ruby-progressbar (1.11.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.7)
unicode-display_width (2.0.0)
unicode-display_width (1.7.0)

PLATFORMS
ruby

DEPENDENCIES
mercadopago-sdk!
minitest
pry (~> 0.14)
rake
rest-client
rubocop

BUNDLED WITH
2.1.4
1.17.0
2 changes: 1 addition & 1 deletion lib/mercadopago/config/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

module Mercadopago
class Config
@@VERSION = '2.0.1'
@@VERSION = '2.0.2'
@@USER_AGENT = "MercadoPago Ruby SDK v#{@@VERSION}"
@@PRODUCT_ID = 'bc32a7vtrpp001u8nhjg'
@@TRACKING_ID = "plataform: ?,type:SDK#{@@VERSION},so;"
Expand Down
10 changes: 5 additions & 5 deletions mercadopago.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |gem|
gem.name = 'mercadopago-sdk'
gem.version = '2.0.1'
gem.version = '2.0.2'
gem.required_ruby_version = '>= 2.3.0'
gem.author = 'Mercado Pago'
gem.description = 'Mercado Pago Ruby SDK'
Expand All @@ -14,8 +14,8 @@ Gem::Specification.new do |gem|
gem.test_files = gem.files.grep(%r{^(tests)/})
gem.require_paths = ['lib']

gem.add_dependency 'json'

gem.add_development_dependency 'pry'
gem.add_development_dependency 'rake'
gem.add_dependency 'json', '~>2.5'
gem.add_dependency 'rest-client', '~>2.1'
gem.add_development_dependency 'pry', '~>0.14'
gem.add_development_dependency 'rake', '~>13.0'
end
2 changes: 1 addition & 1 deletion tests/test_card.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_all
sleep(1)

card_token_object = {
card_number: '4235647728025682',
card_number: '5031433215406351',
expiration_year: 2025,
expiration_month: 11,
security_code: '123',
Expand Down
6 changes: 3 additions & 3 deletions tests/test_card_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

class CardToken < Minitest::Test
def test_method_get_id
sdk = Mercadopago::SDK.new(access_token = 'APP_USR-558881221729581-091712-44fdc612e60e3e638775d8b4003edd51-471763966')
sdk = Mercadopago::SDK.new('APP_USR-558881221729581-091712-44fdc612e60e3e638775d8b4003edd51-471763966')
card_token_object = {
card_number: '4235647728025682',
card_number: '5031433215406351',
expiration_year: 2025,
expiration_month: 11,
security_code: '123',
Expand All @@ -25,7 +25,7 @@ def test_method_get_id
def test_method_post
sdk = Mercadopago::SDK.new('APP_USR-558881221729581-091712-44fdc612e60e3e638775d8b4003edd51-471763966')
card_token_object = {
card_number: '4235647728025682',
card_number: '5031433215406351',
expiration_year: 2025,
expiration_month: 11,
security_code: '123',
Expand Down
4 changes: 2 additions & 2 deletions tests/test_payment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def test_method_get_id
def test_method_post
sdk = Mercadopago::SDK.new('APP_USR-558881221729581-091712-44fdc612e60e3e638775d8b4003edd51-471763966')
card_token_object = {
card_number: '4235647728025682',
card_number: '5031433215406351',
expiration_year: 2025,
expiration_month: 11,
security_code: '123',
Expand All @@ -38,7 +38,7 @@ def test_method_post
installments: 1,
transaction_amount: 58.80,
description: 'Point Mini a maquininha que dá o dinheiro de suas vendas na hora',
payment_method_id: 'visa',
payment_method_id: 'master',
payer: {
email: '[email protected]',
identification: {
Expand Down
6 changes: 3 additions & 3 deletions tests/test_refund.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_method_list
def test_method_post
sdk = Mercadopago::SDK.new('APP_USR-558881221729581-091712-44fdc612e60e3e638775d8b4003edd51-471763966')
card_token_object = {
card_number: '4235647728025682',
card_number: '5031433215406351',
expiration_year: 2025,
expiration_month: 11,
security_code: '123',
Expand All @@ -29,9 +29,9 @@ def test_method_post
payment_object = {
token: result_card_token[:response]['id'],
installments: 1,
transaction_amount: 58.80,
transaction_amount: 10,
description: 'Point Mini a maquininha que dá o dinheiro de suas vendas na hora',
payment_method_id: 'visa',
payment_method_id: 'master',
payer: {
email: '[email protected]',
identification: {
Expand Down

0 comments on commit 40c307a

Please sign in to comment.