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 +4 -4
- data/CHANGELOG.md +5 -0
- data/fuprint.gemspec +2 -2
- data/lib/fuprint/request.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f63a8165b57f2355285a53ce22bb8e72ee3a7337
|
4
|
+
data.tar.gz: 93c1f69dc52f32481c6833cb4df6f6b50bab6ddf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59179e70fc7eff668078ba7c361242893cafc29112c193afa0f47fc49fdac8d9ed7de391bfc37ffe2e3b95aac9a5163423a809e2800e2a4aae3bdc5969c52256
|
7
|
+
data.tar.gz: c3e499ccc1a7c017e489b9cf1c12c47ff74248cbfbcf70ba01ac1850037cb88f78dd93ffc57401ec43ccba98c3c783945eaf491c5ec119192bc0558d3e266a15
|
data/CHANGELOG.md
CHANGED
data/fuprint.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'fuprint'
|
3
|
-
s.version = '0.1.
|
4
|
-
s.date = '2017-01-
|
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"]
|
data/lib/fuprint/request.rb
CHANGED
@@ -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
|
12
|
-
if Fuprint.mode
|
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.
|
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-
|
11
|
+
date: 2017-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|