ktlacaelel-plog 0.1.1 → 0.2.0
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.rdoc +39 -3
- data/VERSION +1 -1
- data/lib/cli.rb +2 -2
- data/plog.gemspec +1 -1
- metadata +3 -2
data/README.rdoc
CHANGED
@@ -8,6 +8,28 @@ by Kazuyoshi Tlacaelel.
|
|
8
8
|
|
9
9
|
Copyright (c) 2009 Kazuyoshi Tlacaelel. See LICENSE for details.
|
10
10
|
|
11
|
+
== COMMING SOON!
|
12
|
+
|
13
|
+
Comming soon to a terminal near you!
|
14
|
+
|
15
|
+
* sorting:
|
16
|
+
* more statistics
|
17
|
+
(hits, number of hits per response type like 200, 302 etc)
|
18
|
+
|
19
|
+
May be... but don't expect any of these to become a reality
|
20
|
+
I love programming and tons of ideas flow in my head with posibilities
|
21
|
+
but I do not have the time! :(
|
22
|
+
|
23
|
+
* Different export drivers?
|
24
|
+
(should be another plugin)
|
25
|
+
|
26
|
+
* cli options abstracted into classes so they can be aggregated with ease
|
27
|
+
(this might be cool)
|
28
|
+
|
29
|
+
* google charts integration
|
30
|
+
(is too much for this api)
|
31
|
+
(may be as a different plugin)
|
32
|
+
|
11
33
|
== DEPENDANCIES:
|
12
34
|
|
13
35
|
* FileUtils
|
@@ -17,6 +39,23 @@ Copyright (c) 2009 Kazuyoshi Tlacaelel. See LICENSE for details.
|
|
17
39
|
* URI
|
18
40
|
* rubygems 1.3.3
|
19
41
|
|
42
|
+
== FEATURES:
|
43
|
+
|
44
|
+
Compiles statistics in a easy to read manner
|
45
|
+
|
46
|
+
|
47
|
+
Hits Time Avg-Time DbTime Avg-DB View Avg-View Url
|
48
|
+
93 18057 0.194 5775 0.062 10437 0.112 /users/[0-9]
|
49
|
+
12 277 0.023 193 0.016 0 0 /user_themes/update
|
50
|
+
1 290 0.29 107 0.107 175 0.175 /posts
|
51
|
+
3 99 0.033 57 0.019 0 0 /comments
|
52
|
+
82 11922 0.145 5969 0.072 4979 0.06 /user/[0-9]/comments
|
53
|
+
1868 1301006 0.696 623246 0.333 491474 0.263 /user/[0-9]/posts?
|
54
|
+
1 72 0.072 39 0.039 0 0 /confirm_destroy_account/[0-9]?
|
55
|
+
797 971882 1.219 414829 0.52 423130 0.53 /user/[0-9]/articles/friends?
|
56
|
+
122 20830 0.17 7081 0.058 10291 0.084 /user/[0-9]/topics?
|
57
|
+
|
58
|
+
|
20
59
|
== KNOWN BUGS:
|
21
60
|
none, so far..
|
22
61
|
|
@@ -50,9 +89,6 @@ meaning that new compilations data will merge with the existing one.
|
|
50
89
|
all data in these "object-files" is read and summarized into a
|
51
90
|
statistics.txt file found inside of the plog directory.
|
52
91
|
|
53
|
-
== SORTING:
|
54
|
-
Comming soon!
|
55
|
-
|
56
92
|
== TESTS:
|
57
93
|
|
58
94
|
* 70% tested, with shoulda
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/lib/cli.rb
CHANGED
@@ -4,7 +4,7 @@ module Plog
|
|
4
4
|
|
5
5
|
attr_reader :source_directory, :log_files
|
6
6
|
|
7
|
-
|
7
|
+
STATS_FILE = 'statistics.txt'
|
8
8
|
|
9
9
|
# ==========================================================================
|
10
10
|
# CLIENT INTERFACE
|
@@ -58,7 +58,7 @@ module Plog
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def statistic_file_path
|
61
|
-
File.join(@target_directory,
|
61
|
+
File.join(@target_directory, STATS_FILE)
|
62
62
|
end
|
63
63
|
|
64
64
|
def destroy_old_log_file
|
data/plog.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ktlacaelel-plog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuyoshi Tlacaelel
|
@@ -55,6 +55,7 @@ files:
|
|
55
55
|
- test/url_test.rb
|
56
56
|
has_rdoc: false
|
57
57
|
homepage: http://github.com/ktlacaelel/plog
|
58
|
+
licenses:
|
58
59
|
post_install_message:
|
59
60
|
rdoc_options:
|
60
61
|
- --charset=UTF-8
|
@@ -75,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
76
|
requirements: []
|
76
77
|
|
77
78
|
rubyforge_project:
|
78
|
-
rubygems_version: 1.
|
79
|
+
rubygems_version: 1.3.5
|
79
80
|
signing_key:
|
80
81
|
specification_version: 3
|
81
82
|
summary: Plog - Ruby on Rails production log statistic generator. by Kazuyoshi Tlacaelel
|