paul_bunyan 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/paul_bunyan/railtie.rb +1 -1
- data/lib/paul_bunyan/version.rb +1 -1
- data/spec/dummy/config/environments/test.rb +9 -1
- 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: 89333ed7f827d0e70565f0dc66d41e2e4b484d67
|
4
|
+
data.tar.gz: cc170fc31eedb9a87fe0d45554dce618fc17e09a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9f164490867d6f21bcb8ec03a35aa589fcf49899c67ab4759b4b3d6d6c83049524d798f107fc8fb42731f5dcfaeedb8d6893e757974d8f763c359f49b4474c5
|
7
|
+
data.tar.gz: 57e98f587b4d7ad9132ffc939fe536d10b6003502e3285b0feb59251b6f81325a8b6b344254428cacf219f6e4c2d574c3b7bc0bffda07e18c06c54787c431d81
|
data/README.md
CHANGED
@@ -62,3 +62,7 @@ the request host to the metadata in the examples directory. There are a few
|
|
62
62
|
keys that are used internally that will be overwritten when added to user
|
63
63
|
supplied metadata, this list can be found in the `#call` method of
|
64
64
|
`PaulBunyan::JSONFormatter`.
|
65
|
+
|
66
|
+
### Seeing what your server logs will look like in the console
|
67
|
+
To do this set `PB_DISABLE_CONSOLE_OVERRIDE` in your environment:
|
68
|
+
`PB_DISABLE_CONSOLE_OVERRIDE=1 bundle exec rails c`
|
data/lib/paul_bunyan/railtie.rb
CHANGED
@@ -42,7 +42,7 @@ module PaulBunyan
|
|
42
42
|
end
|
43
43
|
|
44
44
|
console do
|
45
|
-
PaulBunyan.logger.formatter = TextFormatter.new(include_metadata: false)
|
45
|
+
PaulBunyan.logger.formatter = TextFormatter.new(include_metadata: false) unless ENV['PB_DISABLE_CONSOLE_OVERRIDE']
|
46
46
|
end
|
47
47
|
|
48
48
|
def conditionally_unsubscribe(listener)
|
data/lib/paul_bunyan/version.rb
CHANGED
@@ -18,7 +18,6 @@ Dummy::Application.configure do
|
|
18
18
|
config.static_cache_control = 'public, max-age=3600'
|
19
19
|
end
|
20
20
|
|
21
|
-
|
22
21
|
# Show full error reports and disable caching.
|
23
22
|
config.consider_all_requests_local = true
|
24
23
|
config.action_controller.perform_caching = false
|
@@ -42,4 +41,13 @@ Dummy::Application.configure do
|
|
42
41
|
|
43
42
|
# Raises error for missing translations
|
44
43
|
# config.action_view.raise_on_missing_translations = true
|
44
|
+
|
45
|
+
# Simulate default production logging configuration
|
46
|
+
if Rails.version < '5.1'
|
47
|
+
config.log_formatter = ::Logger::Formatter.new
|
48
|
+
else
|
49
|
+
logger = ActiveSupport::Logger.new(STDOUT)
|
50
|
+
logger.formatter = config.log_formatter
|
51
|
+
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
52
|
+
end
|
45
53
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paul_bunyan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Duane Johnson
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2018-02-14 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: request_store
|