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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d552d11f2d5946f675d91eba5b8eda4c1d465b77
4
- data.tar.gz: 341f2caea7bc3f84061a577f396d4356596fb76a
3
+ metadata.gz: adb3c65f4a0201b81be21882ca5b74efffb9dffa
4
+ data.tar.gz: 2c23bb8fb3ab00c89178186faa8b08a285ec6963
5
5
  SHA512:
6
- metadata.gz: fbfe0e983a5501a8efaf935ad1f8f3b75b63dfd3178308c0963cd1207a6a2ae2932e473c049ebdfbd0ee6172069c4196db3216339a92e3a89f274bee04b8076f
7
- data.tar.gz: ed135e98bf76675906ed09af5928c4670f3d55aed8c56c0716da269a1c5afd40a368a6a4ff8e8f6b57806b6aef0002f8df8023ceec7a7f802b3534afa8d399f9
6
+ metadata.gz: f408d483230e357bd025bd23eef55dc8b8be1361971a8d1718c3925cf1ea7cd012dcdbe3fae9306b442ab286e8b3241a3a05361cb07ce9ae9aa2d2999edc1bac
7
+ data.tar.gz: a34a724eed5093d483e188b394511db3b337e3ccffe1d0930ac79235659bd836463165dcc3e6c604480ca53bd7a18b96b71f22c672c65f0e3f1fe3e982d0340f
@@ -1,3 +1,8 @@
1
+ **Version 0.1.2** - *2017-01-15*
2
+
3
+ - Fixed strip for nil values
4
+
5
+
1
6
  **Version 0.1.1** - *2017-01-10*
2
7
 
3
8
  - Fixed request missing method
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'fuprint'
3
- s.version = '0.1.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."
@@ -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)}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuprint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fugroup Limited