metova-logger 0.0.6 → 0.0.7

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: 4e515f48c933a8a70c695ba45097eca90d10f7c7
4
- data.tar.gz: 38d1787b367f4c3db6b1341ae21d1c8617414827
3
+ metadata.gz: 9eba79d0539b6607f763535b81efa6c2851d3bea
4
+ data.tar.gz: 6a316d8a821ef7e2c82f5677ab0ae2c243602073
5
5
  SHA512:
6
- metadata.gz: 61a55c17eadf4845777e77433bf3bc81fb3cfa99f891d1599c3964347cb5ecb82f6c1550d11e1c071bc05140f3bf987992d9ba1cd634f4c8aa79b888b44a5e1f
7
- data.tar.gz: 5966079723dffb6bdae1a7e7957fbea84c3c679cf686da4dbb45b9f25920a241ff6c8c2775ca67bc0115b5fc2d83e6942bcef7b20dd73e9ea1828b1a8a5424ad
6
+ metadata.gz: b596ae681b88b1b9da3ad9a9aabbd10a56aa5359d2708b5eddc59651c514fc1cc6064315c195c9a14a45c00cfbc2d739e3a9156d8bf49ade31eb3de6ba1db212
7
+ data.tar.gz: 2ac1257d131bde8d64e6d5fc3119c907949ca88b45c7986869323b91da8e37d9ec8a9213d27ccfc34c061b0a12a172051e904bf0ecaac9a60b08027cd3544388
data/README.md CHANGED
@@ -7,7 +7,9 @@ Including this gem will format Rails logs with Lograge. Logs will include user I
7
7
  Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'metova-logger'
10
+ group :staging, :production do
11
+ gem 'metova-logger'
12
+ end
11
13
  ```
12
14
 
13
15
  And then execute:
@@ -7,8 +7,8 @@ module Metova
7
7
  payload[:ip] = request.remote_ip
8
8
  if defined?(current_user) && current_user
9
9
  payload[:user] = [
10
- (current_user.try(:email) || 'NOEMAIL'),
11
- current_user.id
10
+ (current_user.try(:email) || 'NO_EMAIL'),
11
+ (current_user.try(:id) || 'NO_ID')
12
12
  ].join('/')
13
13
  end
14
14
  end
@@ -1,5 +1,5 @@
1
1
  module Metova
2
2
  module Logger
3
- VERSION = '0.0.6'
3
+ VERSION = '0.0.7'
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.6
4
+ version: 0.0.7
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-05 00:00:00.000000000 Z
11
+ date: 2015-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails