Class: Geminabox

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/geminabox.rb

Defined Under Namespace

Modules: Indexer Classes: DiskCache, GemVersion, GemVersionCollection, IncomingGem

Class Method Summary collapse

Class Method Details

.disallow_replace?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/geminabox.rb', line 25

def disallow_replace?
  ! allow_replace
end

.fixup_bundler_rubygems!Object



29
30
31
32
33
# File 'lib/geminabox.rb', line 29

def fixup_bundler_rubygems!
  return if @post_reset_hook_applied
  Gem.post_reset{ Gem::Specification.all = nil } if defined? Bundler and Gem.respond_to? :post_reset
  @post_reset_hook_applied = true
end