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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/mercadolibre/api.rb +6 -1
- data/lib/mercadolibre/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31b9b39864808001cbd76c82f3bdde445f114076
|
4
|
+
data.tar.gz: cafa60713ae392f12922573a294de90bb83fc6ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f83e9fe1ea9dc4ce6ad80967c5db6326d3113ad4d6bbed785c6df6d11fe65ba641ce6ed25747affab9e76a3315ab9b33acabf369bd04b8a829ad8a51cdb60729
|
7
|
+
data.tar.gz: 8a151da24a2b7bf831e15ff4bf78dbe4edfb9ca1156f780fff3b36add4c8f280d941136282eef13fd22a682e029debefefbd7764afe46865c2cff6a7b3a2a396
|
data/CHANGELOG.md
CHANGED
data/lib/mercadolibre/api.rb
CHANGED
@@ -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
|
data/lib/mercadolibre/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|