logfile_interval 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +35 -0
- data/LICENSE.txt +22 -0
- data/README.md +94 -0
- data/Rakefile +1 -0
- data/docs/design.rb +91 -0
- data/docs/design2.rb +77 -0
- data/docs/design3.rb +177 -0
- data/lib/logfile_interval.rb +12 -0
- data/lib/logfile_interval/file_backward.rb +49 -0
- data/lib/logfile_interval/interval.rb +42 -0
- data/lib/logfile_interval/interval_builder.rb +34 -0
- data/lib/logfile_interval/interval_length.rb +47 -0
- data/lib/logfile_interval/line_parser/aggregator.rb +61 -0
- data/lib/logfile_interval/line_parser/base.rb +94 -0
- data/lib/logfile_interval/line_parser/counter.rb +27 -0
- data/lib/logfile_interval/logfile.rb +33 -0
- data/lib/logfile_interval/logfile_set.rb +47 -0
- data/lib/logfile_interval/version.rb +3 -0
- data/logfile_interval.gemspec +25 -0
- data/spec/lib/interval_builder_spec.rb +49 -0
- data/spec/lib/interval_spec.rb +73 -0
- data/spec/lib/line_parser/aggregator_spec.rb +47 -0
- data/spec/lib/line_parser/base_spec.rb +84 -0
- data/spec/lib/logfile_set_spec.rb +39 -0
- data/spec/lib/logfile_spec.rb +39 -0
- data/spec/spec_helper.rb +9 -0
- data/spec/support/lib/access_log.rb +22 -0
- data/spec/support/lib/timing_log.rb +19 -0
- data/spec/support/logfiles/access.log +7 -0
- data/spec/support/logfiles/access.log.1 +3 -0
- data/spec/support/logfiles/access.log.2 +3 -0
- data/spec/support/logfiles/timing.log +3 -0
- data/spec/support/logfiles/timing.log.1 +3 -0
- metadata +149 -0
metadata
ADDED
@@ -0,0 +1,149 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: logfile_interval
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Philippe Le Rohellec
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-12-03 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: debugger
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.14.0
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.14.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: Logfile parser and aggregator
|
70
|
+
email:
|
71
|
+
- philippe@lerohellec.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- .gitignore
|
77
|
+
- Gemfile
|
78
|
+
- Gemfile.lock
|
79
|
+
- LICENSE.txt
|
80
|
+
- README.md
|
81
|
+
- Rakefile
|
82
|
+
- docs/design.rb
|
83
|
+
- docs/design2.rb
|
84
|
+
- docs/design3.rb
|
85
|
+
- lib/logfile_interval.rb
|
86
|
+
- lib/logfile_interval/file_backward.rb
|
87
|
+
- lib/logfile_interval/interval.rb
|
88
|
+
- lib/logfile_interval/interval_builder.rb
|
89
|
+
- lib/logfile_interval/interval_length.rb
|
90
|
+
- lib/logfile_interval/line_parser/aggregator.rb
|
91
|
+
- lib/logfile_interval/line_parser/base.rb
|
92
|
+
- lib/logfile_interval/line_parser/counter.rb
|
93
|
+
- lib/logfile_interval/logfile.rb
|
94
|
+
- lib/logfile_interval/logfile_set.rb
|
95
|
+
- lib/logfile_interval/version.rb
|
96
|
+
- logfile_interval.gemspec
|
97
|
+
- spec/lib/interval_builder_spec.rb
|
98
|
+
- spec/lib/interval_spec.rb
|
99
|
+
- spec/lib/line_parser/aggregator_spec.rb
|
100
|
+
- spec/lib/line_parser/base_spec.rb
|
101
|
+
- spec/lib/logfile_set_spec.rb
|
102
|
+
- spec/lib/logfile_spec.rb
|
103
|
+
- spec/spec_helper.rb
|
104
|
+
- spec/support/lib/access_log.rb
|
105
|
+
- spec/support/lib/timing_log.rb
|
106
|
+
- spec/support/logfiles/access.log
|
107
|
+
- spec/support/logfiles/access.log.1
|
108
|
+
- spec/support/logfiles/access.log.2
|
109
|
+
- spec/support/logfiles/timing.log
|
110
|
+
- spec/support/logfiles/timing.log.1
|
111
|
+
homepage: ''
|
112
|
+
licenses:
|
113
|
+
- MIT
|
114
|
+
metadata: {}
|
115
|
+
post_install_message:
|
116
|
+
rdoc_options: []
|
117
|
+
require_paths:
|
118
|
+
- lib
|
119
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - '>='
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
|
+
requirements:
|
126
|
+
- - '>='
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '0'
|
129
|
+
requirements: []
|
130
|
+
rubyforge_project:
|
131
|
+
rubygems_version: 2.0.3
|
132
|
+
signing_key:
|
133
|
+
specification_version: 4
|
134
|
+
summary: Aggregate logfile data into intervals
|
135
|
+
test_files:
|
136
|
+
- spec/lib/interval_builder_spec.rb
|
137
|
+
- spec/lib/interval_spec.rb
|
138
|
+
- spec/lib/line_parser/aggregator_spec.rb
|
139
|
+
- spec/lib/line_parser/base_spec.rb
|
140
|
+
- spec/lib/logfile_set_spec.rb
|
141
|
+
- spec/lib/logfile_spec.rb
|
142
|
+
- spec/spec_helper.rb
|
143
|
+
- spec/support/lib/access_log.rb
|
144
|
+
- spec/support/lib/timing_log.rb
|
145
|
+
- spec/support/logfiles/access.log
|
146
|
+
- spec/support/logfiles/access.log.1
|
147
|
+
- spec/support/logfiles/access.log.2
|
148
|
+
- spec/support/logfiles/timing.log
|
149
|
+
- spec/support/logfiles/timing.log.1
|