metova-logger 0.0.5 → 0.0.6

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: 0d461ca0c9483a8cbfda04b3d6c8529ed3990b6b
4
- data.tar.gz: 9d796ada3fe910a94005f51ae8a661eed4611411
3
+ metadata.gz: 4e515f48c933a8a70c695ba45097eca90d10f7c7
4
+ data.tar.gz: 38d1787b367f4c3db6b1341ae21d1c8617414827
5
5
  SHA512:
6
- metadata.gz: 92d042b9046b6e42723234ec31d93b5a12bd3ae85713485a6973741ba4d39244e47b269327ceafdb60b69009363dc308b02b321c5555829cbd074365027cf358
7
- data.tar.gz: d6312bc35ffe909bd07e20d8af7beb4fd8393b082e2eba0e8a16d9d11807f9f1542cde9b9cb5d8d5c5f02a42c63c7a6a9b89abac4ee1de57a962cbaca173bc6a
6
+ metadata.gz: 61a55c17eadf4845777e77433bf3bc81fb3cfa99f891d1599c3964347cb5ecb82f6c1550d11e1c071bc05140f3bf987992d9ba1cd634f4c8aa79b888b44a5e1f
7
+ data.tar.gz: 5966079723dffb6bdae1a7e7957fbea84c3c679cf686da4dbb45b9f25920a241ff6c8c2775ca67bc0115b5fc2d83e6942bcef7b20dd73e9ea1828b1a8a5424ad
@@ -5,7 +5,7 @@ module Metova
5
5
  def append_info_to_payload(payload)
6
6
  super
7
7
  payload[:ip] = request.remote_ip
8
- if current_user
8
+ if defined?(current_user) && current_user
9
9
  payload[:user] = [
10
10
  (current_user.try(:email) || 'NOEMAIL'),
11
11
  current_user.id
@@ -1,5 +1,5 @@
1
1
  module Metova
2
2
  module Logger
3
- VERSION = '0.0.5'
3
+ VERSION = '0.0.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metova-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Logan Serman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-04 00:00:00.000000000 Z
11
+ date: 2015-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails