Skip to content

Commit

Permalink
Disable incremental updates by default for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlea committed Jan 30, 2012
1 parent d2c7fd8 commit b65c27d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
geminabox (0.5.1)
geminabox (0.5.2)
builder
sinatra

Expand Down
2 changes: 1 addition & 1 deletion geminabox.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'geminabox'
s.version = '0.5.1'
s.version = '0.5.2'
s.summary = 'Really simple rubygem hosting'
s.description = 'A sinatra based gem hosting app, with client side gem push style functionality.'
s.author = 'Tom Lea'
Expand Down
3 changes: 2 additions & 1 deletion lib/geminabox.rb
Expand Up @@ -13,6 +13,7 @@ class Geminabox < Sinatra::Base
set :public_folder, File.join(File.dirname(__FILE__), *%w[.. public])
set :data, File.join(File.dirname(__FILE__), *%w[.. data])
set :build_legacy, false
set :incremental_updates, false
set :views, File.join(File.dirname(__FILE__), *%w[.. views])
set :allow_replace, false
use Hostess
Expand Down Expand Up @@ -108,7 +109,7 @@ def error_response(code, message)

def reindex(force_rebuild = false)
Geminabox.fixup_bundler_rubygems!
force_rebuild = true if settings.build_legacy
force_rebuild = true unless settings.incremental_updates
if force_rebuild
indexer.generate_index
else
Expand Down

0 comments on commit b65c27d

Please sign in to comment.