url_canonicalize 0.1.1 → 0.1.2
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/lib/url_canonicalize/request.rb +3 -1
- data/lib/url_canonicalize/version.rb +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: ae478dec6df48219e57fffa91d1cb8a574ea850f
|
|
4
|
+
data.tar.gz: dd5adf8fb297ae879c7e91127e6ee4da7f190cec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 295c3db3fc2b811271acc5f3644e32ddcff1754cad1b2360531015c05e7a2496f2aed022fad898b3028e27cb3390b71d2915839edb0b2b63521c54e6df2929a2
|
|
7
|
+
data.tar.gz: 9830d35e24edaff91c505af2ac95b85ef693b8f22f4b78f2f72992829d74620d953d053bc79ba936902c17d8dc8cba5d5c28cd11fc722a6fb20c4d5246a50de5
|
|
@@ -164,7 +164,9 @@ module URLCanonicalize
|
|
|
164
164
|
end
|
|
165
165
|
|
|
166
166
|
def log_response
|
|
167
|
-
|
|
167
|
+
return unless ENV['DEBUG']
|
|
168
|
+
puts "#{http_method.upcase} #{url} #{response.code} #{response.message}"
|
|
169
|
+
|
|
168
170
|
return unless ENV['DEBUG'].casecmp('headers')
|
|
169
171
|
response.each { |k, v| puts " #{k}:\t#{v}"}
|
|
170
172
|
end
|