eivo-rails 0.1.10 → 0.1.11

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: 35ce5c80a004d577ea1298d4fb342a4669eb666434f565d05c14a23448d1e3f1
4
- data.tar.gz: 3d2a1c1d78622de67434d34cb255756e73defbb353e4e73a5c6b18083a958b8d
3
+ metadata.gz: 1f4f0468c938c28b521471531f0dda6c72d6aff0735d0e7f2fbb3b420c7a6aa3
4
+ data.tar.gz: 126c2e7b093b2d09d4bc2b94c79d2f517e05045af304c55f6d84921ecedaab36
5
5
  SHA512:
6
- metadata.gz: f83055dc76c1e7c943896d6a8004feeefdfd0cc2e27512521142a89d1517c9e0ce223ac54aca8e22b4f5a1634693b0f75f17b9d1c21c3a58ec43ad1e966f15e0
7
- data.tar.gz: 639bba272ae7a3563f102d77d54745aa04698a8a1a1321f287e2f502eb0f4debaaf93ddb7e148c82d7b816fea552480ee30aab1d08b5d47a2f87e9b1a4445c70
6
+ metadata.gz: 0d6a35f5db36eaf1332321b82797b93c13987ace609d9e981a4554bb4b3146facb82be22833804d54db416da334b964356a86277e8b54af3a4a8a7037296b6fb
7
+ data.tar.gz: 8206c1d2286af450bfd10efbd41d46e9212d101dcda3866062943bfd0ea908693e330e3310f2dc687ab74951ec849346728c60e800e957a773caeed7b7c0fabc
@@ -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'
7
- spec.version = '0.1.10'
7
+ spec.version = '0.1.11'
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
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
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-06-22 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