mercadolibre 0.2.0 → 0.2.1

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
2
  SHA1:
3
- metadata.gz: 4b7ce437cd9e41bf02c9aadbd87cc023914c25db
4
- data.tar.gz: 975fd2465c6bf4b41d690259e0702b2c6332107c
3
+ metadata.gz: 31b9b39864808001cbd76c82f3bdde445f114076
4
+ data.tar.gz: cafa60713ae392f12922573a294de90bb83fc6ec
5
5
  SHA512:
6
- metadata.gz: f841454622b86c0364b026377d3008a15cd52c7232eb7e3dc36e9a6a3eed20be496fe2d946491e716b2165ae34da44703c99c26fef1097d1dc991392b349c732
7
- data.tar.gz: b5064c819dcce578511dd3e5dd5dd1180fd66fe7f3f017fffbd5decb25f341c511c98cd7f57429700b488bd161e9319b1acbdf0a0b604f86697a3be63eebe4f2
6
+ metadata.gz: f83e9fe1ea9dc4ce6ad80967c5db6326d3113ad4d6bbed785c6df6d11fe65ba641ce6ed25747affab9e76a3315ab9b33acabf369bd04b8a829ad8a51cdb60729
7
+ data.tar.gz: 8a151da24a2b7bf831e15ff4bf78dbe4edfb9ca1156f780fff3b36add4c8f280d941136282eef13fd22a682e029debefefbd7764afe46865c2cff6a7b3a2a396
data/CHANGELOG.md CHANGED
@@ -61,3 +61,7 @@
61
61
  ## v0.2.0
62
62
 
63
63
  * Added payment method detail
64
+
65
+ ## v0.2.1
66
+
67
+ * Added debug
@@ -10,6 +10,7 @@ module Mercadolibre
10
10
  @access_token = args[:access_token]
11
11
  @endpoint_url = 'https://api.mercadolibre.com'
12
12
  @auth_url = 'https://auth.mercadolibre.com.ar'
13
+ @debug = args[:debug]
13
14
  end
14
15
 
15
16
  include Mercadolibre::Core::Auth
@@ -71,11 +72,15 @@ module Mercadolibre
71
72
  end
72
73
 
73
74
  def parse_response(response)
74
- {
75
+ result = {
75
76
  headers: response.headers,
76
77
  body: (JSON.parse(response.body) rescue response.body),
77
78
  status_code: response.code
78
79
  }
80
+
81
+ p "DEBUG: #{result}" if @debug
82
+
83
+ result
79
84
  end
80
85
  end
81
86
  end
@@ -1,3 +1,3 @@
1
1
  module Mercadolibre
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mercadolibre
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-17 00:00:00.000000000 Z
11
+ date: 2014-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler