A dead simple API wrapper.
Add this line to your application's Gemfile:
gem 'blanket'
And then execute:
$ bundle
Or install it yourself as:
$ gem install blanket
github = Blanket.wrap("https://api.github.com")
# Get some user's info
github.users('inf0rmer').get
# => {
# "login": "inf0rmer",
# "id": 290137,
# ...
# }
# Get a user's repos
github.users('inf0rmer').repos().get
# => {
# "id": 20000073,
# "name": "BAPersistentOperationQueue",
# ...
# }
- Fork it ( https://github.com/[my-github-username]/blanket/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request