Ruby wrapper for the TVmaze API.
- rest-client ~> 1.8.0 (not tested with other versions)
Add this line to your application's Gemfile:
gem 'tvmaze'
And then execute:
$ bundle
Or install it yourself as:
$ gem install tvmaze
As for now, the scope of the library is very limited
and supports only searching for shows and individual show fetching.
Also, nextepisode
and episodes
embeds are available.
First require tvmaze
require 'tvmaze'
Then use one of the available methods:
shows = TVMaze::Show.search('big bang')
show = TVMaze::Show.find(66)
show = TVMaze::Show.find(66, {embed: ['nextepisode']})
show = TVMaze::Show.find(66, {embed: ['episodes']})
To run the specs:
bundle exec rspec
You're welcome to submit patches and new features!
- Create a new branch for your feature of bugfix
- Don't forget to add tests
- Open a new pull request
The MIT License (MIT)
Copyright (c) 2015-2016 Ivan Parfenchuk, uson1x@gmail.com