rails_log_parser 0.0.21 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +100 -0
- data/README.md +7 -84
- data/lib/rails_log_parser/action.rb +24 -11
- data/lib/rails_log_parser/line.rb +5 -4
- data/lib/rails_log_parser/not_parseable_lines.rb +2 -2
- data/lib/rails_log_parser/parser.rb +9 -6
- data/lib/rails_log_parser.rb +3 -1
- metadata +14 -57
- data/.gitignore +0 -11
- data/.rspec +0 -3
- data/Gemfile +0 -9
- data/Gemfile.lock +0 -146
- data/Rakefile +0 -8
- data/rails_log_parser.gemspec +0 -29
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 59f2cecd17282601e421146cbc3f56ecbcd43ff80f4d0c185b9d69ed3c4e87da
|
|
4
|
+
data.tar.gz: 19ccf45898021054f56aca3120ccb48935957776a16d471b8b866405c07fe213
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 75b0403a21883f6c33e1fa5549c3d68595aba2cda0aa6d224d1ffd78cb26ac0d2cae846be47eb1a27d09f81074d9f98ae1bb5f63fae42a3f49814fd568a75a59
|
|
7
|
+
data.tar.gz: f501325e523eaad291612798d05ea10322e3b2c30247308b37a7b010847f162b348c3fd115aaac1bcbdba933224cbe3e1862eea8cc54d76b9e1fc396453f9d87
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
* Use the exception as headline of errors instead of an empty line, also with further log tags
|
|
6
|
+
(`config.log_tags = %i[uuid domain]`)
|
|
7
|
+
|
|
8
|
+
## 0.1.0
|
|
9
|
+
|
|
10
|
+
* Drop `enumerize`, `json` and `rails` dependencies, only `activesupport` is required
|
|
11
|
+
* `Action#severity` and `Action#type` return symbols
|
|
12
|
+
* Require Ruby 3.2 and ActiveSupport 7.0 or newer
|
|
13
|
+
* Fix `NameError` on continuation lines of requests which started before the beginning of the log
|
|
14
|
+
* Fix crash on log lines with label `ANY` (`Logger#unknown`)
|
|
15
|
+
* Fix `summary(last_minutes:)` for actions without datetime
|
|
16
|
+
* Fix swallowed log lines containing `Starting job`
|
|
17
|
+
|
|
18
|
+
## 0.0.21
|
|
19
|
+
|
|
20
|
+
* Use `ignore_lines` on not parsable lines
|
|
21
|
+
|
|
22
|
+
## 0.0.20
|
|
23
|
+
|
|
24
|
+
* Add support for journald
|
|
25
|
+
|
|
26
|
+
## 0.0.19
|
|
27
|
+
|
|
28
|
+
* Ignore lines after ActiveJob lines
|
|
29
|
+
|
|
30
|
+
## 0.0.18
|
|
31
|
+
|
|
32
|
+
* Known exceptions given with maximum severity
|
|
33
|
+
|
|
34
|
+
## 0.0.17
|
|
35
|
+
|
|
36
|
+
* Adding `ActionDispatch::Http::MimeNegotiation::InvalidType` as known exceptions
|
|
37
|
+
* Update dependencies
|
|
38
|
+
|
|
39
|
+
## 0.0.16
|
|
40
|
+
|
|
41
|
+
* Remove heuristic
|
|
42
|
+
* Fix last action handling
|
|
43
|
+
|
|
44
|
+
## 0.0.15
|
|
45
|
+
|
|
46
|
+
* Filter lines by config file
|
|
47
|
+
|
|
48
|
+
## 0.0.14
|
|
49
|
+
|
|
50
|
+
* Better empty lines handling
|
|
51
|
+
|
|
52
|
+
## 0.0.13
|
|
53
|
+
|
|
54
|
+
* Better empty lines handling
|
|
55
|
+
|
|
56
|
+
## 0.0.12
|
|
57
|
+
|
|
58
|
+
* Adding `ActionController::UnknownFormat` as known exceptions
|
|
59
|
+
|
|
60
|
+
## 0.0.11
|
|
61
|
+
|
|
62
|
+
* Increase minimum requests value for heuristic
|
|
63
|
+
|
|
64
|
+
## 0.0.10
|
|
65
|
+
|
|
66
|
+
* Ignore periods with too few requests
|
|
67
|
+
|
|
68
|
+
## 0.0.9
|
|
69
|
+
|
|
70
|
+
* Message not parseable lines only once a day
|
|
71
|
+
* Delete old heuristic stat files automaticly
|
|
72
|
+
|
|
73
|
+
## 0.0.8
|
|
74
|
+
|
|
75
|
+
* Adding `ActionController::UnfilteredParameters` as known exceptions
|
|
76
|
+
* Adjust heuristic rate for better matching
|
|
77
|
+
|
|
78
|
+
## 0.0.7
|
|
79
|
+
|
|
80
|
+
* Remove empty lines on summary without report
|
|
81
|
+
|
|
82
|
+
## 0.0.6
|
|
83
|
+
|
|
84
|
+
* Adding heuristic to rate known exceptions
|
|
85
|
+
|
|
86
|
+
## 0.0.5
|
|
87
|
+
|
|
88
|
+
* Removing `URI::InvalidURIError` as known exceptions
|
|
89
|
+
|
|
90
|
+
## 0.0.4
|
|
91
|
+
|
|
92
|
+
* Handle stacktrace of fatals too
|
|
93
|
+
|
|
94
|
+
## 0.0.3
|
|
95
|
+
|
|
96
|
+
* Adding `URI::InvalidURIError` as known exceptions
|
|
97
|
+
|
|
98
|
+
## 0.0.2
|
|
99
|
+
|
|
100
|
+
* Adding `ActionController::InvalidAuthenticityToken` as known exceptions
|
data/README.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
This gem helps you to quick analyse your server logs without external monitor servers. Simple applications with a low number of requests cause only a low number of errors. So you can call a cronjob to analyse your logs periodly. If the summary is not empty your server will email you the result automaticly.
|
|
4
4
|
|
|
5
|
+
## Requirements
|
|
6
|
+
|
|
7
|
+
* Ruby 3.2 or newer
|
|
8
|
+
* ActiveSupport 7.0 or newer
|
|
9
|
+
|
|
5
10
|
## Installation
|
|
6
11
|
|
|
7
12
|
Add this line to your application's Gemfile:
|
|
@@ -30,7 +35,7 @@ Call the rake tasks in cronjobs:
|
|
|
30
35
|
|
|
31
36
|
```
|
|
32
37
|
LOG_PATH=/srv/rails/log/production.log
|
|
33
|
-
0,20,40 * * * * rake rails_log_parser:parse[22]
|
|
38
|
+
0,20,40 * * * * rake rails_log_parser:parse[22] # summary of the last 22 minutes
|
|
34
39
|
```
|
|
35
40
|
|
|
36
41
|
Or use it in your code:
|
|
@@ -65,89 +70,7 @@ end
|
|
|
65
70
|
|
|
66
71
|
## Changelog
|
|
67
72
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
* Use `ignore_lines` on not parsable lines
|
|
71
|
-
|
|
72
|
-
### 0.0.20
|
|
73
|
-
|
|
74
|
-
* Add support for journald
|
|
75
|
-
|
|
76
|
-
### 0.0.19
|
|
77
|
-
|
|
78
|
-
* Ignore lines after ActiveJob lines
|
|
79
|
-
|
|
80
|
-
### 0.0.18
|
|
81
|
-
|
|
82
|
-
* Known exceptions given with maximum severity
|
|
83
|
-
|
|
84
|
-
### 0.0.17
|
|
85
|
-
|
|
86
|
-
* Adding `ActionDispatch::Http::MimeNegotiation::InvalidType` as known exceptions
|
|
87
|
-
* Update dependencies
|
|
88
|
-
|
|
89
|
-
### 0.0.16
|
|
90
|
-
|
|
91
|
-
* Remove heuristic
|
|
92
|
-
* Fix last action handling
|
|
93
|
-
|
|
94
|
-
### 0.0.15
|
|
95
|
-
|
|
96
|
-
* Filter lines by config file
|
|
97
|
-
|
|
98
|
-
### 0.0.14
|
|
99
|
-
|
|
100
|
-
* Better empty lines handling
|
|
101
|
-
|
|
102
|
-
### 0.0.13
|
|
103
|
-
|
|
104
|
-
* Better empty lines handling
|
|
105
|
-
|
|
106
|
-
### 0.0.12
|
|
107
|
-
|
|
108
|
-
* Adding `ActionController::UnknownFormat` as known exceptions
|
|
109
|
-
|
|
110
|
-
### 0.0.11
|
|
111
|
-
|
|
112
|
-
* Increase minimum requests value for heuristic
|
|
113
|
-
|
|
114
|
-
### 0.0.10
|
|
115
|
-
|
|
116
|
-
* Ignore periods with too few requests
|
|
117
|
-
|
|
118
|
-
### 0.0.9
|
|
119
|
-
|
|
120
|
-
* Message not parseable lines only once a day
|
|
121
|
-
* Delete old heuristic stat files automaticly
|
|
122
|
-
|
|
123
|
-
### 0.0.8
|
|
124
|
-
|
|
125
|
-
* Adding `ActionController::UnfilteredParameters` as known exceptions
|
|
126
|
-
* Adjust heuristic rate for better matching
|
|
127
|
-
|
|
128
|
-
### 0.0.7
|
|
129
|
-
|
|
130
|
-
* Remove empty lines on summary without report
|
|
131
|
-
|
|
132
|
-
### 0.0.6
|
|
133
|
-
|
|
134
|
-
* Adding heuristic to rate known exceptions
|
|
135
|
-
|
|
136
|
-
### 0.0.5
|
|
137
|
-
|
|
138
|
-
* Removing `URI::InvalidURIError` as known exceptions
|
|
139
|
-
|
|
140
|
-
### 0.0.4
|
|
141
|
-
|
|
142
|
-
* Handle stacktrace of fatals too
|
|
143
|
-
|
|
144
|
-
### 0.0.3
|
|
145
|
-
|
|
146
|
-
* Adding `URI::InvalidURIError` as known exceptions
|
|
147
|
-
|
|
148
|
-
### 0.0.2
|
|
149
|
-
|
|
150
|
-
* Adding `ActionController::InvalidAuthenticityToken` as known exceptions
|
|
73
|
+
See [CHANGELOG.md](CHANGELOG.md).
|
|
151
74
|
|
|
152
75
|
## Contributing
|
|
153
76
|
|
|
@@ -15,13 +15,22 @@ class RailsLogParser::Action
|
|
|
15
15
|
'ActionDispatch::Http::MimeNegotiation::InvalidType' => :fatal,
|
|
16
16
|
}.freeze
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
TYPES = %i[request without_request delayed_job active_job].freeze
|
|
19
|
+
|
|
20
|
+
attr_reader :type, :severity, :datetime
|
|
21
|
+
|
|
22
|
+
SEVERITIES.each do |value|
|
|
23
|
+
define_method(:"#{value}?") { severity == value }
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
TYPES.each do |value|
|
|
27
|
+
define_method(:"#{value}?") { type == value }
|
|
28
|
+
end
|
|
22
29
|
|
|
23
30
|
def initialize(type, id)
|
|
24
|
-
|
|
31
|
+
raise ArgumentError, "unknown type #{type.inspect}" unless TYPES.include?(type)
|
|
32
|
+
|
|
33
|
+
@type = type
|
|
25
34
|
@id = id
|
|
26
35
|
@messages = []
|
|
27
36
|
@stacktrace = []
|
|
@@ -29,22 +38,26 @@ class RailsLogParser::Action
|
|
|
29
38
|
|
|
30
39
|
def severity=(value)
|
|
31
40
|
value = value.downcase.to_sym
|
|
32
|
-
|
|
41
|
+
# Logger::UNKNOWN is written with the label ANY, it carries no severity we can rate
|
|
42
|
+
return unless SEVERITIES.include?(value)
|
|
43
|
+
return unless severity.nil? || SEVERITIES.index(severity) < SEVERITIES.index(value)
|
|
33
44
|
|
|
34
|
-
|
|
45
|
+
@severity = value
|
|
35
46
|
@headline = nil
|
|
36
47
|
end
|
|
37
48
|
|
|
38
49
|
def known_exception?(key = nil)
|
|
39
|
-
severity_index = SEVERITIES.index(severity
|
|
50
|
+
severity_index = SEVERITIES.index(severity)
|
|
40
51
|
@messages.any? do |message|
|
|
41
|
-
KNOWN_EXCEPTIONS.any?
|
|
52
|
+
KNOWN_EXCEPTIONS.any? do |e, s|
|
|
53
|
+
message.include?(e) && severity_index <= SEVERITIES.index(s) && (key.nil? || key == e)
|
|
54
|
+
end
|
|
42
55
|
end
|
|
43
56
|
end
|
|
44
57
|
|
|
45
58
|
def ignore?
|
|
46
59
|
@messages.any? do |message|
|
|
47
|
-
RailsLogParser.ignore_lines.any? {|ignore| message.match?(ignore) }
|
|
60
|
+
RailsLogParser.ignore_lines.any? { |ignore| message.match?(ignore) }
|
|
48
61
|
end
|
|
49
62
|
end
|
|
50
63
|
|
|
@@ -57,7 +70,7 @@ class RailsLogParser::Action
|
|
|
57
70
|
end
|
|
58
71
|
|
|
59
72
|
def after?(datetime)
|
|
60
|
-
@datetime > datetime
|
|
73
|
+
@datetime.present? && @datetime > datetime
|
|
61
74
|
end
|
|
62
75
|
|
|
63
76
|
def add_message(value)
|
|
@@ -13,12 +13,13 @@ class RailsLogParser::Line
|
|
|
13
13
|
def parse
|
|
14
14
|
return if line.empty?
|
|
15
15
|
|
|
16
|
-
# empty log line
|
|
16
|
+
# empty log line, optionally with further log tags (config.log_tags = %i[uuid domain])
|
|
17
17
|
match = line.match(/
|
|
18
18
|
\A(?<severity_id>[DIWEFU]),\s # I,
|
|
19
19
|
\[(?<datetime>[^\]]+)\s\#(?<pid>\d+)\]\s+ # [2021-11-26T13:11:01.255168 #10158]
|
|
20
20
|
(?<severity_label>[A-Z]+)\s+--\s+[^:]*:\s+ # INFO -- :
|
|
21
|
-
\[(?<id>[a-f0-9
|
|
21
|
+
\[(?<id>[a-f0-9-]{36})\] # [b42b65ab-7985-4bc2-a5b5-1fb23e6ad940]
|
|
22
|
+
(?:\s+\[[^\]]*\])*\s* # [example.com]
|
|
22
23
|
\z/x)
|
|
23
24
|
if match
|
|
24
25
|
parser.empty_line(match)
|
|
@@ -30,7 +31,7 @@ class RailsLogParser::Line
|
|
|
30
31
|
\A(?<severity_id>[DIWEFU]),\s # I,
|
|
31
32
|
\[(?<datetime>[^\]]+)\s\#(?<pid>\d+)\]\s+ # [2021-11-26T13:11:01.255168 #10158]
|
|
32
33
|
(?<severity_label>[A-Z]+)\s+--\s+[^:]*:\s+ # INFO -- :
|
|
33
|
-
\[(?<id>[a-f0-9
|
|
34
|
+
\[(?<id>[a-f0-9-]{36})\]\s # [b42b65ab-7985-4bc2-a5b5-1fb23e6ad940]
|
|
34
35
|
(?<message>.*) # Processing by Public::Controller
|
|
35
36
|
\z/x)
|
|
36
37
|
if match
|
|
@@ -73,7 +74,7 @@ class RailsLogParser::Line
|
|
|
73
74
|
(?<severity_label>[A-Z]+)\s+--\s+[^:]*:\s # INFO -- :
|
|
74
75
|
(?<datetime2>[^\s]+)\s # 2021-11-26T13:51:30+0000:
|
|
75
76
|
\[Worker[^\]]+\]\s # [Worker(delayed_job host:production pid:10411)]
|
|
76
|
-
(?:\d+\sjobs\sprocessed
|
|
77
|
+
(?:\d+\sjobs\sprocessed|Starting\sjob) # 19 jobs processed
|
|
77
78
|
(?:.*) # at 2.8816
|
|
78
79
|
\z/x)
|
|
79
80
|
return if match
|
|
@@ -18,7 +18,7 @@ class RailsLogParser::NotParseableLines
|
|
|
18
18
|
def save
|
|
19
19
|
@stats[Date.today.to_s] = today_lines + lines
|
|
20
20
|
|
|
21
|
-
last_7_days = (0..6).map { |i|
|
|
21
|
+
last_7_days = (0..6).map { |i| Date.today - i }.map(&:to_s)
|
|
22
22
|
@stats.each_key do |key|
|
|
23
23
|
@stats.delete(key) unless last_7_days.include?(key)
|
|
24
24
|
end
|
|
@@ -34,7 +34,7 @@ class RailsLogParser::NotParseableLines
|
|
|
34
34
|
def ignore?(line)
|
|
35
35
|
return true if today_lines.include?(line)
|
|
36
36
|
|
|
37
|
-
RailsLogParser.ignore_lines.any? {|ignore| line.match?(ignore) }
|
|
37
|
+
RailsLogParser.ignore_lines.any? { |ignore| line.match?(ignore) }
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
def load_file
|
|
@@ -25,11 +25,11 @@ class RailsLogParser::Parser
|
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
def from_journalctl(unit:, since: nil)
|
|
28
|
-
cmd = [
|
|
28
|
+
cmd = ['journalctl', '-u', unit, '-o', 'cat']
|
|
29
29
|
|
|
30
|
-
cmd += [
|
|
30
|
+
cmd += ['--since', since] if since
|
|
31
31
|
|
|
32
|
-
IO.popen(cmd, err: [
|
|
32
|
+
IO.popen(cmd, err: %i[child out]) do |io|
|
|
33
33
|
from_io(io)
|
|
34
34
|
end
|
|
35
35
|
end
|
|
@@ -38,14 +38,13 @@ class RailsLogParser::Parser
|
|
|
38
38
|
attr_reader :not_parseable_lines, :last_action
|
|
39
39
|
|
|
40
40
|
def initialize
|
|
41
|
-
config_file = File.join(Dir.pwd,'config/rails_log_parser.rb')
|
|
41
|
+
config_file = File.join(Dir.pwd, 'config/rails_log_parser.rb')
|
|
42
42
|
require config_file if File.file?(config_file)
|
|
43
43
|
|
|
44
44
|
@actions = {}
|
|
45
45
|
@not_parseable_lines = RailsLogParser::NotParseableLines.new
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
-
|
|
49
48
|
def summary(last_minutes: nil)
|
|
50
49
|
relevant = actions
|
|
51
50
|
if last_minutes.present?
|
|
@@ -113,7 +112,11 @@ class RailsLogParser::Parser
|
|
|
113
112
|
end
|
|
114
113
|
|
|
115
114
|
def add_message(params)
|
|
116
|
-
|
|
115
|
+
# continuation of a request which started before the beginning of the log
|
|
116
|
+
return if @actions[params['id']].nil?
|
|
117
|
+
# empty continuation line, optionally with further log tags (config.log_tags = %i[uuid domain])
|
|
118
|
+
return if params['message'].match?(/\A(?:\[[^\]]*\]\s*)*\z/)
|
|
119
|
+
|
|
117
120
|
@actions[params['id']].add_message(params['message'])
|
|
118
121
|
end
|
|
119
122
|
end
|
data/lib/rails_log_parser.rb
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require '
|
|
3
|
+
require 'active_support'
|
|
4
4
|
require 'active_support/core_ext/module/attribute_accessors'
|
|
5
|
+
require 'active_support/core_ext/object/blank'
|
|
6
|
+
require 'active_support/core_ext/numeric/time'
|
|
5
7
|
|
|
6
8
|
module RailsLogParser
|
|
7
9
|
mattr_accessor :ignore_lines, default: []
|
metadata
CHANGED
|
@@ -1,71 +1,34 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_log_parser
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Georg Limbach
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name:
|
|
13
|
+
name: activesupport
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - "~>"
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: '2.4'
|
|
20
|
-
type: :runtime
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - "~>"
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
26
|
-
version: '2.4'
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: json
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - ">="
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '2.0'
|
|
34
|
-
type: :runtime
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
15
|
requirements:
|
|
38
16
|
- - ">="
|
|
39
17
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
41
|
-
-
|
|
42
|
-
name: rails
|
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - ">="
|
|
18
|
+
version: '7.0'
|
|
19
|
+
- - "<"
|
|
46
20
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '
|
|
21
|
+
version: '9'
|
|
48
22
|
type: :runtime
|
|
49
23
|
prerelease: false
|
|
50
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
25
|
requirements:
|
|
52
26
|
- - ">="
|
|
53
27
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '
|
|
55
|
-
-
|
|
56
|
-
name: rspec
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - ">="
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: '3.0'
|
|
62
|
-
type: :development
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - ">="
|
|
28
|
+
version: '7.0'
|
|
29
|
+
- - "<"
|
|
67
30
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '
|
|
31
|
+
version: '9'
|
|
69
32
|
description: If you want to get an email with errors and fatal log lines you can use
|
|
70
33
|
this gem.
|
|
71
34
|
email:
|
|
@@ -74,13 +37,9 @@ executables: []
|
|
|
74
37
|
extensions: []
|
|
75
38
|
extra_rdoc_files: []
|
|
76
39
|
files:
|
|
77
|
-
-
|
|
78
|
-
- ".rspec"
|
|
79
|
-
- Gemfile
|
|
80
|
-
- Gemfile.lock
|
|
40
|
+
- CHANGELOG.md
|
|
81
41
|
- LICENSE.txt
|
|
82
42
|
- README.md
|
|
83
|
-
- Rakefile
|
|
84
43
|
- lib/rails_log_parser.rb
|
|
85
44
|
- lib/rails_log_parser/action.rb
|
|
86
45
|
- lib/rails_log_parser/line.rb
|
|
@@ -88,14 +47,13 @@ files:
|
|
|
88
47
|
- lib/rails_log_parser/parser.rb
|
|
89
48
|
- lib/rails_log_parser/railtie.rb
|
|
90
49
|
- lib/rails_log_parser/tasks.rb
|
|
91
|
-
- rails_log_parser.gemspec
|
|
92
50
|
homepage: https://github.com/Lichtbit/rails_log_parser
|
|
93
51
|
licenses:
|
|
94
52
|
- MIT
|
|
95
53
|
metadata:
|
|
96
|
-
homepage_uri: https://github.com/Lichtbit/rails_log_parser
|
|
97
54
|
source_code_uri: https://github.com/Lichtbit/rails_log_parser
|
|
98
|
-
|
|
55
|
+
changelog_uri: https://github.com/Lichtbit/rails_log_parser/blob/master/CHANGELOG.md
|
|
56
|
+
rubygems_mfa_required: 'true'
|
|
99
57
|
rdoc_options: []
|
|
100
58
|
require_paths:
|
|
101
59
|
- lib
|
|
@@ -103,15 +61,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
103
61
|
requirements:
|
|
104
62
|
- - ">="
|
|
105
63
|
- !ruby/object:Gem::Version
|
|
106
|
-
version:
|
|
64
|
+
version: '3.2'
|
|
107
65
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
66
|
requirements:
|
|
109
67
|
- - ">="
|
|
110
68
|
- !ruby/object:Gem::Version
|
|
111
69
|
version: '0'
|
|
112
70
|
requirements: []
|
|
113
|
-
rubygems_version:
|
|
114
|
-
signing_key:
|
|
71
|
+
rubygems_version: 4.0.20
|
|
115
72
|
specification_version: 4
|
|
116
73
|
summary: Simple and fast analysing of default rails logs
|
|
117
74
|
test_files: []
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
rails_log_parser (0.0.16)
|
|
5
|
-
enumerize (~> 2.4)
|
|
6
|
-
json (>= 2.0)
|
|
7
|
-
rails (>= 2.1)
|
|
8
|
-
|
|
9
|
-
GEM
|
|
10
|
-
remote: https://rubygems.org/
|
|
11
|
-
specs:
|
|
12
|
-
actioncable (5.2.5)
|
|
13
|
-
actionpack (= 5.2.5)
|
|
14
|
-
nio4r (~> 2.0)
|
|
15
|
-
websocket-driver (>= 0.6.1)
|
|
16
|
-
actionmailer (5.2.5)
|
|
17
|
-
actionpack (= 5.2.5)
|
|
18
|
-
actionview (= 5.2.5)
|
|
19
|
-
activejob (= 5.2.5)
|
|
20
|
-
mail (~> 2.5, >= 2.5.4)
|
|
21
|
-
rails-dom-testing (~> 2.0)
|
|
22
|
-
actionpack (5.2.5)
|
|
23
|
-
actionview (= 5.2.5)
|
|
24
|
-
activesupport (= 5.2.5)
|
|
25
|
-
rack (~> 2.0, >= 2.0.8)
|
|
26
|
-
rack-test (>= 0.6.3)
|
|
27
|
-
rails-dom-testing (~> 2.0)
|
|
28
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
29
|
-
actionview (5.2.5)
|
|
30
|
-
activesupport (= 5.2.5)
|
|
31
|
-
builder (~> 3.1)
|
|
32
|
-
erubi (~> 1.4)
|
|
33
|
-
rails-dom-testing (~> 2.0)
|
|
34
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
|
35
|
-
activejob (5.2.5)
|
|
36
|
-
activesupport (= 5.2.5)
|
|
37
|
-
globalid (>= 0.3.6)
|
|
38
|
-
activemodel (5.2.5)
|
|
39
|
-
activesupport (= 5.2.5)
|
|
40
|
-
activerecord (5.2.5)
|
|
41
|
-
activemodel (= 5.2.5)
|
|
42
|
-
activesupport (= 5.2.5)
|
|
43
|
-
arel (>= 9.0)
|
|
44
|
-
activestorage (5.2.5)
|
|
45
|
-
actionpack (= 5.2.5)
|
|
46
|
-
activerecord (= 5.2.5)
|
|
47
|
-
marcel (~> 1.0.0)
|
|
48
|
-
activesupport (5.2.5)
|
|
49
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
50
|
-
i18n (>= 0.7, < 2)
|
|
51
|
-
minitest (~> 5.1)
|
|
52
|
-
tzinfo (~> 1.1)
|
|
53
|
-
arel (9.0.0)
|
|
54
|
-
builder (3.2.4)
|
|
55
|
-
concurrent-ruby (1.2.2)
|
|
56
|
-
crass (1.0.6)
|
|
57
|
-
diff-lcs (1.4.4)
|
|
58
|
-
enumerize (2.5.0)
|
|
59
|
-
activesupport (>= 3.2)
|
|
60
|
-
erubi (1.10.0)
|
|
61
|
-
globalid (0.4.2)
|
|
62
|
-
activesupport (>= 4.2.0)
|
|
63
|
-
i18n (1.12.0)
|
|
64
|
-
concurrent-ruby (~> 1.0)
|
|
65
|
-
json (2.6.3)
|
|
66
|
-
loofah (2.9.1)
|
|
67
|
-
crass (~> 1.0.2)
|
|
68
|
-
nokogiri (>= 1.5.9)
|
|
69
|
-
mail (2.7.1)
|
|
70
|
-
mini_mime (>= 0.1.1)
|
|
71
|
-
marcel (1.0.1)
|
|
72
|
-
method_source (1.0.0)
|
|
73
|
-
mini_mime (1.1.0)
|
|
74
|
-
mini_portile2 (2.8.5)
|
|
75
|
-
minitest (5.18.0)
|
|
76
|
-
nio4r (2.5.7)
|
|
77
|
-
nokogiri (1.16.0)
|
|
78
|
-
mini_portile2 (~> 2.8.2)
|
|
79
|
-
racc (~> 1.4)
|
|
80
|
-
racc (1.7.3)
|
|
81
|
-
rack (2.2.3)
|
|
82
|
-
rack-test (1.1.0)
|
|
83
|
-
rack (>= 1.0, < 3)
|
|
84
|
-
rails (5.2.5)
|
|
85
|
-
actioncable (= 5.2.5)
|
|
86
|
-
actionmailer (= 5.2.5)
|
|
87
|
-
actionpack (= 5.2.5)
|
|
88
|
-
actionview (= 5.2.5)
|
|
89
|
-
activejob (= 5.2.5)
|
|
90
|
-
activemodel (= 5.2.5)
|
|
91
|
-
activerecord (= 5.2.5)
|
|
92
|
-
activestorage (= 5.2.5)
|
|
93
|
-
activesupport (= 5.2.5)
|
|
94
|
-
bundler (>= 1.3.0)
|
|
95
|
-
railties (= 5.2.5)
|
|
96
|
-
sprockets-rails (>= 2.0.0)
|
|
97
|
-
rails-dom-testing (2.0.3)
|
|
98
|
-
activesupport (>= 4.2.0)
|
|
99
|
-
nokogiri (>= 1.6)
|
|
100
|
-
rails-html-sanitizer (1.3.0)
|
|
101
|
-
loofah (~> 2.3)
|
|
102
|
-
railties (5.2.5)
|
|
103
|
-
actionpack (= 5.2.5)
|
|
104
|
-
activesupport (= 5.2.5)
|
|
105
|
-
method_source
|
|
106
|
-
rake (>= 0.8.7)
|
|
107
|
-
thor (>= 0.19.0, < 2.0)
|
|
108
|
-
rake (12.3.3)
|
|
109
|
-
rspec (3.10.0)
|
|
110
|
-
rspec-core (~> 3.10.0)
|
|
111
|
-
rspec-expectations (~> 3.10.0)
|
|
112
|
-
rspec-mocks (~> 3.10.0)
|
|
113
|
-
rspec-core (3.10.1)
|
|
114
|
-
rspec-support (~> 3.10.0)
|
|
115
|
-
rspec-expectations (3.10.1)
|
|
116
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
117
|
-
rspec-support (~> 3.10.0)
|
|
118
|
-
rspec-mocks (3.10.2)
|
|
119
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
120
|
-
rspec-support (~> 3.10.0)
|
|
121
|
-
rspec-support (3.10.3)
|
|
122
|
-
sprockets (4.0.2)
|
|
123
|
-
concurrent-ruby (~> 1.0)
|
|
124
|
-
rack (> 1, < 3)
|
|
125
|
-
sprockets-rails (3.2.2)
|
|
126
|
-
actionpack (>= 4.0)
|
|
127
|
-
activesupport (>= 4.0)
|
|
128
|
-
sprockets (>= 3.0.0)
|
|
129
|
-
thor (1.1.0)
|
|
130
|
-
thread_safe (0.3.6)
|
|
131
|
-
tzinfo (1.2.9)
|
|
132
|
-
thread_safe (~> 0.1)
|
|
133
|
-
websocket-driver (0.7.3)
|
|
134
|
-
websocket-extensions (>= 0.1.0)
|
|
135
|
-
websocket-extensions (0.1.5)
|
|
136
|
-
|
|
137
|
-
PLATFORMS
|
|
138
|
-
ruby
|
|
139
|
-
|
|
140
|
-
DEPENDENCIES
|
|
141
|
-
rails_log_parser!
|
|
142
|
-
rake (~> 12.0)
|
|
143
|
-
rspec (~> 3.0)
|
|
144
|
-
|
|
145
|
-
BUNDLED WITH
|
|
146
|
-
2.3.26
|
data/Rakefile
DELETED
data/rails_log_parser.gemspec
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
Gem::Specification.new do |spec|
|
|
4
|
-
spec.name = 'rails_log_parser'
|
|
5
|
-
spec.version = '0.0.21'
|
|
6
|
-
spec.authors = ['Georg Limbach']
|
|
7
|
-
spec.email = ['georg.limbach@lichtbit.com']
|
|
8
|
-
|
|
9
|
-
spec.summary = 'Simple and fast analysing of default rails logs'
|
|
10
|
-
spec.description = 'If you want to get an email with errors and fatal log lines you can use this gem.'
|
|
11
|
-
spec.homepage = 'https://github.com/Lichtbit/rails_log_parser'
|
|
12
|
-
spec.license = 'MIT'
|
|
13
|
-
spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
|
|
14
|
-
|
|
15
|
-
spec.metadata['homepage_uri'] = spec.homepage
|
|
16
|
-
spec.metadata['source_code_uri'] = 'https://github.com/Lichtbit/rails_log_parser'
|
|
17
|
-
|
|
18
|
-
# Specify which files should be added to the gem when it is released.
|
|
19
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
20
|
-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
21
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
22
|
-
end
|
|
23
|
-
spec.require_paths = ['lib']
|
|
24
|
-
|
|
25
|
-
spec.add_dependency 'enumerize', '~> 2.4'
|
|
26
|
-
spec.add_dependency 'json', '>= 2.0'
|
|
27
|
-
spec.add_dependency 'rails', '>= 2.1'
|
|
28
|
-
spec.add_development_dependency 'rspec', '>= 3.0'
|
|
29
|
-
end
|