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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 67d76f3667aeef4f551393982de8b570bae58e6b
4
- data.tar.gz: 3e4768bba774e30e2f7269ce4edd0852b32e60f7
3
+ metadata.gz: 9cb44daecef046560a8bc6611b08ace7af7fb1a6
4
+ data.tar.gz: 6af4517298855ddc604245302abd160d9f10a961
5
5
  SHA512:
6
- metadata.gz: 2f13ecd79731062f3ec8a472ceb1d78f0fa4718a4994472f00dc31a894ba291e7b2dfbec053915f02b672f862f8cae38cc33ad61954dcdab536a636aba9a31f4
7
- data.tar.gz: 89c747b20d031d1f3de14780dab998e4e79f185d121979bd3574d8f7c90c73e888752eaa1e0453aa5309787363194a4680fa7694f14628856b89f64aa5051ee2
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.0'
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.0
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-25 00:00:00.000000000 Z
12
+ date: 2015-12-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: grape