kfaustino/binged — pull request #2 by paulspringett (2011-12-01 17:48:30+00:00)
Title: Fix for undefined method `to_params' for Hash

Running Ruby 1.9.3 with Rails 3.1.3, the following exception occurs:

> binged = Binged::Client.new(:api_key => KEY)
=> #
> binged.image.containing('Yukihiro Matsumoto').portrait.wide.each {|image| pp image}
NoMethodError: undefined method `to_params' for #
from /Users/paul/.rvm/gems/ruby-1.9.3-p0/gems/binged-0.3.0/lib/binged/search/base.rb:57:in `perform'

I couldn't find where `to_params` was defined - a bit of googling suggested it was from an old version of Active Support? I've added a dependency for activesupport >= 3.0.0 and fixed the `to_params` method call to the new `to_param` version.

Also fixed a Ruby 1.9 string encoding mismatch issue with an ellipsis char.