railman 0.6.18 → 0.6.19

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: 426f6d031b6aeeb64d66d29fc63e2332ed025345
4
- data.tar.gz: 3cd39df69eff93a33177c6f33a0d537f8b934436
3
+ metadata.gz: dd0713569d275dfb69b453e175e8eb653a64a6b4
4
+ data.tar.gz: 85836f592cadb4d51177a9d48ef45bd5a04efe8e
5
5
  SHA512:
6
- metadata.gz: 92e729ab09ef8f00e3eddbe14f61b2682a0dd2ca4672b68186f3a30c74c42e190349292c1b00c0e7ca6173e43e45ebeb2b566de79b800e44aa5fe022ddf395f5
7
- data.tar.gz: dfe37701da66c350f1b166c9c40ddb313939e569524ca57aab960fba806f779e9a6b03b5c89d5f453899c5709d552aff88248bf5f4296e4b10d2f888c4e54f91
6
+ metadata.gz: 488c7c007574422f61933874e044b3b11d5de2eb8d7cb81b1896bfabe7200156d87f7545a0ca462a122ba4fee5743334b53fac6c088f0811cb57e1c988f312f1
7
+ data.tar.gz: c7f1c57781447f2bf762a8e0044690f189a5d995bc8c8b89edd15823eddc6a65906df7e30b52c0c42535f280c3de31a6750886555ba36b95329096b571520910
@@ -1,3 +1,3 @@
1
1
  module Railman
2
- VERSION = '0.6.18'
2
+ VERSION = '0.6.19'
3
3
  end
@@ -25,6 +25,8 @@ gem 'railman-deployment', '~> 0.2' # capistrano deployment
25
25
 
26
26
  gem 'exception_notification', '4.1.2' # exception notification per email
27
27
 
28
+ gem 'lograge', '~> 0.4.1' # one-line-per-request log messages
29
+
28
30
  group :development do
29
31
  gem 'annotate', '~> 2.7.1' # add comments to models with db column information
30
32
  gem 'better_errors' # better error pages in development
@@ -0,0 +1 @@
1
+ # Gemfile.local includes application-specific gems
@@ -1,5 +1,5 @@
1
- # Logger Formatter mit Timestamp und in Farbe
2
- # übernommen von hier: https://cbpowell.wordpress.com/2013/08/09/beautiful-logging-for-ruby-on-rails-4
1
+ # Logger formatter with timestamp and color
2
+ # source: https://cbpowell.wordpress.com/2013/08/09/beautiful-logging-for-ruby-on-rails-4
3
3
  #
4
4
 
5
5
  class ActiveSupport::Logger::SimpleFormatter
@@ -12,3 +12,12 @@ class ActiveSupport::Logger::SimpleFormatter
12
12
  "\033[0;37m#{formatted_time}\033[0m [\033[#{color}m#{formatted_severity}\033[0m] #{msg.strip} (pid:#{$$})\n"
13
13
  end
14
14
  end
15
+
16
+ # Use lograge to log single line per request
17
+ Rails.application.config.lograge.enabled = true
18
+ Rails.application.config.lograge.custom_options = lambda do |event|
19
+ exceptions = %w(controller action format id)
20
+ {
21
+ params: event.payload[:params].except(*exceptions)
22
+ }
23
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.18
4
+ version: 0.6.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Jancev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-25 00:00:00.000000000 Z
11
+ date: 2016-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -174,6 +174,7 @@ files:
174
174
  - templates/rails_app/Capfile
175
175
  - templates/rails_app/Eyefile.tt
176
176
  - templates/rails_app/Gemfile
177
+ - templates/rails_app/Gemfile.local
177
178
  - templates/rails_app/README.md
178
179
  - templates/rails_app/Rakefile
179
180
  - templates/rails_app/app/assets/images/.keep