skinny_jeans 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +13 -1
- data/VERSION +1 -1
- data/skinny_jeans.gemspec +11 -13
- data/test/skinny_jeans_test.rb +1 -4
- metadata +4 -11
- data/.gitignore +0 -5
data/README.rdoc
CHANGED
@@ -47,4 +47,16 @@ http://img696.imageshack.us/img696/75/skinnys3.jpg
|
|
47
47
|
* creates a temp copy of the log file before parsing
|
48
48
|
* currently requires each line to be unique
|
49
49
|
* this could be a problem if a single client manages to hit the same page more than once in less than 1 second.
|
50
|
-
* this is only a problem if the last line parsed is one of the pages that was hit by the same client more than once in less than one second
|
50
|
+
* this is only a problem if the last line parsed is one of the pages that was hit by the same client more than once in less than one second
|
51
|
+
|
52
|
+
== LICENSE
|
53
|
+
|
54
|
+
(The MIT License)
|
55
|
+
|
56
|
+
Copyright © 2010 Jonathan Otto
|
57
|
+
|
58
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
59
|
+
|
60
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
61
|
+
|
62
|
+
THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.1
|
data/skinny_jeans.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
@@ -14,27 +14,25 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.email = %q{jonathan.otto@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"README.rdoc",
|
17
|
-
|
17
|
+
"TODO"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
|
-
".
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
"skinny_jeans.gemspec"
|
20
|
+
"README.rdoc",
|
21
|
+
"Rakefile",
|
22
|
+
"TODO",
|
23
|
+
"VERSION",
|
24
|
+
"lib/skinny_jeans.rb",
|
25
|
+
"lib/skinny_jeans/log_parser.rb",
|
26
|
+
"lib/skinny_jeans/string_parser.rb",
|
27
|
+
"skinny_jeans.gemspec"
|
29
28
|
]
|
30
29
|
s.homepage = %q{http://github.com/jotto/skinny_jeans}
|
31
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
32
30
|
s.require_paths = ["lib"]
|
33
31
|
s.rubygems_version = %q{1.3.7}
|
34
32
|
s.summary = %q{Fast webserver log parser for persisting daily pageviews per path to sqlite}
|
35
33
|
s.test_files = [
|
36
34
|
"test/skinny_jeans_string_parser_test.rb",
|
37
|
-
|
35
|
+
"test/skinny_jeans_test.rb"
|
38
36
|
]
|
39
37
|
|
40
38
|
if s.respond_to? :specification_version then
|
data/test/skinny_jeans_test.rb
CHANGED
@@ -8,10 +8,7 @@ class SkinnyJeansTest < Test::Unit::TestCase
|
|
8
8
|
|
9
9
|
def test_will_work
|
10
10
|
db_path = File.expand_path(File.dirname(__FILE__) + "/more_sample_data/skinny_jeans_deal_show.db")
|
11
|
-
|
12
|
-
# _logfile_path = File.expand_path(File.dirname(__FILE__) + "/more_sample_data/broken_access_big.log")
|
13
|
-
_logfile_path = File.expand_path("/Users/jonathanotto/dznbak/access.log.1")
|
14
|
-
|
11
|
+
_logfile_path = File.expand_path(File.dirname(__FILE__) + "/more_sample_data/broken_access_big.log")
|
15
12
|
puts db_path.inspect
|
16
13
|
sj=SkinnyJeans::LogParser.execute(_logfile_path, sqlite_skinny_jeans = db_path, path_regexp = /\s\/deals\/(.*)\sHTTP/, date_regexp = /\[(\d.*\d)\]/)
|
17
14
|
end
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skinny_jeans
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 3
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
8
|
+
- 1
|
9
|
+
version: 0.7.1
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Jonathan Otto
|
@@ -26,7 +25,6 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 23
|
30
28
|
segments:
|
31
29
|
- 1
|
32
30
|
- 2
|
@@ -42,7 +40,6 @@ dependencies:
|
|
42
40
|
requirements:
|
43
41
|
- - ">="
|
44
42
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 19
|
46
43
|
segments:
|
47
44
|
- 2
|
48
45
|
- 3
|
@@ -58,7 +55,6 @@ dependencies:
|
|
58
55
|
requirements:
|
59
56
|
- - ">="
|
60
57
|
- !ruby/object:Gem::Version
|
61
|
-
hash: 23
|
62
58
|
segments:
|
63
59
|
- 1
|
64
60
|
- 0
|
@@ -76,7 +72,6 @@ extra_rdoc_files:
|
|
76
72
|
- README.rdoc
|
77
73
|
- TODO
|
78
74
|
files:
|
79
|
-
- .gitignore
|
80
75
|
- README.rdoc
|
81
76
|
- Rakefile
|
82
77
|
- TODO
|
@@ -92,8 +87,8 @@ homepage: http://github.com/jotto/skinny_jeans
|
|
92
87
|
licenses: []
|
93
88
|
|
94
89
|
post_install_message:
|
95
|
-
rdoc_options:
|
96
|
-
|
90
|
+
rdoc_options: []
|
91
|
+
|
97
92
|
require_paths:
|
98
93
|
- lib
|
99
94
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -101,7 +96,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
101
96
|
requirements:
|
102
97
|
- - ">="
|
103
98
|
- !ruby/object:Gem::Version
|
104
|
-
hash: 3
|
105
99
|
segments:
|
106
100
|
- 0
|
107
101
|
version: "0"
|
@@ -110,7 +104,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
104
|
requirements:
|
111
105
|
- - ">="
|
112
106
|
- !ruby/object:Gem::Version
|
113
|
-
hash: 3
|
114
107
|
segments:
|
115
108
|
- 0
|
116
109
|
version: "0"
|