quintype 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/quintype/api.rb +3 -3
- data/quintype.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 90508bb8bef6492b77af55aedf2902053c10ff03
|
|
4
|
+
data.tar.gz: 6c799e2e9b31f21bc9081ef9ea5f4ff1347b5c3e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 03c61935f43d26fad93c9f044516c76179afc36057018bcd286ae356b247187366211a9780219edb1772b13731f3fb58c0d61fd5a4edd4318be7a1cf6147700b
|
|
7
|
+
data.tar.gz: 19e8c2df70f3e0bfb4289cd3bf71536ed22da426f08790c3f9e079806c57b99739e5cabbf62f11d86c0e5093e6f512a3376eeb1f7b16270b7bdfbbcd05628292
|
data/Gemfile.lock
CHANGED
data/lib/quintype/api.rb
CHANGED
|
@@ -37,7 +37,7 @@ class API
|
|
|
37
37
|
response.headers["Location"]
|
|
38
38
|
elsif response.status == 200 && response.headers["Content-Location"]
|
|
39
39
|
response_body = keywordize(JSON.parse(response.body))
|
|
40
|
-
|
|
40
|
+
log_info("The faraday adapter is configured to follow redirects by default. Using the Content-Location header")
|
|
41
41
|
response.headers["Content-Location"]
|
|
42
42
|
else
|
|
43
43
|
raise "Did not recieve a location header, status #{response.status}"
|
|
@@ -274,9 +274,9 @@ class API
|
|
|
274
274
|
arr.join(',') if arr.present?
|
|
275
275
|
end
|
|
276
276
|
|
|
277
|
-
def
|
|
277
|
+
def log_info(*args)
|
|
278
278
|
return unless defined?(Rails)
|
|
279
|
-
Rails.logger.
|
|
279
|
+
Rails.logger.info(*args)
|
|
280
280
|
end
|
|
281
281
|
end
|
|
282
282
|
end
|
data/quintype.gemspec
CHANGED