fuprint 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/fuprint.gemspec +1 -1
- data/lib/fuprint/request.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: adb3c65f4a0201b81be21882ca5b74efffb9dffa
|
4
|
+
data.tar.gz: 2c23bb8fb3ab00c89178186faa8b08a285ec6963
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f408d483230e357bd025bd23eef55dc8b8be1361971a8d1718c3925cf1ea7cd012dcdbe3fae9306b442ab286e8b3241a3a05361cb07ce9ae9aa2d2999edc1bac
|
7
|
+
data.tar.gz: a34a724eed5093d483e188b394511db3b337e3ccffe1d0930ac79235659bd836463165dcc3e6c604480ca53bd7a18b96b71f22c672c65f0e3f1fe3e982d0340f
|
data/CHANGELOG.md
CHANGED
data/fuprint.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'fuprint'
|
3
|
-
s.version = '0.1.
|
3
|
+
s.version = '0.1.2'
|
4
4
|
s.date = '2017-01-05'
|
5
5
|
s.summary = "Fuprint Rack request printer middleware"
|
6
6
|
s.description = "Rack middleware that prints information about your request to console in development."
|
data/lib/fuprint/request.rb
CHANGED
@@ -18,7 +18,7 @@ module Fuprint
|
|
18
18
|
r.params.delete_if{|k, v| %w[splat captures].include?(k)} unless Fuprint.splat
|
19
19
|
|
20
20
|
# Strip all params if Fuprint.strip = true (default)
|
21
|
-
r.params.each{|k, v| r.params[k] = v.strip} if Fuprint.strip
|
21
|
+
r.params.each{|k, v| r.params[k] = (v.is_a?(String) ? v.strip : v)} if Fuprint.strip
|
22
22
|
|
23
23
|
begin
|
24
24
|
puts "\n@ #{o(r.request_method.upcase)} #{o(r.fullpath)}"
|