samsymons / RedditKit.rb

[Deprecated] A Ruby wrapper for the reddit API
https://redditkit.com/
MIT License
152 stars 26 forks source link

can't pass sort to search #12

Closed jtoy closed 10 years ago

jtoy commented 10 years ago

most of the options don't work. reddit allows sort: http://www.reddit.com/dev/api#GET_search

BukhariH commented 10 years ago

@jtoy I've added :sort.

If you're in a rush you can add:

gem "redditkit" , github: "BukhariH/RedditKit.rb"

To your Gemfile in order to use it like:

 results = RedditKit.search 'ruby',  :sort => "new"

Hope that helps!

BukhariH commented 10 years ago

Didn't read this fully!

@jtoy wanted all options added. I went ahead a quickly added them though I think @samsymons will need add the documentation properly!

jtoy commented 10 years ago

great! if a new version is going up on ruby gems in the next day, I will just wait.