production_toolkit 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/production_toolkit/initializers/lograge.rb +10 -14
- data/lib/production_toolkit/lograge.rb +6 -0
- data/lib/production_toolkit/version.rb +1 -1
- data/lib/production_toolkit.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5daf7bb40b527fbf28809d256c7bfc573065411e
|
4
|
+
data.tar.gz: 2c1c44ea0b527cb544606fa85133b75494f5ab5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4f901ee85986464718432b62a1a48f5a274f0d8dfaa7823354251e064f77ae26595b4f23785d0dc325ea7e29bb757cb03910e9f231cb2cfa226270a0c772401
|
7
|
+
data.tar.gz: 8e6f7e5bb4b598d045d70dfca6cdc21380a768d0c04bea05fe6f0d20fb0ee56cbe79e707c55a9c8281ff43fd013d5bf0be44c46583de45214aeaa944ab7a721e
|
data/CHANGELOG.md
CHANGED
@@ -1,20 +1,16 @@
|
|
1
|
-
if defined?(Rails)
|
2
|
-
|
3
|
-
|
4
|
-
Rails.application.class.configure do
|
5
|
-
config.lograge.enabled = true
|
1
|
+
if defined?(Rails) && Rails.env.production?
|
2
|
+
Rails.application.class.configure do
|
3
|
+
config.lograge.enabled = true
|
6
4
|
|
7
|
-
|
8
|
-
|
5
|
+
# Disable sprockets asset logging
|
6
|
+
config.assets.logger = false
|
9
7
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
end
|
15
|
-
|
16
|
-
{params: params}
|
8
|
+
# Optionally add params hash, and timestamp
|
9
|
+
config.lograge.custom_options = lambda do |event|
|
10
|
+
params = event.payload[:params].reject do |k|
|
11
|
+
['controller', 'action'].include? k
|
17
12
|
end
|
13
|
+
{ params: params }
|
18
14
|
end
|
19
15
|
end
|
20
16
|
end
|
data/lib/production_toolkit.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: production_toolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Noack
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rollbar
|
@@ -236,6 +236,7 @@ files:
|
|
236
236
|
- lib/production_toolkit/initializers/logging.rb
|
237
237
|
- lib/production_toolkit/initializers/lograge.rb
|
238
238
|
- lib/production_toolkit/initializers/rollbar.rb
|
239
|
+
- lib/production_toolkit/lograge.rb
|
239
240
|
- lib/production_toolkit/railtie.rb
|
240
241
|
- lib/production_toolkit/rollbar_configurator.rb
|
241
242
|
- lib/production_toolkit/version.rb
|
@@ -260,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
260
261
|
version: '0'
|
261
262
|
requirements: []
|
262
263
|
rubyforge_project:
|
263
|
-
rubygems_version: 2.
|
264
|
+
rubygems_version: 2.5.1
|
264
265
|
signing_key:
|
265
266
|
specification_version: 4
|
266
267
|
summary: Integrate production gems for high quality projects.
|