varnishops 0.0.1 → 0.0.2
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.
- data/README.md +3 -1
- data/config.rb +1 -0
- data/doc/varnishops.png +0 -0
- data/lib/cmdline.rb +1 -1
- data/varnishops.gemspec +1 -1
- metadata +3 -2
data/README.md
CHANGED
@@ -8,6 +8,8 @@ URLs from varnishncsa are categorized using custom regular expressions, based on
|
|
8
8
|
|
9
9
|
varnishops is written in Ruby (tested with MRI 1.9.3) and depends only on varnishncsa.
|
10
10
|
|
11
|
+

|
12
|
+
|
11
13
|
## Setup
|
12
14
|
|
13
15
|
* git clone https://github.com/Fotolia/varnishops
|
@@ -15,7 +17,7 @@ OR
|
|
15
17
|
* gem install varnishops
|
16
18
|
|
17
19
|
|
18
|
-
By default,
|
20
|
+
By default, URLs will be categorized based on their extensions, and statistics computed for each type.
|
19
21
|
|
20
22
|
Categories can be added by defining filters (ruby regexps). See example file in **ext/**.
|
21
23
|
|
data/config.rb
CHANGED
data/doc/varnishops.png
ADDED
Binary file
|
data/lib/cmdline.rb
CHANGED
@@ -37,7 +37,7 @@ class CmdLine
|
|
37
37
|
exit 1
|
38
38
|
end
|
39
39
|
|
40
|
-
unless
|
40
|
+
unless ENV['PATH'].split(File::PATH_SEPARATOR).any? {|d| File.executable?(File.join(d, "varnishncsa"))}
|
41
41
|
puts "varnishncsa not found. install it or set a correct PATH"
|
42
42
|
exit 1
|
43
43
|
end
|
data/varnishops.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "varnishops"
|
7
|
-
gem.version = "0.0.
|
7
|
+
gem.version = "0.0.2"
|
8
8
|
gem.authors = ["Jonathan Amiez"]
|
9
9
|
gem.email = ["jonathan.amiez@fotolia.com"]
|
10
10
|
gem.description = %q{varnishops - a realtime varnish log analyzer}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: varnishops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-11 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: varnishops - a realtime varnish log analyzer
|
15
15
|
email:
|
@@ -24,6 +24,7 @@ files:
|
|
24
24
|
- Rakefile
|
25
25
|
- bin/varnishops
|
26
26
|
- config.rb
|
27
|
+
- doc/varnishops.png
|
27
28
|
- ext/config.rb
|
28
29
|
- lib/cmdline.rb
|
29
30
|
- lib/ui.rb
|