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: Indexer, Proxy, RubygemsDependency Classes: DiskCache, Error, GemListMerge, GemStore, GemStoreError, GemVersion, GemVersionCollection, Hostess, HttpAdapter, HttpAdapterConfigError, HttpClientAdapter, IncomingGem, Server, TemplateFaradayAdapter
Constant Summary collapse
- VERSION =
'0.13.9'
Class Attribute Summary collapse
-
.allow_delete ⇒ Object
Returns the value of attribute allow_delete.
-
.allow_remote_failure ⇒ Object
Returns the value of attribute allow_remote_failure.
-
.allow_replace ⇒ Object
Returns the value of attribute allow_replace.
-
.allow_upload ⇒ Object
Returns the value of attribute allow_upload.
-
.build_legacy ⇒ Object
Returns the value of attribute build_legacy.
-
.bundler_ruby_gems_url ⇒ Object
Returns the value of attribute bundler_ruby_gems_url.
-
.data ⇒ Object
Returns the value of attribute data.
-
.gem_permissions ⇒ Object
Returns the value of attribute gem_permissions.
-
.http_adapter ⇒ Object
Returns the value of attribute http_adapter.
-
.incremental_updates ⇒ Object
Returns the value of attribute incremental_updates.
-
.lockfile ⇒ Object
Returns the value of attribute lockfile.
-
.public_folder ⇒ Object
Returns the value of attribute public_folder.
-
.retry_interval ⇒ Object
Returns the value of attribute retry_interval.
-
.ruby_gems_url ⇒ Object
Returns the value of attribute ruby_gems_url.
-
.rubygems_proxy ⇒ Object
Returns the value of attribute rubygems_proxy.
-
.views ⇒ Object
Returns the value of attribute views.
Class Method Summary collapse
- .call(env) ⇒ Object
- .geminabox_path(file) ⇒ Object
- .set_defaults(defaults) ⇒ Object
- .settings ⇒ Object
Class Attribute Details
.allow_delete ⇒ Object
Returns the value of attribute allow_delete.
39 40 41 |
# File 'lib/geminabox.rb', line 39 def allow_delete @allow_delete end |
.allow_remote_failure ⇒ Object
Returns the value of attribute allow_remote_failure.
39 40 41 |
# File 'lib/geminabox.rb', line 39 def allow_remote_failure @allow_remote_failure end |
.allow_replace ⇒ Object
Returns the value of attribute allow_replace.
39 40 41 |
# File 'lib/geminabox.rb', line 39 def allow_replace @allow_replace end |
.allow_upload ⇒ Object
Returns the value of attribute allow_upload.
39 40 41 |
# File 'lib/geminabox.rb', line 39 def allow_upload @allow_upload end |
.build_legacy ⇒ Object
Returns the value of attribute build_legacy.
39 40 41 |
# File 'lib/geminabox.rb', line 39 def build_legacy @build_legacy end |
.bundler_ruby_gems_url ⇒ Object
Returns the value of attribute bundler_ruby_gems_url.
39 40 41 |
# File 'lib/geminabox.rb', line 39 def bundler_ruby_gems_url @bundler_ruby_gems_url end |
.data ⇒ Object
Returns the value of attribute data.
39 40 41 |
# File 'lib/geminabox.rb', line 39 def data @data end |
.gem_permissions ⇒ Object
Returns the value of attribute gem_permissions.
39 40 41 |
# File 'lib/geminabox.rb', line 39 def @gem_permissions end |
.http_adapter ⇒ Object
Returns the value of attribute http_adapter.
39 40 41 |
# File 'lib/geminabox.rb', line 39 def http_adapter @http_adapter end |
.incremental_updates ⇒ Object
Returns the value of attribute incremental_updates.
39 40 41 |
# File 'lib/geminabox.rb', line 39 def incremental_updates @incremental_updates end |
.lockfile ⇒ Object
Returns the value of attribute lockfile.
39 40 41 |
# File 'lib/geminabox.rb', line 39 def lockfile @lockfile end |
.public_folder ⇒ Object
Returns the value of attribute public_folder.
39 40 41 |
# File 'lib/geminabox.rb', line 39 def public_folder @public_folder end |
.retry_interval ⇒ Object
Returns the value of attribute retry_interval.
39 40 41 |
# File 'lib/geminabox.rb', line 39 def retry_interval @retry_interval end |
.ruby_gems_url ⇒ Object
Returns the value of attribute ruby_gems_url.
39 40 41 |
# File 'lib/geminabox.rb', line 39 def ruby_gems_url @ruby_gems_url end |
.rubygems_proxy ⇒ Object
Returns the value of attribute rubygems_proxy.
39 40 41 |
# File 'lib/geminabox.rb', line 39 def rubygems_proxy @rubygems_proxy end |
.views ⇒ Object
Returns the value of attribute views.
39 40 41 |
# File 'lib/geminabox.rb', line 39 def views @views end |
Class Method Details
.call(env) ⇒ Object
69 70 71 |
# File 'lib/geminabox.rb', line 69 def call(env) Server.call env end |
.geminabox_path(file) ⇒ Object
22 23 24 |
# File 'lib/geminabox.rb', line 22 def self.geminabox_path(file) File.join File.dirname(__FILE__), 'geminabox', file end |
.set_defaults(defaults) ⇒ Object
58 59 60 61 62 63 |
# File 'lib/geminabox.rb', line 58 def set_defaults(defaults) defaults.each do |method, default| variable = "@#{method}" instance_variable_set(variable, default) unless instance_variable_get(variable) end end |
.settings ⇒ Object
65 66 67 |
# File 'lib/geminabox.rb', line 65 def settings Server.settings end |