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
-
.allow_delete ⇒ Object
Returns the value of attribute allow_delete.
-
.allow_replace ⇒ Object
Returns the value of attribute allow_replace.
-
.build_legacy ⇒ Object
Returns the value of attribute build_legacy.
-
.data ⇒ Object
Returns the value of attribute data.
-
.gem_permissions ⇒ Object
Returns the value of attribute gem_permissions.
-
.incremental_updates ⇒ Object
Returns the value of attribute incremental_updates.
-
.public_folder ⇒ Object
Returns the value of attribute public_folder.
-
.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.
34 35 36 |
# File 'lib/geminabox.rb', line 34 def allow_delete @allow_delete end |
.allow_replace ⇒ Object
Returns the value of attribute allow_replace.
34 35 36 |
# File 'lib/geminabox.rb', line 34 def allow_replace @allow_replace end |
.build_legacy ⇒ Object
Returns the value of attribute build_legacy.
34 35 36 |
# File 'lib/geminabox.rb', line 34 def build_legacy @build_legacy end |
.data ⇒ Object
Returns the value of attribute data.
34 35 36 |
# File 'lib/geminabox.rb', line 34 def data @data end |
.gem_permissions ⇒ Object
Returns the value of attribute gem_permissions.
34 35 36 |
# File 'lib/geminabox.rb', line 34 def @gem_permissions end |
.incremental_updates ⇒ Object
Returns the value of attribute incremental_updates.
34 35 36 |
# File 'lib/geminabox.rb', line 34 def incremental_updates @incremental_updates end |
.public_folder ⇒ Object
Returns the value of attribute public_folder.
34 35 36 |
# File 'lib/geminabox.rb', line 34 def public_folder @public_folder end |
.rubygems_proxy ⇒ Object
Returns the value of attribute rubygems_proxy.
34 35 36 |
# File 'lib/geminabox.rb', line 34 def rubygems_proxy @rubygems_proxy end |
.views ⇒ Object
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 |
.settings ⇒ Object
53 54 55 |
# File 'lib/geminabox.rb', line 53 def settings Server.settings end |