fuprint 0.1.2 → 0.1.3

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: adb3c65f4a0201b81be21882ca5b74efffb9dffa
4
- data.tar.gz: 2c23bb8fb3ab00c89178186faa8b08a285ec6963
3
+ metadata.gz: f63a8165b57f2355285a53ce22bb8e72ee3a7337
4
+ data.tar.gz: 93c1f69dc52f32481c6833cb4df6f6b50bab6ddf
5
5
  SHA512:
6
- metadata.gz: f408d483230e357bd025bd23eef55dc8b8be1361971a8d1718c3925cf1ea7cd012dcdbe3fae9306b442ab286e8b3241a3a05361cb07ce9ae9aa2d2999edc1bac
7
- data.tar.gz: a34a724eed5093d483e188b394511db3b337e3ccffe1d0930ac79235659bd836463165dcc3e6c604480ca53bd7a18b96b71f22c672c65f0e3f1fe3e982d0340f
6
+ metadata.gz: 59179e70fc7eff668078ba7c361242893cafc29112c193afa0f47fc49fdac8d9ed7de391bfc37ffe2e3b95aac9a5163423a809e2800e2a4aae3bdc5969c52256
7
+ data.tar.gz: c3e499ccc1a7c017e489b9cf1c12c47ff74248cbfbcf70ba01ac1850037cb88f78dd93ffc57401ec43ccba98c3c783945eaf491c5ec119192bc0558d3e266a15
@@ -1,3 +1,8 @@
1
+ **Version 0.1.2** - *2017-01-17*
2
+
3
+ - Print also in test mode
4
+
5
+
1
6
  **Version 0.1.2** - *2017-01-15*
2
7
 
3
8
  - Fixed strip for nil values
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'fuprint'
3
- s.version = '0.1.2'
4
- s.date = '2017-01-05'
3
+ s.version = '0.1.3'
4
+ s.date = '2017-01-17'
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."
7
7
  s.authors = ["Fugroup Limited"]
@@ -8,8 +8,8 @@ module Fuprint
8
8
  # Receive the request and print info
9
9
  def call(env)
10
10
 
11
- # Only active in development mode
12
- if Fuprint.mode == 'development'
11
+ # Only active in development or test modes
12
+ if %w[development test].include?(Fuprint.mode)
13
13
  r = ::Rack::Request.new(env)
14
14
 
15
15
  puts env.inspect if Fuprint.debug
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuprint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fugroup Limited
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-05 00:00:00.000000000 Z
11
+ date: 2017-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack