require 'hashie' require 'faraday' require 'multi_json' require 'oauth2' require 'faraday_middleware' directory = File.expand_path(File.dirname(__FILE__)) Hash.send :include, Hashie::HashExtensions module Gowalla VERSION = "0.2.1".freeze # config/initializers/gowalla.rb (for instance) # # Gowalla.configure do |config| # config.api_key = 'api_key' # config.username = 'username' # config.password = 'password' # end # # elsewhere # # client = Gowalla::Client.new def self.configure yield self true end class << self attr_accessor :api_key attr_accessor :username attr_accessor :password attr_accessor :api_secret end end require File.join(directory, 'gowalla', 'client')