metova-logger 0.0.7 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9eba79d0539b6607f763535b81efa6c2851d3bea
4
- data.tar.gz: 6a316d8a821ef7e2c82f5677ab0ae2c243602073
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MWU4Y2YzOTlhNDJlNDg4MTAyM2E2MDhhODQ5Y2JlN2VlMDdiZGRjNA==
5
+ data.tar.gz: !binary |-
6
+ NmE5MmI4M2YzMGY2YzFkZjdjMzQ2ZTJmMGVkNmZkNWFlNzlkODQ3NA==
5
7
  SHA512:
6
- metadata.gz: b596ae681b88b1b9da3ad9a9aabbd10a56aa5359d2708b5eddc59651c514fc1cc6064315c195c9a14a45c00cfbc2d739e3a9156d8bf49ade31eb3de6ba1db212
7
- data.tar.gz: 2ac1257d131bde8d64e6d5fc3119c907949ca88b45c7986869323b91da8e37d9ec8a9213d27ccfc34c061b0a12a172051e904bf0ecaac9a60b08027cd3544388
8
+ metadata.gz: !binary |-
9
+ MWM0OGY5MWFkMmNmY2ZlMTcwMzUyN2NjNWRmOTAwM2EwMWVmMDFlZjgzMDMw
10
+ YTUwMTA4YjI2ZWFmZTFhNjhiYmIwNGMzOTI0YzZkN2UxNDI1NGYzZTFmODM4
11
+ NTVkNmE0Nzk3ODA5MWNjZTNkNTk0OGNiYzQxYjEzMTBiZDBlZjQ=
12
+ data.tar.gz: !binary |-
13
+ NmFhNTY5NjExMDJhMzcxOWFiYmE5M2NjZjQwMzZkZDZhZjA0OGUyYWU3NmI0
14
+ MmRkNGViZjU0OGFiM2ZhYThkMWYzZjQyMmNiMWUxOGQ4MjJjZmZkNDZmYmZh
15
+ MTBmZjg0OWYzOTdlMTUxNzc0Mjc1MzI0YTQyYjA0NGZlZjMwZjg=
@@ -0,0 +1,16 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.2.3
5
+ - 2.3.0
6
+ before_install: gem install bundler -v 1.13.6
7
+ cache: bundler
8
+ deploy:
9
+ provider: rubygems
10
+ gem:
11
+ master: metova-logger
12
+ on:
13
+ repo: metova/metova-logger
14
+ branch: master
15
+ api_key:
16
+ secure: Ph2hsMBioV9mlg1gAJSVqWdTsOj+HAW2in1ALAAv50kBTyRv5iNO8BF8F5uiEWVsBgIqn0AXfrI5RFz9auSq4MRO1Wb88dq1rbEymxv6qbXr+mDsG2HUuPLV/l002aQOTpzJpfktyNcau9dQv5erBH5ODwUTykpShlyWw3tqs4M=
data/Rakefile CHANGED
@@ -1,2 +1,4 @@
1
- require "bundler/gem_tasks"
1
+ require 'bundler/gem_tasks'
2
2
 
3
+ task :default do
4
+ end
@@ -1,7 +1,6 @@
1
1
  module Metova
2
2
  module Logger
3
3
  module ControllerPatch
4
-
5
4
  def append_info_to_payload(payload)
6
5
  super
7
6
  payload[:ip] = request.remote_ip
@@ -12,9 +11,8 @@ module Metova
12
11
  ].join('/')
13
12
  end
14
13
  end
15
-
16
14
  end
17
15
  end
18
16
  end
19
17
 
20
- ActionController::Base.send :include, Metova::Logger::ControllerPatch
18
+ ActionController::Base.include Metova::Logger::ControllerPatch
@@ -4,14 +4,14 @@ require 'lograge'
4
4
  module Metova
5
5
  module Logger
6
6
  class Railtie < ::Rails::Railtie
7
-
8
7
  initializer 'metova.logger' do |app|
9
8
  app.config.log_tags = [
10
- lambda { |req| req.uuid[0..15] }
9
+ ->(req) { req.uuid[0..15] }
11
10
  ]
12
11
  end
13
12
 
14
13
  config.lograge.enabled = true
14
+
15
15
  config.lograge.custom_options = lambda do |event|
16
16
  params = event.payload[:params].reject do |k|
17
17
  %w(controller action format).include? k
@@ -1,5 +1,5 @@
1
1
  module Metova
2
2
  module Logger
3
- VERSION = '0.0.7'
3
+ VERSION = '0.1.0'.freeze
4
4
  end
5
5
  end
@@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_dependency 'rails', '~> 4'
22
- spec.add_dependency 'lograge', '~> 0.3'
21
+ spec.add_dependency 'rails', '>= 4'
22
+ spec.add_dependency 'lograge', '~> 0.4.0'
23
23
 
24
24
  spec.add_development_dependency 'bundler', '~> 1.7'
25
25
  spec.add_development_dependency 'rake', '~> 10.0'
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metova-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.1.0
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-09 00:00:00.000000000 Z
11
+ date: 2016-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: lograge
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: '0.3'
33
+ version: 0.4.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: '0.3'
40
+ version: 0.4.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.7'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.7'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: '10.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: '10.0'
69
69
  description: Configure Rails log format for use with Logstash/Kibana
@@ -73,7 +73,8 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - ".gitignore"
76
+ - .gitignore
77
+ - .travis.yml
77
78
  - Gemfile
78
79
  - LICENSE.txt
79
80
  - README.md
@@ -93,19 +94,18 @@ require_paths:
93
94
  - lib
94
95
  required_ruby_version: !ruby/object:Gem::Requirement
95
96
  requirements:
96
- - - ">="
97
+ - - ! '>='
97
98
  - !ruby/object:Gem::Version
98
99
  version: '0'
99
100
  required_rubygems_version: !ruby/object:Gem::Requirement
100
101
  requirements:
101
- - - ">="
102
+ - - ! '>='
102
103
  - !ruby/object:Gem::Version
103
104
  version: '0'
104
105
  requirements: []
105
106
  rubyforge_project:
106
- rubygems_version: 2.2.2
107
+ rubygems_version: 2.4.5
107
108
  signing_key:
108
109
  specification_version: 4
109
110
  summary: Configure Rails log format for use with Logstash/Kibana
110
111
  test_files: []
111
- has_rdoc: