Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

RLovelett/sick-beard

Repository files navigation

Sick Beard

The sick-beard gem provides a Ruby interface for interacting with the Sick Beard PRV API. Pull requests are always welcome.

Badges!

Gem Version Build Status Coverage Status

Author

Ryan Lovelett ( @rlovelett )

Drop me a message for any questions, suggestions, requests, bugs or submit them to the issue log.

Installation

Add this line to your application's Gemfile:

gem 'sick-beard'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sick-beard

Usage

The specs for this Gem should give you some idea of how to make use of the API. For now they will be the usage information. As always Pull Requests for better documentation are welcome.

Testing

The tests for the API have been mocked using VCR and WebMock.

Actual calls to a Sick Beard have been mocked out to prevent storage of valid API credentials and making superflous API calls while testing. As such, in order to run existing tests, using the mocked API requests, the only thing that needs to be done is to run the specs (e.g., bundle exec rake spec or bundle exec guard start).

However, if you want to refresh the actual server API responses you will need to re-record all of the VCR cassettes. This can be achieved simply by performing the following two steps:

  1. Delete all the cassettes (rm spec/cassettes/*.yml)
  2. Run specs passing the API key as environment variable (SICKBEARD_API_URI='http://uri.to/sickbeard' SICBEARD_API_KEY=realapikey bundle exec rake spec)

Contributing

  1. Fork it
  2. Create a topic branch (git checkout -b topic)
  3. Make your changes
  4. Squash your changes into one commit
  5. Create new Pull Request against this squashed commit

Aknowlegements

This is a permanent fork of bigkevmcd / sickbeard. Thank you to Kevin McDermott for a starting point.

About

A Ruby interface for the Sick Beard API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages