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/http_adapter.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,
lib/geminabox/http_adapter_config_error.rb,
lib/geminabox/http_adapter/http_client_adapter.rb,
lib/geminabox/http_adapter/template_faraday_adapter.rb

Defined Under Namespace

Modules: GemListMerge, Indexer, Proxy, RubygemsDependency Classes: DiskCache, Error, GemStore, GemStoreError, GemVersion, GemVersionCollection, Hostess, HttpAdapter, HttpAdapterConfigError, HttpClientAdapter, IncomingGem, Server, TemplateFaradayAdapter

Constant Summary collapse

VERSION =
'2.1.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.allow_deleteObject

Returns the value of attribute allow_delete.



40
41
42
# File 'lib/geminabox.rb', line 40

def allow_delete
  @allow_delete
end

.allow_remote_failureObject

Returns the value of attribute allow_remote_failure.



40
41
42
# File 'lib/geminabox.rb', line 40

def allow_remote_failure
  @allow_remote_failure
end

.allow_replaceObject

Returns the value of attribute allow_replace.



40
41
42
# File 'lib/geminabox.rb', line 40

def allow_replace
  @allow_replace
end

.allow_uploadObject

Returns the value of attribute allow_upload.



40
41
42
# File 'lib/geminabox.rb', line 40

def allow_upload
  @allow_upload
end

.build_legacyObject

Returns the value of attribute build_legacy.



60
61
62
# File 'lib/geminabox.rb', line 60

def build_legacy
  @build_legacy
end

.bundler_ruby_gems_urlObject

Returns the value of attribute bundler_ruby_gems_url.



40
41
42
# File 'lib/geminabox.rb', line 40

def bundler_ruby_gems_url
  @bundler_ruby_gems_url
end

.dataObject

Returns the value of attribute data.



40
41
42
# File 'lib/geminabox.rb', line 40

def data
  @data
end

.gem_permissionsObject

Returns the value of attribute gem_permissions.



40
41
42
# File 'lib/geminabox.rb', line 40

def gem_permissions
  @gem_permissions
end

.http_adapterObject

Returns the value of attribute http_adapter.



40
41
42
# File 'lib/geminabox.rb', line 40

def http_adapter
  @http_adapter
end

.incremental_updatesObject

Returns the value of attribute incremental_updates.



40
41
42
# File 'lib/geminabox.rb', line 40

def incremental_updates
  @incremental_updates
end

.lockfileObject

Returns the value of attribute lockfile.



40
41
42
# File 'lib/geminabox.rb', line 40

def lockfile
  @lockfile
end

.on_gem_receivedObject

Returns the value of attribute on_gem_received.



40
41
42
# File 'lib/geminabox.rb', line 40

def on_gem_received
  @on_gem_received
end

.public_folderObject

Returns the value of attribute public_folder.



40
41
42
# File 'lib/geminabox.rb', line 40

def public_folder
  @public_folder
end

.retry_intervalObject

Returns the value of attribute retry_interval.



40
41
42
# File 'lib/geminabox.rb', line 40

def retry_interval
  @retry_interval
end

.ruby_gems_urlObject

Returns the value of attribute ruby_gems_url.



40
41
42
# File 'lib/geminabox.rb', line 40

def ruby_gems_url
  @ruby_gems_url
end

.rubygems_proxyObject

Returns the value of attribute rubygems_proxy.



40
41
42
# File 'lib/geminabox.rb', line 40

def rubygems_proxy
  @rubygems_proxy
end

.rubygems_proxy_merge_strategyObject

Returns the value of attribute rubygems_proxy_merge_strategy.



40
41
42
# File 'lib/geminabox.rb', line 40

def rubygems_proxy_merge_strategy
  @rubygems_proxy_merge_strategy
end

.viewsObject

Returns the value of attribute views.



40
41
42
# File 'lib/geminabox.rb', line 40

def views
  @views
end

Class Method Details

.call(env) ⇒ Object



79
80
81
# File 'lib/geminabox.rb', line 79

def call(env)
  Server.call env
end

.geminabox_path(file) ⇒ Object



23
24
25
# File 'lib/geminabox.rb', line 23

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

.set_defaults(defaults) ⇒ Object



68
69
70
71
72
73
# File 'lib/geminabox.rb', line 68

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

.settingsObject



75
76
77
# File 'lib/geminabox.rb', line 75

def settings
  Server.settings
end