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
-
.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.
-
.on_gem_received ⇒ Object
Returns the value of attribute on_gem_received.
-
.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.
-
.rubygems_proxy_merge_strategy ⇒ Object
Returns the value of attribute rubygems_proxy_merge_strategy.
-
.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.
40 41 42 |
# File 'lib/geminabox.rb', line 40 def allow_delete @allow_delete end |
.allow_remote_failure ⇒ Object
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_replace ⇒ Object
Returns the value of attribute allow_replace.
40 41 42 |
# File 'lib/geminabox.rb', line 40 def allow_replace @allow_replace end |
.allow_upload ⇒ Object
Returns the value of attribute allow_upload.
40 41 42 |
# File 'lib/geminabox.rb', line 40 def allow_upload @allow_upload end |
.build_legacy ⇒ Object
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_url ⇒ Object
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 |
.data ⇒ Object
Returns the value of attribute data.
40 41 42 |
# File 'lib/geminabox.rb', line 40 def data @data end |
.gem_permissions ⇒ Object
Returns the value of attribute gem_permissions.
40 41 42 |
# File 'lib/geminabox.rb', line 40 def @gem_permissions end |
.http_adapter ⇒ Object
Returns the value of attribute http_adapter.
40 41 42 |
# File 'lib/geminabox.rb', line 40 def http_adapter @http_adapter end |
.incremental_updates ⇒ Object
Returns the value of attribute incremental_updates.
40 41 42 |
# File 'lib/geminabox.rb', line 40 def incremental_updates @incremental_updates end |
.lockfile ⇒ Object
Returns the value of attribute lockfile.
40 41 42 |
# File 'lib/geminabox.rb', line 40 def lockfile @lockfile end |
.on_gem_received ⇒ Object
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_folder ⇒ Object
Returns the value of attribute public_folder.
40 41 42 |
# File 'lib/geminabox.rb', line 40 def public_folder @public_folder end |
.retry_interval ⇒ Object
Returns the value of attribute retry_interval.
40 41 42 |
# File 'lib/geminabox.rb', line 40 def retry_interval @retry_interval end |
.ruby_gems_url ⇒ Object
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_proxy ⇒ Object
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_strategy ⇒ Object
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 |
.views ⇒ Object
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 |
.settings ⇒ Object
75 76 77 |
# File 'lib/geminabox.rb', line 75 def settings Server.settings end |