logtrend 0.8.20101205091937 → 0.9.20101205102039

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.
Files changed (3) hide show
  1. data/lib/logtrend.rb +5 -1
  2. metadata +4 -5
  3. data/samples/test.log +0 -42
data/lib/logtrend.rb CHANGED
@@ -7,7 +7,10 @@ require 'erb'
7
7
 
8
8
  module LogTrend
9
9
  class Base
10
- attr_accessor :graphs_dir, :rrd_dir
10
+ # This sets the directory where graphs should be stored. Default is '.'
11
+ attr_accessor :graphs_dir
12
+ # This sets the directory where your RRD files will rest. Default is '.'
13
+ attr_accessor :rrd_dir
11
14
 
12
15
  def initialize
13
16
  @graphs_dir = '.'
@@ -43,6 +46,7 @@ module LogTrend
43
46
  @graphs << graph
44
47
  end
45
48
 
49
+ # This is the preferred entry point.
46
50
  def self.run(logfile, &block)
47
51
  throw "D'oh! No block." unless block_given?
48
52
  l = Base.new
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logtrend
3
3
  version: !ruby/object:Gem::Version
4
- hash: 40202410183933
4
+ hash: 40202410204053
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 8
9
- - 20101205091937
10
- version: 0.8.20101205091937
8
+ - 9
9
+ - 20101205102039
10
+ version: 0.9.20101205102039
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Gorsuch
@@ -71,7 +71,6 @@ extra_rdoc_files: []
71
71
  files:
72
72
  - lib/logtrend.rb
73
73
  - samples/example.rb
74
- - samples/test.log
75
74
  has_rdoc: true
76
75
  homepage: https://github.com/gorsuch/logtrend
77
76
  licenses: []
data/samples/test.log DELETED
@@ -1,42 +0,0 @@
1
- test
2
- test
3
- test
4
- test
5
- test
6
- test
7
- test
8
- test
9
- test
10
- test
11
- test
12
- test
13
- test
14
- test
15
- fogbugz.com
16
- fogbugz.com
17
- fogbugz.com
18
- fogbugz.com
19
- kilnhg.com
20
- test
21
- test
22
- test
23
- test
24
- test
25
- test
26
- test
27
- test
28
- test
29
- test
30
- test
31
- test
32
- test
33
- test
34
- test
35
- test
36
- test
37
- test
38
- test
39
- test
40
- test
41
- 10
42
- 100