onelinejson 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/onelinejson.rb +2 -3
- data/lib/onelinejson/version.rb +1 -1
- metadata +4 -4
data/lib/onelinejson.rb
CHANGED
@@ -19,12 +19,12 @@ module Onelinejson
|
|
19
19
|
/.*HIDDEN.*/,
|
20
20
|
]
|
21
21
|
ELIP = "\xe2\x80\xa6"
|
22
|
-
LOG_MAX_LENGTH =
|
22
|
+
LOG_MAX_LENGTH = 1000
|
23
23
|
ENTRY_MAX_LENGTH = 128
|
24
24
|
BEFORE_HOOK = lambda do |data, payload|
|
25
25
|
request = data.select{ |k,_|
|
26
26
|
[:method, :path, :format].include?(k)
|
27
|
-
}.merge(payload
|
27
|
+
}.merge(payload.fetch(:request, {}))
|
28
28
|
response = data.select{ |k,_|
|
29
29
|
[:status, :duration, :view, :view_runtime].include?(k)
|
30
30
|
}
|
@@ -108,7 +108,6 @@ module Onelinejson
|
|
108
108
|
end
|
109
109
|
|
110
110
|
class Railtie < Rails::Railtie
|
111
|
-
puts 'FUUUU'
|
112
111
|
config.log_tags = nil
|
113
112
|
config.lograge = ActiveSupport::OrderedOptions.new
|
114
113
|
config.lograge.formatter = ::Lograge::Formatters::Json.new
|
data/lib/onelinejson/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onelinejson
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-02-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: lograge
|
@@ -60,7 +60,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
60
60
|
version: '0'
|
61
61
|
segments:
|
62
62
|
- 0
|
63
|
-
hash:
|
63
|
+
hash: 575659746443632365
|
64
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
65
|
none: false
|
66
66
|
requirements:
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
version: '0'
|
70
70
|
segments:
|
71
71
|
- 0
|
72
|
-
hash:
|
72
|
+
hash: 575659746443632365
|
73
73
|
requirements: []
|
74
74
|
rubyforge_project:
|
75
75
|
rubygems_version: 1.8.23
|