Project

brewery

0.0
No commit activity in last 3 years
No release in over 3 years
Tools for Homebrewing
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0
~> 2.14

Runtime

~> 2.0.5
~> 1.6.0
 Project Readme

Brewery

For now, some formulas and tools for Homebrewing.

Build Status Dependency Status Code Climate

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
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

Brewers Association (BA)

Comming soon.

Ingredients

Fermentables

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

hops = Brewery.ingredients :hops
hops.count
# => 85

hops.find_by_name('magnum')
hops.find_by_description('Australia')
hops.find_by_alpha('15.0')

Yeast

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 Ingredients

other = Brewery.ingredients :other
other.count
# => 30

other.find_by_name('Isinglass')
other.find_by_description('forming proteins')

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request