For now, some formulas and tools for Homebrewing.
Add this line to your application's Gemfile:
gem 'brewery'
And then execute:
$ bundle
Or install it yourself as:
$ gem install brewery
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
guide = Brewery.guides :bjcp
guide.styles
guide.categories
style = guide.find_style(id: '14B')
style.name
# => American IPA
category = guide.find_category(id: '14')
category.name
# => India Pale Ale(IPA)
category.styles
You can see the categories and styles here
Comming soon.
fermentables = Brewery.ingredients :fermentables
fermentables.count
# => 187
fermentables.find_by_name('pale ale')
fermentables.find_by_description('alber malt')
fermentables.find_by_color('22.000')
fermentables.find_by_moisture('3.0')
fermentables.find_by_extract('80.0')
hops = Brewery.ingredients :hops
hops.count
# => 85
hops.find_by_name('magnum')
hops.find_by_description('Australia')
hops.find_by_alpha('15.0')
yeasts = Brewery.ingredients :yeasts
yeasts.count
# => 208
yeasts.find_by_name('us-05')
yeasts.find_by_description('fermenting strain')
yeasts.find_by_yeast_type('liquid')
yeasts.find_by_beer_type('Ale')
yeasts.find_by_beer_attenuation('75.0')
other = Brewery.ingredients :other
other.count
# => 30
other.find_by_name('Isinglass')
other.find_by_description('forming proteins')
- 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