Sha256: eda90afb4e55378b0eccec7c8c484a49affb4205f6c1f86147fc61e6d122bf3b

Contents?: true

Size: 1 KB

Versions: 9

Compression:

Stored size: 1 KB

Contents

require 'multi_json'
require 'faraday_middleware'
require 'faraday/request/multipart_with_file'

require 'gemfury/version'
require 'gemfury/const'
require 'gemfury/error'
require 'gemfury/platform'
require 'gemfury/configuration'

require 'gemfury/client/filters'
require 'gemfury/client'

module Gemfury
  extend Configuration
  class << self
    # Alias for Gemfury::Client.new
    #
    # @return [Gemfury::Client]
    def new(options={})
      Gemfury::Client.new(options)
    end

    # Delegate to Twitter::Client
    def method_missing(method, *args, &block)
      return super unless new.respond_to?(method)
      new.send(method, *args, &block)
    end

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

class Hash
  # Access nested hashes as a period-separated path
  def path(path, separator = '.')
    path.split(separator).inject(self) do |hash, part|
      hash.is_a?(Hash) ? hash[part] : nil
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gemfury-0.4.0 lib/gemfury.rb
gemfury-0.4.0.beta2 lib/gemfury.rb
gemfury-0.4.0.beta1 lib/gemfury.rb
gemfury-0.3.2 lib/gemfury.rb
gemfury-0.3.1 lib/gemfury.rb
gemfury-0.3.0 lib/gemfury.rb
gemfury-0.2.0 lib/gemfury.rb
gemfury-0.2.0.beta3 lib/gemfury.rb
gemfury-0.2.0.beta2 lib/gemfury.rb