lib/gowalla.rb in gowalla-0.2.1 vs lib/gowalla.rb in gowalla-0.3.0
- old
+ new
@@ -8,11 +8,11 @@
Hash.send :include, Hashie::HashExtensions
module Gowalla
- VERSION = "0.2.1".freeze
+ VERSION = "0.3.0".freeze
# config/initializers/gowalla.rb (for instance)
#
# Gowalla.configure do |config|
# config.api_key = 'api_key'
@@ -31,9 +31,14 @@
class << self
attr_accessor :api_key
attr_accessor :username
attr_accessor :password
attr_accessor :api_secret
+ attr_accessor :test_mode
+
+ def test_mode?
+ !!self.test_mode
+ end
end
end
require File.join(directory, 'gowalla', 'client')