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 CHANGED
@@ -1 +1 @@
1
- 0.9.0
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
- puts("vacuuming DB")
137
- SkinnyJeans::SkinnyJeanDb.connection.execute("VACUUM")
138
- puts("vacuuming complete")
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{skinny_jeans}
8
- s.version = "0.9.0"
8
+ s.version = "0.9.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jonathan Otto"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 0
9
- version: 0.9.0
8
+ - 1
9
+ version: 0.9.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jonathan Otto