Project

tvmaze

0.01
No release in over 3 years
Low commit activity in last 3 years
tvmaze is a small wrapper around TVmaze API (http://api.tvmaze.com/).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 1.8.0
 Project Readme

TVmaze API Gem

Ruby wrapper for the TVmaze API.

Required gems:

  • rest-client ~> 1.8.0 (not tested with other versions)

Install:

Add this line to your application's Gemfile:

gem 'tvmaze'

And then execute:

$ bundle

Or install it yourself as:

$ gem install tvmaze

Basic Usage

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']})

Testing

To run the specs:

bundle exec rspec

Contributions

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

License

The MIT License (MIT)

Copyright (c) 2015-2016 Ivan Parfenchuk, uson1x@gmail.com