From: Gerald Bauer Date: 2013-04-07T23:36:44+09:00 Subject: [ANN] beer.db & beerdb gem - Free Beer & Brewery Data, Models 'n' More --089e012290320a1d1904d9c5d672 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello, I've collected some beers and breweries for a new free open public domain beer database, that is, beer.db[1]. Use the beerdb Ruby gem [2] to read (import) the plain text fixtures and setup your database e.g. $ beerdb setup --include ../beer.db --worldinclude ../world.db For easy reuse the gem includes some ActiveRecord models e.g. >> brooklyn =3D Brewery.find_by_key( 'brooklyn' ) >> brooklyn.title =3D> "Brooklyn Brewery" >> brooklyn.beers =3D> "Brooklyn Lager" "Brooklyn Brown Ale" "Brooklyn Black Chocolate Stout" ... >> asahi =3D Beer.find_by_key( 'asahisuperdry' ) >> asahi.title =3D> "Asahi Super Dry" >> asahi.brewery =3D> "Asahi Breweries" and so on. Note, there's also a litte HTTP JSON API web service included [3] and last but not least I've started on a litte web app (beer.db.admin) [4]. All code and data is public domain. Cheers. Prost. Salud. Kampai. Yung sing. Sl=E1inte. - Gerald [1] https://github.com/geraldb/beer.db [2] https://rubygems.org/gems/beerdb [3] https://github.com/geraldb/beer.db.ruby/blob/master/lib/beerdb/server.r= b [4] http://prost.herokuapp.com/countries --089e012290320a1d1904d9c5d672 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello,

=A0 I've collected some beers and brewer= ies for a new free open public domain beer database, that is, beer.db[1]. U= se the beerdb Ruby gem [2] to read (import) the plain text fixtures and setup your database e.g.

=A0 $=A0 beerdb setup --include ../beer.db = --worldinclude ../world.db
=A0

=A0 For easy reuse the gem includ= es some ActiveRecord models e.g.

=A0=A0=A0 >> brooklyn =3D Bre= wery.find_by_key( 'brooklyn' )
=A0
=A0=A0=A0 >> brooklyn.title=A0=A0
=A0=A0=A0 =3D> "= Brooklyn Brewery"

=A0=A0=A0 >> brooklyn.beers
=A0=A0= =A0 =3D> "Brooklyn Lager"
=A0=A0=A0=A0=A0=A0 "Brooklyn= Brown Ale"
=A0=A0=A0=A0=A0=A0 "Brooklyn Black Chocolate Stout= "
=A0=A0=A0=A0=A0=A0=A0 ...

=A0=A0=A0 >> asahi =3D Beer.find_by_= key( 'asahisuperdry' )
=A0=A0=A0 >> asahi.title
=A0=A0= =A0 =3D> "Asahi Super Dry"
=A0=A0=A0 >> asahi.brewery=
=A0=A0=A0 =3D> "Asahi Breweries"
=A0=A0=A0
=A0=A0=A0 and so on.

=A0=A0 Note, there's also a l= itte HTTP JSON API web service included [3] and last but not least=A0 I'= ;ve started on a litte web app (beer.db.admin) [4]. All code and data is pu= blic domain.

=A0Cheers. Prost. Salud. Kampai. Yung sing. Sl=E1inte.
=A0 - Gerald=
=A0=A0=A0=A0
[1] htt= ps://github.com/geraldb/beer.db
[2] https://rubygems.org/gems/beerdb
[3] https://github.com/geraldb/beer.db.ruby/blob/master/lib/beerd= b/server.rb
[4] htt= p://prost.herokuapp.com/countries
--089e012290320a1d1904d9c5d672--