skinny_jeans 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/skinny_jeans/log_parser.rb +7 -4
- data/skinny_jeans.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.1
|
@@ -23,7 +23,7 @@ module SkinnyJeans
|
|
23
23
|
end
|
24
24
|
|
25
25
|
|
26
|
-
def execute
|
26
|
+
def execute(options = {})
|
27
27
|
|
28
28
|
lines_parsed = 0
|
29
29
|
last_line_parsed, last_pageview_at, lineno_of_last_line_parsed = [nil,nil,nil]
|
@@ -133,9 +133,12 @@ puts("total records in DB: #{Pageview.count}
|
|
133
133
|
lines parsed this round: #{lines_parsed}
|
134
134
|
lines persisted this round:#{persisted}
|
135
135
|
total SkinnyJeans executions since inception: #{Update.count}")
|
136
|
-
|
137
|
-
|
138
|
-
puts("vacuuming
|
136
|
+
|
137
|
+
if options[:vacuum]
|
138
|
+
puts("vacuuming DB")
|
139
|
+
SkinnyJeans::SkinnyJeanDb.connection.execute("VACUUM")
|
140
|
+
puts("vacuuming complete")
|
141
|
+
end
|
139
142
|
|
140
143
|
# i dont think we need to keep these now that we've successfully persisted
|
141
144
|
@hash_of_dates = nil
|
data/skinny_jeans.gemspec
CHANGED