Brewery
For now, some formulas and tools for Homebrewing.
Installation
Add this line to your application's Gemfile:
gem 'brewery'
And then execute:
$ bundle
Or install it yourself as:
$ gem install brewery
Usage
Tools
Refractometer
american_ipa = Brewery.guides(:bjcp).find(id: '14B')
tool = Brewery.tools :refractometer do
style american_ipa
original_brix 17
final_brix 7.5
end
You can search style by ID
tool = Brewery.tools :refractometer do
style '14B'
original_brix 17
final_brix 7.5
end
That's it!
tool.original_gravity
# => 1.0706483000102098
tool.final_gravity
# => 1.0049822062500002
tool.alcohol_by_weight
# => 6.734352775327011
tool.alcohol_by_volume
# => 8.523809458203969
Beer Style Guidelines
BJCP
guide = Brewery.guides :bjcp
guide.styles
search = guide.find(id: '14B')
search.name
You can see the categories here
Brewers Association (BA)
Comming soon.
Contributing
- Fork it
- 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 new Pull Request