Sha256: cb51ca724af6d63a7adf59c644b8cb99cfd4ae54e06da7187aefecb2d78fd384

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.9.0", "< 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.5.0.beta1 lib/gemfury.rb
gemfury-0.4.26 lib/gemfury.rb
gemfury-0.4.26.beta1 lib/gemfury.rb
gemfury-0.4.25 lib/gemfury.rb