lib/gowalla.rb in gowalla-0.3.0 vs lib/gowalla.rb in gowalla-0.4.0

- old
+ new

@@ -7,39 +7,43 @@ directory = File.expand_path(File.dirname(__FILE__)) Hash.send :include, Hashie::HashExtensions module Gowalla - - VERSION = "0.3.0".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 attr_accessor :test_mode - + + # 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 configure + yield self + true + end + def test_mode? !!self.test_mode end end - -end -require File.join(directory, 'gowalla', 'client') + require 'gowalla/spots' + require 'gowalla/items' + require 'gowalla/trips' + require 'gowalla/checkins' + require 'gowalla/flags' + require 'gowalla/users' + require 'gowalla/client' + +end