Module: Gemfury

Extended by:
Configuration
Defined in:
lib/gemfury.rb,
lib/gemfury/const.rb,
lib/gemfury/error.rb,
lib/gemfury/client.rb,
lib/gemfury/version.rb,
lib/gemfury/platform.rb,
lib/gemfury/configuration.rb,
lib/gemfury/client/filters.rb,
lib/gemfury/client/middleware.rb

Defined Under Namespace

Modules: Command, Configuration, Const, Platform Classes: Client

Constant Summary collapse

Error =

Base Error class

Class.new(StandardError)
InvalidGemVersion =

The Gemfury gem version doesn't match the one on the server

Class.new(Error)
Unauthorized =

Client#user_api_key is not defined or Gemfury returns 401

Class.new(Error)
Forbidden =

Client is not allowed to perform this operation

Class.new(Error)
Conflict =

Account is locked for another operation

Class.new(Error)
NotFound =

Returned if something is not found

Class.new(Error)
CorruptGemFile =

Corrupt Gem File

Class.new(Error)
DupeVersion =

Version already exists

Class.new(Error)
TimeoutError =

TimeoutError for 503s

Class.new(Error)
VERSION =
'0.7.0'

Constants included from Configuration

Configuration::DEFAULT_ACCOUNT, Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_API_KEY, Configuration::DEFAULT_API_VERSION, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_GITPOINT, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Class Method Details

.method_missing(method, *args, &block) ⇒ Object

Delegate to Gemfury::Client


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

def method_missing(method, *args, &block)
  return super unless new.respond_to?(method)
  new.send(method, *args, &block)
end

.new(options = {}) ⇒ Gemfury::Client

Alias for Gemfury::Client.new


29
30
31
# File 'lib/gemfury.rb', line 29

def new(options={})
  Gemfury::Client.new(options)
end

.respond_to?(method, include_private = false) ⇒ Boolean


39
40
41
# File 'lib/gemfury.rb', line 39

def respond_to?(method, include_private = false)
  new.respond_to?(method, include_private) || super(method, include_private)
end