Skip to content

Commit

Permalink
Adding Ruby major version in tracking id.
Browse files Browse the repository at this point in the history
  • Loading branch information
delias-silva committed Jan 20, 2020
1 parent 8ee5a26 commit 97bb94c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
bin/
config/*yml
pkg/
*.log
*.log
*.gem
2 changes: 1 addition & 1 deletion lib/mercadopago.rb
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def exec(method, uri, data, content_type)

headers = {
'x-product-id' => PRODUCT_ID,
'x-tracking-id' => "platform:"+RUBY_VERSION+",type:SDK"+MERCADO_PAGO_VERSION+",so;",
'x-tracking-id' => "platform:"+RUBY_VERSION.split('.')[0]+"|"+RUBY_VERSION+",type:SDK"+MERCADO_PAGO_VERSION+",so;",
'User-Agent' => "MercadoPago Ruby SDK v" + MERCADO_PAGO_VERSION,
'Content-type' => content_type,
'Accept' => MIME_JSON
Expand Down
Binary file removed mercadopago-sdk-0.3.6.gem
Binary file not shown.

0 comments on commit 97bb94c

Please sign in to comment.