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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 53d9821ed7da14bcf0d5434176d3be0c08d98e61
4
- data.tar.gz: 227a8cc8c13392d0e1af884bae03ac094da4c57e
3
+ metadata.gz: 5daf7bb40b527fbf28809d256c7bfc573065411e
4
+ data.tar.gz: 2c1c44ea0b527cb544606fa85133b75494f5ab5d
5
5
  SHA512:
6
- metadata.gz: 8ecd3d8716c0aa1dac95d9ca4de1473d14e9aec8b62d5d34283782923447af25e259a07f5a44afeb5b381dad9acd2c4aafeb4bf63bdc15e6933aed903c087c2f
7
- data.tar.gz: 17bcfcd76116caea037bd97cd364a9e07d3e61cdf0480b5165d3923c07bfd9cf97200a04becb01fbfd8ff467e40ed67b2d95eff97f762352dbba5c06b389b9cb
6
+ metadata.gz: b4f901ee85986464718432b62a1a48f5a274f0d8dfaa7823354251e064f77ae26595b4f23785d0dc325ea7e29bb757cb03910e9f231cb2cfa226270a0c772401
7
+ data.tar.gz: 8e6f7e5bb4b598d045d70dfca6cdc21380a768d0c04bea05fe6f0d20fb0ee56cbe79e707c55a9c8281ff43fd013d5bf0be44c46583de45214aeaa944ab7a721e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## Production Toolkit 0.1.6 ##
2
+
3
+ * Fix lograge railtie
4
+
1
5
  ## Production Toolkit 0.1.5 ##
2
6
 
3
7
  * Fix require in 0.1.4
@@ -1,20 +1,16 @@
1
- if defined?(Rails)
2
- if Rails.env.production?
3
- require 'lograge'
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
- # We want JSON
8
- config.lograge.formatter = Lograge::Formatters::Json.new
5
+ # Disable sprockets asset logging
6
+ config.assets.logger = false
9
7
 
10
- # Optionally add params hash, and timestamp
11
- config.lograge.custom_options = lambda do |event|
12
- params = event.payload[:params].reject do |k|
13
- ['controller', 'action'].include? k
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
@@ -0,0 +1,6 @@
1
+ require 'lograge'
2
+ class Railtie < Rails::Railtie
3
+ config.before_initialize do
4
+ require 'production_toolkit/initializers/lograge'
5
+ end
6
+ end
@@ -1,3 +1,3 @@
1
1
  module ProductionToolkit
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
@@ -6,7 +6,7 @@ TOOL_DEFAULTS = {
6
6
  log_files: 'le',
7
7
  performance_monitor: 'newrelic_rpm',
8
8
  server: 'unicorn',
9
- log_format: 'lograge'
9
+ log_format: 'production_toolkit/lograge'
10
10
  }
11
11
 
12
12
  TOOL_DEFAULTS.each_pair do |tool_name, default|
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.5
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: 2016-06-08 00:00:00.000000000 Z
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.4.8
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.