Hn
A tiny gem to fetch Hacker News entries
Installation
Add this line to your application's Gemfile:
gem 'hn'
And then execute:
$ bundle
Issues
Recently, Hacker News has started enforcing HTTPS connections. If you're having problems accessing Hacker News via this gem, read these instructions for specific fixes.
Usage
require 'hn'
# return up to 30 homepage entries
HackerNews::Engine.homepage
# return up to 30 best entries
HackerNews::Engine.best
# return up to 30 newest entries
HackerNews::Engine.newest
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Contributors
Thanks following wonderful people for contributing to this project: