Permalink
Browse files

Fixes

  • Loading branch information...
1 parent 290dccb commit a6a0ef28b045b34d375c669492d2a0e122462eee @joost joost committed Oct 27, 2011
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/sayso.rb
  2. +1 −1 sayso-api-client.gemspec
View
@@ -17,7 +17,7 @@
class Sayso
attr_accessor :version, :consumer_key, :consumer_secret, :base_url, :callback, :get_params
- attr_reader :access_token, :request_token, :response
+ attr_reader :access_token, :request_token, :response, :consumer
# Example:
# Sayso.new(:consumer_key => 'your_key', :consumer_secret => 'your_secret', :language => 'nl-NL')
@@ -37,7 +37,7 @@ def initialize(options = {})
end
def initialize_access_token(force = false)
- return @access_token if force || @access_token.nil?
+ return @access_token if force || !@access_token.nil?
@consumer = OAuth::Consumer.new(self.consumer_key, self.consumer_secret, {
:site => self.base_url,
:request_token_path => "/api#{self.version}/oauth/request_token",
View
@@ -2,7 +2,7 @@
Gem::Specification.new do |spec|
spec.name = %q{sayso-api-client}
- spec.version = '0.1.1'
+ spec.version = '0.1.2'
spec.platform = Gem::Platform::RUBY
spec.description = spec.summary = 'Ruby gem to use the SaySo API (v1).'
spec.authors = ['Joost Hietbrink']

0 comments on commit a6a0ef2

Please sign in to comment.