grape-middleware-lograge 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/grape-middleware-lograge.gemspec +1 -1
- data/lib/grape/middleware/lograge.rb +0 -12
- data/lib/grape/middleware/lograge/railtie.rb +0 -2
- 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: 9cb44daecef046560a8bc6611b08ace7af7fb1a6
|
4
|
+
data.tar.gz: 6af4517298855ddc604245302abd160d9f10a961
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a3b379ba850e888d84230523134de6cc05c9c0cfca7bc7c36f76c217b2aeb4c9ba54e8a582046599a4fac892ee8accbd29ae888a5901236249e25609814ea78
|
7
|
+
data.tar.gz: 640a1c11a3216b622982e2a7e14bf73ef0ba70fac635ef6c40d579cdc6d4ff29bf9be0db3d8f7e688cbc982e92fedce0ef5dd46517fcd6c4b3fa92c2795fb638
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'grape-middleware-lograge'
|
5
|
-
spec.version = '1.2.
|
5
|
+
spec.version = '1.2.1'
|
6
6
|
spec.platform = Gem::Platform::RUBY
|
7
7
|
spec.authors = ['Ryan Buckley', 'Paul Chavard']
|
8
8
|
spec.email = ['arebuckley@gmail.com', 'paul+github@chavard.net']
|
@@ -11,18 +11,6 @@ class Grape::Middleware::Lograge < Grape::Middleware::Globals
|
|
11
11
|
|
12
12
|
class << self
|
13
13
|
attr_accessor :filter
|
14
|
-
|
15
|
-
def custom_options
|
16
|
-
-> (event) {
|
17
|
-
{
|
18
|
-
params: event.payload[:params],
|
19
|
-
user_agent: event.payload[:user_agent],
|
20
|
-
request_id: event.payload[:request_id],
|
21
|
-
remote_ip: event.payload[:remote_ip],
|
22
|
-
version: event.payload[:version]
|
23
|
-
}
|
24
|
-
}
|
25
|
-
end
|
26
14
|
end
|
27
15
|
|
28
16
|
def initialize(_, options = {})
|
@@ -2,8 +2,6 @@ class Grape::Middleware::Lograge::Railtie < Rails::Railtie
|
|
2
2
|
initializer 'grape.middleware.lograge', after: :load_config_initializers do
|
3
3
|
Grape::Middleware::Lograge.filter = ActionDispatch::Http::ParameterFilter.new Rails.application.config.filter_parameters
|
4
4
|
|
5
|
-
Rails.application.config.lograge.custom_options = Grape::Middleware::Lograge.custom_options
|
6
|
-
|
7
5
|
::Lograge::RequestLogSubscriber.attach_to :grape
|
8
6
|
end
|
9
7
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grape-middleware-lograge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Buckley
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-12-
|
12
|
+
date: 2015-12-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: grape
|