fuprint 0.1.0 → 0.1.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 +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: d552d11f2d5946f675d91eba5b8eda4c1d465b77
|
4
|
+
data.tar.gz: 341f2caea7bc3f84061a577f396d4356596fb76a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbfe0e983a5501a8efaf935ad1f8f3b75b63dfd3178308c0963cd1207a6a2ae2932e473c049ebdfbd0ee6172069c4196db3216339a92e3a89f274bee04b8076f
|
7
|
+
data.tar.gz: ed135e98bf76675906ed09af5928c4670f3d55aed8c56c0716da269a1c5afd40a368a6a4ff8e8f6b57806b6aef0002f8df8023ceec7a7f802b3534afa8d399f9
|
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.1'
|
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|
|
21
|
+
r.params.each{|k, v| r.params[k] = v.strip} if Fuprint.strip
|
22
22
|
|
23
23
|
begin
|
24
24
|
puts "\n@ #{o(r.request_method.upcase)} #{o(r.fullpath)}"
|