Permalink
Browse files

Fix bug with some api calls.

  • Loading branch information...
1 parent 82c8d59 commit cff17b29b6fa3523ad98f3debd7d3cac2ae88f10 @seven1m committed Oct 21, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 flickr_party.gemspec
  2. +1 −1 lib/flickr_party.rb
View
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = "flickr_party"
- s.version = "0.2.0"
+ s.version = "0.2.1"
s.author = "Tim Morgan"
s.email = "tim@timmorgan.org"
s.homepage = "http://github.com/seven1m/flickr_party"
View
@@ -23,7 +23,7 @@ def initialize(api_key, secret, method=nil, token=nil)
end
def method_missing(method_name, args={}, test=nil)
- if @method.to_s.count('.') == 2 or method_name =~ /[A-Z]/ or THIRD_LEVEL_METHODS.include?(method_name.to_s)
+ if @method.to_s.count('.') == 2 or method_name.to_s =~ /[A-Z]/ or THIRD_LEVEL_METHODS.include?(method_name.to_s)
args = self.class.stringify_hash_keys(args)
args.merge!('api_key' => @api_key, 'method' => @method + '.' + method_name.to_s, 'format' => 'rest')
if @token

0 comments on commit cff17b2

Please sign in to comment.