eivo-rails-api 0.1.11 → 0.1.12

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
  SHA256:
3
- metadata.gz: 85b110565817354fec9277b86b3934f2c8fca3b6b95643dd59ffc49446864c9e
4
- data.tar.gz: 1a9866c9c44dc1cd23a5f034917ab00b0b946da5867b439c60d7aebb201ce807
3
+ metadata.gz: 0e1fe806702976c10a68369fa78dd2ce3b4fb693e80f8d37e20d592fc1871956
4
+ data.tar.gz: e652fc339b44cd44ab680cab8e510f90655bb74538bdff657cea66bf4d415f2b
5
5
  SHA512:
6
- metadata.gz: 4f5410a18221a5f98e9de1ff1fdc1600e69d4f299b5c231b2469de1b3f364ccd42f0d83bb910c08b3b4f5d0a63c4df96610923b4143c568fef095f9386da9598
7
- data.tar.gz: 640968c7cc3ed44fb6d9f4675495a879c4239bd0e5025593a6cd206527bd27e7891880c248c7486f659f038b917223f439a45c7e215b23a3f30770a111e1f6aa
6
+ metadata.gz: cfff26599d151a387f26500c3898993055d704360b17e2b477a172d7de775bb6cea53844057bda5ce4643f1dbabfafce143c6fdffe44527c62e651d3c891d30f
7
+ data.tar.gz: adeed7317b7c66c0c12104aec73d24fbaa4d56e69a0e702a711dc6cc37bb05dffa232457317a9397b1e05b8dd81f494f2964fb87a68e3bfbc643408094773e64
@@ -16,13 +16,11 @@ if Rails.env.staging? || Rails.env.production?
16
16
  config.lograge.ignore_actions = ['EIVO::StatusController#index']
17
17
 
18
18
  config.lograge.custom_options = ->(event) do
19
- result = {
20
- params: event.payload[:params].except('controller', 'action', 'format'),
21
- request_id: event.payload[:request_id]
22
- }
19
+ result = event.payload || {}
23
20
 
24
- result[:user_id] = event.payload[:user_id] if event.payload[:user_id]
25
- result[:organization_id] = event.payload[:organization_id] if event.payload[:organization_id]
21
+ if result[:params]
22
+ result[:params] = result[:params].except('controller', 'action', 'format')
23
+ end
26
24
 
27
25
  # https://github.com/roidrage/lograge/pull/307
28
26
  if event.respond_to?(:allocations)
@@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'eivo-rails-api'
7
- spec.version = '0.1.11'
7
+ spec.version = '0.1.12'
8
8
  spec.authors = ['Jonathan VUKOVICH-TRIBOUHARET']
9
9
  spec.email = ['jonathan@eivo.co']
10
10
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eivo-rails-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan VUKOVICH-TRIBOUHARET
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-08 00:00:00.000000000 Z
11
+ date: 2020-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor