Module: Geminabox

Defined in:
lib/geminabox.rb,
lib/geminabox/proxy.rb,
lib/geminabox/server.rb,
lib/geminabox/hostess.rb,
lib/geminabox/version.rb,
lib/geminabox/gem_store.rb,
lib/geminabox/disk_cache.rb,
lib/geminabox/gem_version.rb,
lib/geminabox/incoming_gem.rb,
lib/geminabox/proxy/copier.rb,
lib/geminabox/proxy/hostess.rb,
lib/geminabox/proxy/splicer.rb,
lib/geminabox/gem_list_merge.rb,
lib/geminabox/gem_store_error.rb,
lib/geminabox/proxy/file_handler.rb,
lib/geminabox/rubygems_dependency.rb,
lib/geminabox/gem_version_collection.rb

Defined Under Namespace

Modules: Indexer, Proxy, RubygemsDependency Classes: DiskCache, GemListMerge, GemStore, GemStoreError, GemVersion, GemVersionCollection, Hostess, IncomingGem, Server

Constant Summary collapse

VERSION =
'0.12.2.4'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.allow_deleteObject

Returns the value of attribute allow_delete.



34
35
36
# File 'lib/geminabox.rb', line 34

def allow_delete
  @allow_delete
end

.allow_replaceObject

Returns the value of attribute allow_replace.



34
35
36
# File 'lib/geminabox.rb', line 34

def allow_replace
  @allow_replace
end

.build_legacyObject

Returns the value of attribute build_legacy.



34
35
36
# File 'lib/geminabox.rb', line 34

def build_legacy
  @build_legacy
end

.dataObject

Returns the value of attribute data.



34
35
36
# File 'lib/geminabox.rb', line 34

def data
  @data
end

.gem_permissionsObject

Returns the value of attribute gem_permissions.



34
35
36
# File 'lib/geminabox.rb', line 34

def gem_permissions
  @gem_permissions
end

.incremental_updatesObject

Returns the value of attribute incremental_updates.



34
35
36
# File 'lib/geminabox.rb', line 34

def incremental_updates
  @incremental_updates
end

.public_folderObject

Returns the value of attribute public_folder.



34
35
36
# File 'lib/geminabox.rb', line 34

def public_folder
  @public_folder
end

.rubygems_proxyObject

Returns the value of attribute rubygems_proxy.



34
35
36
# File 'lib/geminabox.rb', line 34

def rubygems_proxy
  @rubygems_proxy
end

.viewsObject

Returns the value of attribute views.



34
35
36
# File 'lib/geminabox.rb', line 34

def views
  @views
end

Class Method Details

.call(env) ⇒ Object



57
58
59
# File 'lib/geminabox.rb', line 57

def call(env)
  Server.call env
end

.geminabox_path(file) ⇒ Object



17
18
19
# File 'lib/geminabox.rb', line 17

def self.geminabox_path(file)
  File.join File.dirname(__FILE__), 'geminabox', file
end

.set_defaults(defaults) ⇒ Object



46
47
48
49
50
51
# File 'lib/geminabox.rb', line 46

def set_defaults(defaults)
  defaults.each do |method, default|
    variable = "@#{method}"
    instance_variable_set(variable, default) unless instance_variable_get(variable)
  end
end

.settingsObject



53
54
55
# File 'lib/geminabox.rb', line 53

def settings
  Server.settings
end