Sha256: f592703818e5a1307cec745b1093a8effc8fae7584a3912b62c1f9010e053088

Contents?: true

Size: 1.19 KB

Versions: 4

Compression:

Stored size: 1.19 KB

Contents

gem "netrc",              "~> 0.7.7"
gem "multi_json",         "~> 1.0"
gem "faraday",            ">= 0.7.4", "< 0.10.0.pre"

require 'cgi'
require 'uri'
require 'netrc'
require 'multi_json'
require 'faraday'
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/middleware'
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

4 entries across 4 versions & 1 rubygems

Version Path
gemfury-0.4.24.beta5 lib/gemfury.rb
gemfury-0.4.24.beta4 lib/gemfury.rb
gemfury-0.4.24.beta3 lib/gemfury.rb
gemfury-0.4.24.beta1 lib/gemfury.rb