hayesdavis / grackle

Lightweight Ruby library for the Twitter API that goes with the flow.
228 stars 36 forks source link

Handle use of convenience methods for dates #7

Open LeeMallabone opened 15 years ago

LeeMallabone commented 15 years ago

When I'm calling the search API with grackle (eg. from a rails app), I should be able to do this: results = client.search?(:from => 'Ben_Hall', :since => 1.day.ago, :rpp => 20) At the moment I am forced to do this: results = client.search?(:from => 'Ben_Hall', :since => 1.day.ago.to_s(:sane), :rpp => 20) having already added a "sane" date format to rails that uses "%Y-%m-%d"

Lee.