Snapple Build Status Code Climate Test Coverage

A gem to provide one with the same nuggets of wisdom attained by religiously drinking Snapple.

Installation

Add this line to your application's Gemfile:

gem 'snapple'

And then execute:

$ bundle

Or install it yourself as:

$ gem install snapple

Usage

Retrieve a full Snapple Fact:

Snapple.fact
=> #<Snapple::Fact:0x007fe0148bdf20 @id="256", @text="There are more saunas than cars in Finland.", @categories=["Geography"]>

Quickly get a fact text:

Snapple.fact!
=> "Beavers were once the size of bears."

Command Line Interface

Open a Snapple from your console:

$ snapple
Texas is the only state that permits residents to cast absentee ballots from space.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/jcbarry/snapple. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Trademarks

SNAPPLE, REAL FACTS, and MADE FROM THE BEST STUFF ON EARTH are registered trademarks of Snapple Beverage Corp.