brewery_db 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +6 -14
- data/CHANGELOG.md +6 -0
- data/README.md +9 -0
- data/brewery_db.gemspec +1 -1
- data/lib/brewery_db.rb +3 -0
- data/lib/brewery_db/client.rb +12 -0
- data/lib/brewery_db/resources/fermentables.rb +13 -0
- data/lib/brewery_db/resources/hops.rb +13 -0
- data/lib/brewery_db/resources/yeasts.rb +13 -0
- data/lib/brewery_db/version.rb +1 -1
- data/spec/brewery_db/client_spec.rb +19 -14
- data/spec/brewery_db/config_spec.rb +12 -10
- data/spec/brewery_db/mash_spec.rb +2 -2
- data/spec/brewery_db/middleware/error_handler_spec.rb +1 -1
- data/spec/brewery_db/resource_spec.rb +12 -6
- data/spec/brewery_db/resources/beers_spec.rb +2 -2
- data/spec/brewery_db/resources/breweries_spec.rb +2 -2
- data/spec/brewery_db/resources/brewery_spec.rb +8 -8
- data/spec/brewery_db/resources/categories_spec.rb +2 -2
- data/spec/brewery_db/resources/fermentables_spec.rb +21 -0
- data/spec/brewery_db/resources/glassware_spec.rb +2 -2
- data/spec/brewery_db/resources/hops_spec.rb +21 -0
- data/spec/brewery_db/resources/locations_spec.rb +2 -2
- data/spec/brewery_db/resources/search_spec.rb +5 -5
- data/spec/brewery_db/resources/styles_spec.rb +2 -2
- data/spec/brewery_db/resources/yeasts_spec.rb +21 -0
- data/spec/brewery_db/web_hook_spec.rb +1 -1
- data/spec/fixtures/BreweryDB_Resource/_get/a_list_of_resources/can_be_enumerated.yml +237 -141
- data/spec/fixtures/BreweryDB_Resource/_get/a_not_found_request/{sets_the_exception_message_to_the_error_message_in_the_response.yml → includes_the_response_message_in_the_error_message.yml} +11 -13
- data/spec/fixtures/BreweryDB_Resource/_get/a_not_found_request/includes_the_response_status_in_the_error_message.yml +36 -0
- data/spec/fixtures/BreweryDB_Resource/_get/a_not_found_request/raises_an_exception.yml +11 -13
- data/spec/fixtures/BreweryDB_Resource/_get/an_OK_request/{name/.yml → returns_the_data.yml} +13 -11
- data/spec/fixtures/BreweryDB_Resources_Beers/_all/fetches_all_of_the_beers_at_once.yml +497 -497
- data/spec/fixtures/BreweryDB_Resources_Beers/_find/fetches_only_the_beer_asked_for.yml +13 -11
- data/spec/fixtures/BreweryDB_Resources_Breweries/_all/fetches_all_of_the_breweries_at_once.yml +164 -147
- data/spec/fixtures/BreweryDB_Resources_Breweries/_find/fetches_only_the_brewery_asked_for.yml +13 -11
- data/spec/fixtures/BreweryDB_Resources_Categories/_all/fetches_all_of_the_cagtegories_at_once.yml +11 -9
- data/spec/fixtures/BreweryDB_Resources_Categories/_find/fetches_only_the_category_asked_for.yml +11 -9
- data/spec/fixtures/BreweryDB_Resources_Fermentables/_all/fetches_all_of_the_fermentables_at_once.yml +189 -0
- data/spec/fixtures/BreweryDB_Resources_Fermentables/_find/fetches_only_the_fermentable_asked_for.yml +42 -0
- data/spec/fixtures/BreweryDB_Resources_Glassware/_all/fetches_all_of_the_glassware_at_once.yml +11 -9
- data/spec/fixtures/BreweryDB_Resources_Glassware/_find/fetches_only_the_glassware_asked_for.yml +11 -9
- data/spec/fixtures/BreweryDB_Resources_Hops/_all/fetches_all_of_the_hops_at_once.yml +248 -0
- data/spec/fixtures/BreweryDB_Resources_Hops/_find/fetches_only_the_hop_asked_for.yml +45 -0
- data/spec/fixtures/BreweryDB_Resources_Locations/_all/fetches_all_of_the_breweries_at_once.yml +252 -686
- data/spec/fixtures/BreweryDB_Resources_Locations/_find/fetches_only_the_location_asked_for.yml +35 -72
- data/spec/fixtures/BreweryDB_Resources_Search/_all/fetches_all_of_the_search_results_at_once.yml +486 -429
- data/spec/fixtures/BreweryDB_Resources_Styles/_all/fetches_all_of_the_styles_at_once.yml +54 -57
- data/spec/fixtures/BreweryDB_Resources_Styles/_find/fetches_only_the_style_asked_for.yml +11 -9
- data/spec/fixtures/BreweryDB_Resources_Yeasts/_all/fetches_all_of_the_yeasts_at_once.yml +222 -0
- data/spec/fixtures/BreweryDB_Resources_Yeasts/_find/fetches_only_the_yeast_asked_for.yml +49 -0
- metadata +38 -16
data/spec/fixtures/BreweryDB_Resources_Breweries/_find/fetches_only_the_brewery_asked_for.yml
CHANGED
|
@@ -8,31 +8,33 @@ http_interactions:
|
|
|
8
8
|
string: ''
|
|
9
9
|
headers:
|
|
10
10
|
User-Agent:
|
|
11
|
-
- BreweryDB Ruby Gem 0.0
|
|
11
|
+
- BreweryDB Ruby Gem 0.2.0
|
|
12
12
|
response:
|
|
13
13
|
status:
|
|
14
14
|
code: 200
|
|
15
15
|
message:
|
|
16
16
|
headers:
|
|
17
17
|
date:
|
|
18
|
-
-
|
|
18
|
+
- Mon, 22 Jul 2013 00:05:48 GMT
|
|
19
19
|
server:
|
|
20
|
-
- Apache/2.2.
|
|
20
|
+
- Apache/2.2.24 (Amazon)
|
|
21
21
|
x-powered-by:
|
|
22
|
-
- PHP/5.3.
|
|
22
|
+
- PHP/5.3.26
|
|
23
23
|
x-ratelimit-limit:
|
|
24
24
|
- Unlimited
|
|
25
25
|
x-ratelimit-remaining:
|
|
26
26
|
- Unlimited
|
|
27
|
+
vary:
|
|
28
|
+
- Accept-Encoding
|
|
27
29
|
content-length:
|
|
28
|
-
- '
|
|
30
|
+
- '731'
|
|
29
31
|
connection:
|
|
30
32
|
- close
|
|
31
33
|
content-type:
|
|
32
34
|
- application/json
|
|
33
35
|
body:
|
|
34
|
-
encoding:
|
|
35
|
-
string:
|
|
36
|
+
encoding: UTF-8
|
|
37
|
+
string: '{"message":"READ ONLY MODE: Request Successful","data":{"id":"Idm5Y5","name":"Founders
|
|
36
38
|
Brewing Company","description":"Founders Brewing Company, founded by Mike
|
|
37
39
|
Stevens and Dave Engbers produced its first beer in November of 1997. Built
|
|
38
40
|
out of a dream and a passion for home brewing, what started out as a hobby
|
|
@@ -50,8 +52,8 @@ http_interactions:
|
|
|
50
52
|
Founders Brewing Company has built its reputation on producing very unique
|
|
51
53
|
beers. Our focus is to offer our wholesalers, retailers and consumers a product
|
|
52
54
|
that stands alone on the shelf and offers a true drinking experience to our
|
|
53
|
-
friends, the consumer.","website":"http:\/\/www.foundersbrewing.com\/","established":"1997","isOrganic":"N","images":{"icon":"
|
|
54
|
-
02:41:55","updateDate":"2012-
|
|
55
|
+
friends, the consumer.","website":"http:\/\/www.foundersbrewing.com\/","established":"1997","isOrganic":"N","images":{"icon":"https:\/\/s3.amazonaws.com\/brewerydbapi\/brewery\/Idm5Y5\/upload_5gYn8V-icon.png","medium":"https:\/\/s3.amazonaws.com\/brewerydbapi\/brewery\/Idm5Y5\/upload_5gYn8V-medium.png","large":"https:\/\/s3.amazonaws.com\/brewerydbapi\/brewery\/Idm5Y5\/upload_5gYn8V-large.png"},"status":"verified","statusDisplay":"Verified","createDate":"2012-01-03
|
|
56
|
+
02:41:55","updateDate":"2012-09-11 19:30:21"},"status":"success"}'
|
|
55
57
|
http_version:
|
|
56
|
-
recorded_at:
|
|
57
|
-
recorded_with: VCR 2.
|
|
58
|
+
recorded_at: Mon, 22 Jul 2013 00:05:48 GMT
|
|
59
|
+
recorded_with: VCR 2.4.0
|
data/spec/fixtures/BreweryDB_Resources_Categories/_all/fetches_all_of_the_cagtegories_at_once.yml
CHANGED
|
@@ -8,31 +8,33 @@ http_interactions:
|
|
|
8
8
|
string: ''
|
|
9
9
|
headers:
|
|
10
10
|
User-Agent:
|
|
11
|
-
- BreweryDB Ruby Gem 0.0
|
|
11
|
+
- BreweryDB Ruby Gem 0.2.0
|
|
12
12
|
response:
|
|
13
13
|
status:
|
|
14
14
|
code: 200
|
|
15
15
|
message:
|
|
16
16
|
headers:
|
|
17
17
|
date:
|
|
18
|
-
-
|
|
18
|
+
- Mon, 22 Jul 2013 00:05:48 GMT
|
|
19
19
|
server:
|
|
20
|
-
- Apache/2.2.
|
|
20
|
+
- Apache/2.2.24 (Amazon)
|
|
21
21
|
x-powered-by:
|
|
22
|
-
- PHP/5.3.
|
|
22
|
+
- PHP/5.3.26
|
|
23
23
|
x-ratelimit-limit:
|
|
24
24
|
- Unlimited
|
|
25
25
|
x-ratelimit-remaining:
|
|
26
26
|
- Unlimited
|
|
27
|
+
vary:
|
|
28
|
+
- Accept-Encoding
|
|
27
29
|
content-length:
|
|
28
|
-
- '
|
|
30
|
+
- '309'
|
|
29
31
|
connection:
|
|
30
32
|
- close
|
|
31
33
|
content-type:
|
|
32
34
|
- application/json
|
|
33
35
|
body:
|
|
34
|
-
encoding:
|
|
35
|
-
string:
|
|
36
|
+
encoding: UTF-8
|
|
37
|
+
string: '{"message":"READ ONLY MODE: Request Successful","data":[{"id":1,"name":"British
|
|
36
38
|
Origin Ales","createDate":"2012-03-21 20:06:45"},{"id":2,"name":"Irish Origin
|
|
37
39
|
Ales","createDate":"2012-03-21 20:06:45"},{"id":3,"name":"North American Origin
|
|
38
40
|
Ales","createDate":"2012-03-21 20:06:45"},{"id":4,"name":"German Origin Ales","createDate":"2012-03-21
|
|
@@ -45,5 +47,5 @@ http_interactions:
|
|
|
45
47
|
Beer","createDate":"2012-03-21 20:06:46"},{"id":12,"name":"Mead, Cider, &
|
|
46
48
|
Perry","createDate":"2012-03-21 20:06:46"}],"status":"success"}'
|
|
47
49
|
http_version:
|
|
48
|
-
recorded_at:
|
|
49
|
-
recorded_with: VCR 2.
|
|
50
|
+
recorded_at: Mon, 22 Jul 2013 00:05:49 GMT
|
|
51
|
+
recorded_with: VCR 2.4.0
|
data/spec/fixtures/BreweryDB_Resources_Categories/_find/fetches_only_the_category_asked_for.yml
CHANGED
|
@@ -8,32 +8,34 @@ http_interactions:
|
|
|
8
8
|
string: ''
|
|
9
9
|
headers:
|
|
10
10
|
User-Agent:
|
|
11
|
-
- BreweryDB Ruby Gem 0.0
|
|
11
|
+
- BreweryDB Ruby Gem 0.2.0
|
|
12
12
|
response:
|
|
13
13
|
status:
|
|
14
14
|
code: 200
|
|
15
15
|
message:
|
|
16
16
|
headers:
|
|
17
17
|
date:
|
|
18
|
-
-
|
|
18
|
+
- Mon, 22 Jul 2013 00:05:49 GMT
|
|
19
19
|
server:
|
|
20
|
-
- Apache/2.2.
|
|
20
|
+
- Apache/2.2.24 (Amazon)
|
|
21
21
|
x-powered-by:
|
|
22
|
-
- PHP/5.3.
|
|
22
|
+
- PHP/5.3.26
|
|
23
23
|
x-ratelimit-limit:
|
|
24
24
|
- Unlimited
|
|
25
25
|
x-ratelimit-remaining:
|
|
26
26
|
- Unlimited
|
|
27
|
+
vary:
|
|
28
|
+
- Accept-Encoding
|
|
27
29
|
content-length:
|
|
28
|
-
- '
|
|
30
|
+
- '148'
|
|
29
31
|
connection:
|
|
30
32
|
- close
|
|
31
33
|
content-type:
|
|
32
34
|
- application/json
|
|
33
35
|
body:
|
|
34
|
-
encoding:
|
|
35
|
-
string:
|
|
36
|
+
encoding: UTF-8
|
|
37
|
+
string: '{"message":"READ ONLY MODE: Request Successful","data":{"id":1,"name":"British
|
|
36
38
|
Origin Ales","createDate":"2012-03-21 20:06:45"},"status":"success"}'
|
|
37
39
|
http_version:
|
|
38
|
-
recorded_at:
|
|
39
|
-
recorded_with: VCR 2.
|
|
40
|
+
recorded_at: Mon, 22 Jul 2013 00:05:49 GMT
|
|
41
|
+
recorded_with: VCR 2.4.0
|
data/spec/fixtures/BreweryDB_Resources_Fermentables/_all/fetches_all_of_the_fermentables_at_once.yml
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: http://api.brewerydb.com/v2/fermentables?key=API_KEY
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
User-Agent:
|
|
11
|
+
- BreweryDB Ruby Gem 0.2.0
|
|
12
|
+
response:
|
|
13
|
+
status:
|
|
14
|
+
code: 200
|
|
15
|
+
message:
|
|
16
|
+
headers:
|
|
17
|
+
date:
|
|
18
|
+
- Fri, 02 Aug 2013 01:31:26 GMT
|
|
19
|
+
server:
|
|
20
|
+
- Apache/2.2.24 (Amazon)
|
|
21
|
+
x-powered-by:
|
|
22
|
+
- PHP/5.3.26
|
|
23
|
+
x-ratelimit-limit:
|
|
24
|
+
- '400'
|
|
25
|
+
x-ratelimit-remaining:
|
|
26
|
+
- '387'
|
|
27
|
+
vary:
|
|
28
|
+
- Accept-Encoding
|
|
29
|
+
content-length:
|
|
30
|
+
- '2726'
|
|
31
|
+
connection:
|
|
32
|
+
- close
|
|
33
|
+
content-type:
|
|
34
|
+
- application/json
|
|
35
|
+
body:
|
|
36
|
+
encoding: UTF-8
|
|
37
|
+
string: '{"currentPage":1,"numberOfPages":5,"totalResults":220,"data":[{"id":165,"name":"Abbey
|
|
38
|
+
Malt","category":"malt","categoryDisplay":"Malts, Grains, & Fermentables","createDate":"2013-06-24
|
|
39
|
+
16:07:41"},{"id":166,"name":"Acidulated Malt","description":"Lowers mash,
|
|
40
|
+
wort, and beer pH. Contains 1-2% lactic acid. Enhances enzymatic activity
|
|
41
|
+
in mash and improves extract efficiency. Lightens color in pale brews. Enhances
|
|
42
|
+
stability and extends shelf life of finished beer. Promotes well-rounded,
|
|
43
|
+
complex beer flavor.","countryOfOrigin":"DE","srmId":3,"srmPrecise":3,"moistureContent":7,"dryYield":58.4,"potential":1.027,"protein":12,"maxInBatch":10,"requiresMashing":"Y","characteristics":[{"id":9,"name":"Head","description":"Helps
|
|
44
|
+
the head retention of the beer.","createDate":"2013-06-24 16:07:26"}],"category":"malt","categoryDisplay":"Malts,
|
|
45
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:41","updateDate":"2013-06-24
|
|
46
|
+
16:10:14","srm":{"id":3,"name":"3","hex":"FFCA5A"},"country":{"isoCode":"DE","name":"GERMANY","displayName":"Germany","isoThree":"DEU","numberCode":276,"createDate":"2012-01-03
|
|
47
|
+
02:41:33"}},{"id":181,"name":"Amber Malt","description":"Roasted specialty
|
|
48
|
+
malt used in some English browns, milds and old ales to add color and a biscuit
|
|
49
|
+
taste. Intense flavour","countryOfOrigin":"GB","srmId":22,"srmPrecise":22,"moistureContent":2.8,"coarseFineDifference":1.5,"diastaticPower":20,"dryYield":75,"potential":1.035,"protein":10,"maxInBatch":20,"requiresMashing":"Y","characteristics":[{"id":2,"name":"Biscuit","description":"Imparts
|
|
50
|
+
a biscuity quality upon the beer.","createDate":"2013-06-24 16:07:26"}],"category":"malt","categoryDisplay":"Malts,
|
|
51
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:41","updateDate":"2013-06-24
|
|
52
|
+
16:10:14","srm":{"id":22,"name":"22","hex":"8E2900"},"country":{"isoCode":"GB","name":"UNITED
|
|
53
|
+
KINGDOM","displayName":"United Kingdom","isoThree":"GBR","numberCode":826,"createDate":"2012-01-03
|
|
54
|
+
02:41:33"}},{"id":209,"name":"Aromatic Malt","description":"Aromatic malt
|
|
55
|
+
is a kilned barley malt used to give beer a strong, aggressive malt aroma
|
|
56
|
+
and rich color.","countryOfOrigin":"BE","srmId":26,"srmPrecise":26,"dryYield":77.9,"potential":1.036,"maxInBatch":100,"requiresMashing":"Y","characteristics":[{"id":1,"name":"Aromatic","description":"Imparts
|
|
57
|
+
an aromatic quality upon the beer.","createDate":"2013-06-24 16:07:26"},{"id":10,"name":"Malty","description":"Imparts
|
|
58
|
+
a malty flavor upon the beer.","createDate":"2013-06-24 16:07:26"}],"category":"malt","categoryDisplay":"Malts,
|
|
59
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:41","updateDate":"2013-06-24
|
|
60
|
+
16:10:14","srm":{"id":26,"name":"26","hex":"771900"},"country":{"isoCode":"BE","name":"BELGIUM","displayName":"Belgium","isoThree":"BEL","numberCode":56,"createDate":"2012-01-03
|
|
61
|
+
02:41:33"}},{"id":1958,"name":"Asheburne Mild Malt","category":"malt","categoryDisplay":"Malts,
|
|
62
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:59"},{"id":1987,"name":"Bamberg
|
|
63
|
+
Smoked Malt","category":"malt","categoryDisplay":"Malts, Grains, & Fermentables","createDate":"2013-06-24
|
|
64
|
+
16:08:00"},{"id":184,"name":"Barley - Black","description":"Unmalted barley
|
|
65
|
+
roasted at high temperature to create a dry, coffee-like flavor. Imparts the
|
|
66
|
+
sharp, acrid flavor characteristic of dry stouts. Gives dryness to a stout
|
|
67
|
+
or porter -- much more so than regular Roasted Barley.","countryOfOrigin":"US","srmId":41,"srmPrecise":500,"moistureContent":5,"coarseFineDifference":1.5,"dryYield":55,"potential":1.025,"protein":13.2,"maxInBatch":10,"requiresMashing":"N","category":"malt","categoryDisplay":"Malts,
|
|
68
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:41","updateDate":"2013-06-24
|
|
69
|
+
16:10:14","srm":{"id":41,"name":"Over 40","hex":"000000"},"country":{"isoCode":"US","name":"UNITED
|
|
70
|
+
STATES","displayName":"United States","isoThree":"USA","numberCode":840,"createDate":"2012-01-03
|
|
71
|
+
02:41:33"}},{"id":534,"name":"Barley - Flaked","category":"malt","categoryDisplay":"Malts,
|
|
72
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:50"},{"id":214,"name":"Barley
|
|
73
|
+
- Hulls","category":"malt","categoryDisplay":"Malts, Grains, & Fermentables","createDate":"2013-06-24
|
|
74
|
+
16:07:42"},{"id":302,"name":"Barley - Lightly Roasted","category":"malt","categoryDisplay":"Malts,
|
|
75
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:43"},{"id":1947,"name":"Barley
|
|
76
|
+
- Malted","category":"malt","categoryDisplay":"Malts, Grains, & Fermentables","createDate":"2013-06-24
|
|
77
|
+
16:07:58"},{"id":217,"name":"Barley - Raw","category":"malt","categoryDisplay":"Malts,
|
|
78
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:42"},{"id":753,"name":"Barley
|
|
79
|
+
- Roasted","description":"Unmalted and roasted at high temperature to create
|
|
80
|
+
a burnt, grainy, coffee-like flavor. Imparts a red to deep brown color to
|
|
81
|
+
beer, and very strong roasted flavor. Use 2-4% in Brown ales to add a nutty
|
|
82
|
+
flavor, or 3-10% in Porters and Stouts for coffee flavor.","countryOfOrigin":"US","srmId":41,"srmPrecise":300,"moistureContent":5,"coarseFineDifference":1.5,"dryYield":55,"potential":1.025,"protein":13.2,"maxInBatch":10,"requiresMashing":"N","characteristics":[{"id":4,"name":"Burnt","description":"Imparts
|
|
83
|
+
a burnt tasting quality upon the beer.","createDate":"2013-06-24 16:07:26"},{"id":7,"name":"Coffee","description":"Imparts
|
|
84
|
+
a coffee flavor upon the beer.","createDate":"2013-06-24 16:07:26"},{"id":8,"name":"Grainy","description":"Imparts
|
|
85
|
+
a grainty taste upon the beer.","createDate":"2013-06-24 16:07:26"},{"id":11,"name":"Nutty","description":"Imparts
|
|
86
|
+
a nutty flavor upon the beer.","createDate":"2013-06-24 16:07:26"},{"id":12,"name":"Roasted","description":"Imparts
|
|
87
|
+
a roasted flavor upon the beer.","createDate":"2013-06-24 16:07:26"}],"category":"malt","categoryDisplay":"Malts,
|
|
88
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:54","updateDate":"2013-06-24
|
|
89
|
+
16:10:14","srm":{"id":41,"name":"Over 40","hex":"000000"},"country":{"isoCode":"US","name":"UNITED
|
|
90
|
+
STATES","displayName":"United States","isoThree":"USA","numberCode":840,"createDate":"2012-01-03
|
|
91
|
+
02:41:33"}},{"id":1930,"name":"Barley - Roasted\/De-husked","category":"malt","categoryDisplay":"Malts,
|
|
92
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:57"},{"id":218,"name":"Barley
|
|
93
|
+
- Torrefied","category":"malt","categoryDisplay":"Malts, Grains, & Fermentables","createDate":"2013-06-24
|
|
94
|
+
16:07:42"},{"id":1925,"name":"Beechwood Smoked","category":"malt","categoryDisplay":"Malts,
|
|
95
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:57"},{"id":246,"name":"Biscuit
|
|
96
|
+
Malt","description":"Another Belgian malt, this gives a biscuit like flavor
|
|
97
|
+
and aroma. Use for English ales, brown ales and porters. Can be used as a
|
|
98
|
+
substitute for toasted malt.","countryOfOrigin":"BE","srmId":23,"srmPrecise":23,"moistureContent":4,"coarseFineDifference":1.5,"diastaticPower":6,"dryYield":79,"potential":1.036,"protein":10.5,"maxInBatch":10,"requiresMashing":"Y","characteristics":[{"id":1,"name":"Aromatic","description":"Imparts
|
|
99
|
+
an aromatic quality upon the beer.","createDate":"2013-06-24 16:07:26"},{"id":2,"name":"Biscuit","description":"Imparts
|
|
100
|
+
a biscuity quality upon the beer.","createDate":"2013-06-24 16:07:26"}],"category":"malt","categoryDisplay":"Malts,
|
|
101
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:42","updateDate":"2013-06-24
|
|
102
|
+
16:10:14","srm":{"id":23,"name":"23","hex":"882300"},"country":{"isoCode":"BE","name":"BELGIUM","displayName":"Belgium","isoThree":"BEL","numberCode":56,"createDate":"2012-01-03
|
|
103
|
+
02:41:33"}},{"id":247,"name":"Black Malt","characteristics":[{"id":7,"name":"Coffee","description":"Imparts
|
|
104
|
+
a coffee flavor upon the beer.","createDate":"2013-06-24 16:07:26"}],"category":"malt","categoryDisplay":"Malts,
|
|
105
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:42"},{"id":501,"name":"Black
|
|
106
|
+
Malt - Debittered","category":"malt","categoryDisplay":"Malts, Grains, & Fermentables","createDate":"2013-06-24
|
|
107
|
+
16:07:49"},{"id":270,"name":"Black Malt - Organic","category":"malt","categoryDisplay":"Malts,
|
|
108
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:42"},{"id":1955,"name":"Black
|
|
109
|
+
Patent","description":"Black patent malt, sometimes called simply black malt,
|
|
110
|
+
is the darkest of the common roasted malts. It gives beer dark color and flavor
|
|
111
|
+
with a very different character than roasted barley.","srmId":41,"srmPrecise":500,"dryYield":54.1,"potential":1.025,"maxInBatch":10,"requiresMashing":"N","characteristics":[{"id":4,"name":"Burnt","description":"Imparts
|
|
112
|
+
a burnt tasting quality upon the beer.","createDate":"2013-06-24 16:07:26"},{"id":12,"name":"Roasted","description":"Imparts
|
|
113
|
+
a roasted flavor upon the beer.","createDate":"2013-06-24 16:07:26"}],"category":"malt","categoryDisplay":"Malts,
|
|
114
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:59","updateDate":"2013-06-24
|
|
115
|
+
16:10:14","srm":{"id":41,"name":"Over 40","hex":"000000"}},{"id":186,"name":"Black
|
|
116
|
+
Roast","category":"malt","categoryDisplay":"Malts, Grains, & Fermentables","createDate":"2013-06-24
|
|
117
|
+
16:07:41"},{"id":254,"name":"Black Treacle","category":"malt","categoryDisplay":"Malts,
|
|
118
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:42"},{"id":271,"name":"Blackprinz
|
|
119
|
+
Malt","category":"malt","categoryDisplay":"Malts, Grains, & Fermentables","createDate":"2013-06-24
|
|
120
|
+
16:07:42"},{"id":1974,"name":"Blue Agave Nectar","category":"malt","categoryDisplay":"Malts,
|
|
121
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:59"},{"id":1973,"name":"Blue
|
|
122
|
+
Corn","category":"malt","categoryDisplay":"Malts, Grains, & Fermentables","createDate":"2013-06-24
|
|
123
|
+
16:07:59"},{"id":272,"name":"Bonlander","category":"malt","categoryDisplay":"Malts,
|
|
124
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:43"},{"id":338,"name":"Brown
|
|
125
|
+
Malt","description":"Imparts a dry, biscuit flavor. Used in nut brown ales,
|
|
126
|
+
porters and some Belgian ales.","countryOfOrigin":"GB","srmId":65,"srmPrecise":65,"moistureContent":4,"coarseFineDifference":1.5,"dryYield":70,"potential":1.032,"maxInBatch":10,"requiresMashing":"Y","characteristics":[{"id":2,"name":"Biscuit","description":"Imparts
|
|
127
|
+
a biscuity quality upon the beer.","createDate":"2013-06-24 16:07:26"}],"category":"malt","categoryDisplay":"Malts,
|
|
128
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:44","updateDate":"2013-06-24
|
|
129
|
+
16:10:14","country":{"isoCode":"GB","name":"UNITED KINGDOM","displayName":"United
|
|
130
|
+
Kingdom","isoThree":"GBR","numberCode":826,"createDate":"2012-01-03 02:41:33"}},{"id":339,"name":"Brown
|
|
131
|
+
Sugar","category":"malt","categoryDisplay":"Malts, Grains, & Fermentables","createDate":"2013-06-24
|
|
132
|
+
16:07:44"},{"id":1994,"name":"Brumalt","description":"Dark German malt developed
|
|
133
|
+
to add malt flavor of Alt, Marzen and Oktoberfest beers. Helps create authentic
|
|
134
|
+
maltiness without having to do a decoction mash. Rarely available for homebrewers.","countryOfOrigin":"DE","srmId":23,"srmPrecise":23,"moistureContent":4,"coarseFineDifference":1.5,"dryYield":71.7,"potential":1.033,"protein":7,"maxInBatch":10,"requiresMashing":"Y","characteristics":[{"id":10,"name":"Malty","description":"Imparts
|
|
135
|
+
a malty flavor upon the beer.","createDate":"2013-06-24 16:07:26"}],"category":"malt","categoryDisplay":"Malts,
|
|
136
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:10:14","srm":{"id":23,"name":"23","hex":"882300"},"country":{"isoCode":"DE","name":"GERMANY","displayName":"Germany","isoThree":"DEU","numberCode":276,"createDate":"2012-01-03
|
|
137
|
+
02:41:33"}},{"id":757,"name":"Buckwheat - Roasted","category":"malt","categoryDisplay":"Malts,
|
|
138
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:54"},{"id":1956,"name":"Canada
|
|
139
|
+
2-Row Silo","category":"malt","categoryDisplay":"Malts, Grains, & Fermentables","createDate":"2013-06-24
|
|
140
|
+
16:07:59"},{"id":1983,"name":"Cara Malt","category":"malt","categoryDisplay":"Malts,
|
|
141
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:08:00"},{"id":366,"name":"CaraAmber","category":"malt","categoryDisplay":"Malts,
|
|
142
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:44"},{"id":367,"name":"CaraAroma","description":"Very
|
|
143
|
+
dark crystal malt - similar to a crystal 120 or Caramunich 120 malt. Adds
|
|
144
|
+
strong caramel flavor, red color, and malty aroma.","countryOfOrigin":"DE","srmId":41,"srmPrecise":130,"moistureContent":4,"coarseFineDifference":1.5,"dryYield":75,"potential":1.035,"protein":11.7,"maxInBatch":15,"requiresMashing":"N","characteristics":[{"id":3,"name":"Body","description":"Increases
|
|
145
|
+
the body of the beer.","createDate":"2013-06-24 16:07:26"},{"id":5,"name":"Caramel","description":"Imparts
|
|
146
|
+
a caramel quality upon the beer.","createDate":"2013-06-24 16:07:26"},{"id":9,"name":"Head","description":"Helps
|
|
147
|
+
the head retention of the beer.","createDate":"2013-06-24 16:07:26"},{"id":10,"name":"Malty","description":"Imparts
|
|
148
|
+
a malty flavor upon the beer.","createDate":"2013-06-24 16:07:26"}],"category":"malt","categoryDisplay":"Malts,
|
|
149
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:44","updateDate":"2013-06-24
|
|
150
|
+
16:10:14","srm":{"id":41,"name":"Over 40","hex":"000000"},"country":{"isoCode":"DE","name":"GERMANY","displayName":"Germany","isoThree":"DEU","numberCode":276,"createDate":"2012-01-03
|
|
151
|
+
02:41:33"}},{"id":368,"name":"CaraBelge","category":"malt","categoryDisplay":"Malts,
|
|
152
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:44"},{"id":369,"name":"CaraBohemian","category":"malt","categoryDisplay":"Malts,
|
|
153
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:44"},{"id":273,"name":"CaraBrown","category":"malt","categoryDisplay":"Malts,
|
|
154
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:43"},{"id":370,"name":"Carafa
|
|
155
|
+
I","description":"Used to intensify aroma and color in dark Munich beers and
|
|
156
|
+
stouts.","countryOfOrigin":"DE","srmId":41,"srmPrecise":337,"moistureContent":4,"coarseFineDifference":1.5,"dryYield":70,"potential":1.032,"protein":11.7,"maxInBatch":5,"requiresMashing":"N","characteristics":[{"id":1,"name":"Aromatic","description":"Imparts
|
|
157
|
+
an aromatic quality upon the beer.","createDate":"2013-06-24 16:07:26"}],"category":"malt","categoryDisplay":"Malts,
|
|
158
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:44","updateDate":"2013-06-24
|
|
159
|
+
16:10:14","srm":{"id":41,"name":"Over 40","hex":"000000"},"country":{"isoCode":"DE","name":"GERMANY","displayName":"Germany","isoThree":"DEU","numberCode":276,"createDate":"2012-01-03
|
|
160
|
+
02:41:33"}},{"id":371,"name":"Carafa II","description":"Used to intensify
|
|
161
|
+
aroma and color in dark Munich beers and stouts.","countryOfOrigin":"DE","srmId":41,"srmPrecise":412,"moistureContent":4,"coarseFineDifference":1.5,"dryYield":70,"potential":1.032,"protein":11.7,"maxInBatch":5,"requiresMashing":"N","characteristics":[{"id":1,"name":"Aromatic","description":"Imparts
|
|
162
|
+
an aromatic quality upon the beer.","createDate":"2013-06-24 16:07:26"}],"category":"malt","categoryDisplay":"Malts,
|
|
163
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:45","updateDate":"2013-06-24
|
|
164
|
+
16:10:14","srm":{"id":41,"name":"Over 40","hex":"000000"},"country":{"isoCode":"DE","name":"GERMANY","displayName":"Germany","isoThree":"DEU","numberCode":276,"createDate":"2012-01-03
|
|
165
|
+
02:41:33"}},{"id":372,"name":"Carafa III","description":"Used to intensify
|
|
166
|
+
aroma and color in dark Munich beers and stouts.","countryOfOrigin":"DE","srmId":41,"srmPrecise":525,"moistureContent":4,"coarseFineDifference":1.5,"dryYield":70,"potential":1.032,"protein":11.7,"maxInBatch":5,"requiresMashing":"N","characteristics":[{"id":1,"name":"Aromatic","description":"Imparts
|
|
167
|
+
an aromatic quality upon the beer.","createDate":"2013-06-24 16:07:26"}],"category":"malt","categoryDisplay":"Malts,
|
|
168
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:45","updateDate":"2013-06-24
|
|
169
|
+
16:10:14","srm":{"id":41,"name":"Over 40","hex":"000000"},"country":{"isoCode":"DE","name":"GERMANY","displayName":"Germany","isoThree":"DEU","numberCode":276,"createDate":"2012-01-03
|
|
170
|
+
02:41:33"}},{"id":1988,"name":"Carafa Special","category":"malt","categoryDisplay":"Malts,
|
|
171
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:08:00"},{"id":376,"name":"CaraFoam","description":"Significantly
|
|
172
|
+
increases foam\/head retention and body of the beer.","srmId":1,"srmPrecise":1,"characteristics":[{"id":3,"name":"Body","description":"Increases
|
|
173
|
+
the body of the beer.","createDate":"2013-06-24 16:07:26"},{"id":9,"name":"Head","description":"Helps
|
|
174
|
+
the head retention of the beer.","createDate":"2013-06-24 16:07:26"}],"category":"malt","categoryDisplay":"Malts,
|
|
175
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:45","updateDate":"2013-06-24
|
|
176
|
+
16:10:14","srm":{"id":1,"name":"1","hex":"FFE699"}},{"id":828,"name":"CaraHell","category":"malt","categoryDisplay":"Malts,
|
|
177
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:56"},{"id":378,"name":"Caramel\/Crystal
|
|
178
|
+
Malt","category":"malt","categoryDisplay":"Malts, Grains, & Fermentables","createDate":"2013-06-24
|
|
179
|
+
16:07:45"},{"id":564,"name":"Caramel\/Crystal Malt - Dark","category":"malt","categoryDisplay":"Malts,
|
|
180
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:51"},{"id":777,"name":"Caramel\/Crystal
|
|
181
|
+
Malt - Extra Dark","category":"malt","categoryDisplay":"Malts, Grains, & Fermentables","createDate":"2013-06-24
|
|
182
|
+
16:07:54"},{"id":364,"name":"Caramel\/Crystal Malt - Gold","category":"malt","categoryDisplay":"Malts,
|
|
183
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:44"},{"id":780,"name":"Caramel\/Crystal
|
|
184
|
+
Malt - Heritage","category":"malt","categoryDisplay":"Malts, Grains, & Fermentables","createDate":"2013-06-24
|
|
185
|
+
16:07:54"},{"id":566,"name":"Caramel\/Crystal Malt - Light","category":"malt","categoryDisplay":"Malts,
|
|
186
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:51"}],"status":"success"}'
|
|
187
|
+
http_version:
|
|
188
|
+
recorded_at: Fri, 02 Aug 2013 01:31:27 GMT
|
|
189
|
+
recorded_with: VCR 2.5.0
|
data/spec/fixtures/BreweryDB_Resources_Fermentables/_find/fetches_only_the_fermentable_asked_for.yml
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: http://api.brewerydb.com/v2/fermentable/1924?key=API_KEY
|
|
6
|
+
body:
|
|
7
|
+
encoding: US-ASCII
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
User-Agent:
|
|
11
|
+
- BreweryDB Ruby Gem 0.2.0
|
|
12
|
+
response:
|
|
13
|
+
status:
|
|
14
|
+
code: 200
|
|
15
|
+
message:
|
|
16
|
+
headers:
|
|
17
|
+
date:
|
|
18
|
+
- Fri, 02 Aug 2013 01:31:26 GMT
|
|
19
|
+
server:
|
|
20
|
+
- Apache/2.2.24 (Amazon)
|
|
21
|
+
x-powered-by:
|
|
22
|
+
- PHP/5.3.26
|
|
23
|
+
x-ratelimit-limit:
|
|
24
|
+
- '400'
|
|
25
|
+
x-ratelimit-remaining:
|
|
26
|
+
- '386'
|
|
27
|
+
vary:
|
|
28
|
+
- Accept-Encoding
|
|
29
|
+
content-length:
|
|
30
|
+
- '253'
|
|
31
|
+
connection:
|
|
32
|
+
- close
|
|
33
|
+
content-type:
|
|
34
|
+
- application/json
|
|
35
|
+
body:
|
|
36
|
+
encoding: UTF-8
|
|
37
|
+
string: '{"message":"READ ONLY MODE: Request Successful","data":{"id":1924,"name":"CaraMunich","characteristics":[{"id":5,"name":"Caramel","description":"Imparts
|
|
38
|
+
a caramel quality upon the beer.","createDate":"2013-06-24 16:07:26"}],"category":"malt","categoryDisplay":"Malts,
|
|
39
|
+
Grains, & Fermentables","createDate":"2013-06-24 16:07:57"},"status":"success"}'
|
|
40
|
+
http_version:
|
|
41
|
+
recorded_at: Fri, 02 Aug 2013 01:31:27 GMT
|
|
42
|
+
recorded_with: VCR 2.5.0
|
data/spec/fixtures/BreweryDB_Resources_Glassware/_all/fetches_all_of_the_glassware_at_once.yml
CHANGED
|
@@ -8,31 +8,33 @@ http_interactions:
|
|
|
8
8
|
string: ''
|
|
9
9
|
headers:
|
|
10
10
|
User-Agent:
|
|
11
|
-
- BreweryDB Ruby Gem 0.0
|
|
11
|
+
- BreweryDB Ruby Gem 0.2.0
|
|
12
12
|
response:
|
|
13
13
|
status:
|
|
14
14
|
code: 200
|
|
15
15
|
message:
|
|
16
16
|
headers:
|
|
17
17
|
date:
|
|
18
|
-
-
|
|
18
|
+
- Mon, 22 Jul 2013 00:05:49 GMT
|
|
19
19
|
server:
|
|
20
|
-
- Apache/2.2.
|
|
20
|
+
- Apache/2.2.24 (Amazon)
|
|
21
21
|
x-powered-by:
|
|
22
|
-
- PHP/5.3.
|
|
22
|
+
- PHP/5.3.26
|
|
23
23
|
x-ratelimit-limit:
|
|
24
24
|
- Unlimited
|
|
25
25
|
x-ratelimit-remaining:
|
|
26
26
|
- Unlimited
|
|
27
|
+
vary:
|
|
28
|
+
- Accept-Encoding
|
|
27
29
|
content-length:
|
|
28
|
-
- '
|
|
30
|
+
- '251'
|
|
29
31
|
connection:
|
|
30
32
|
- close
|
|
31
33
|
content-type:
|
|
32
34
|
- application/json
|
|
33
35
|
body:
|
|
34
|
-
encoding:
|
|
35
|
-
string:
|
|
36
|
+
encoding: UTF-8
|
|
37
|
+
string: '{"message":"READ ONLY MODE: Request Successful","data":[{"id":1,"name":"Flute","createDate":"2012-01-03
|
|
36
38
|
02:41:33"},{"id":2,"name":"Goblet","createDate":"2012-01-03 02:41:33"},{"id":3,"name":"Mug","createDate":"2012-01-03
|
|
37
39
|
02:41:33"},{"id":4,"name":"Pilsner","createDate":"2012-01-03 02:41:33"},{"id":5,"name":"Pint","createDate":"2012-01-03
|
|
38
40
|
02:41:33"},{"id":6,"name":"Snifter","createDate":"2012-01-03 02:41:33"},{"id":7,"name":"Stange","createDate":"2012-01-03
|
|
@@ -41,5 +43,5 @@ http_interactions:
|
|
|
41
43
|
02:41:33"},{"id":13,"name":"Willi","createDate":"2012-01-03 02:41:33"},{"id":14,"name":"Thistle","createDate":"2012-01-03
|
|
42
44
|
02:41:33"}],"status":"success"}'
|
|
43
45
|
http_version:
|
|
44
|
-
recorded_at:
|
|
45
|
-
recorded_with: VCR 2.
|
|
46
|
+
recorded_at: Mon, 22 Jul 2013 00:05:49 GMT
|
|
47
|
+
recorded_with: VCR 2.4.0
|
data/spec/fixtures/BreweryDB_Resources_Glassware/_find/fetches_only_the_glassware_asked_for.yml
CHANGED
|
@@ -8,32 +8,34 @@ http_interactions:
|
|
|
8
8
|
string: ''
|
|
9
9
|
headers:
|
|
10
10
|
User-Agent:
|
|
11
|
-
- BreweryDB Ruby Gem 0.0
|
|
11
|
+
- BreweryDB Ruby Gem 0.2.0
|
|
12
12
|
response:
|
|
13
13
|
status:
|
|
14
14
|
code: 200
|
|
15
15
|
message:
|
|
16
16
|
headers:
|
|
17
17
|
date:
|
|
18
|
-
-
|
|
18
|
+
- Mon, 22 Jul 2013 00:05:49 GMT
|
|
19
19
|
server:
|
|
20
|
-
- Apache/2.2.
|
|
20
|
+
- Apache/2.2.24 (Amazon)
|
|
21
21
|
x-powered-by:
|
|
22
|
-
- PHP/5.3.
|
|
22
|
+
- PHP/5.3.26
|
|
23
23
|
x-ratelimit-limit:
|
|
24
24
|
- Unlimited
|
|
25
25
|
x-ratelimit-remaining:
|
|
26
26
|
- Unlimited
|
|
27
|
+
vary:
|
|
28
|
+
- Accept-Encoding
|
|
27
29
|
content-length:
|
|
28
|
-
- '
|
|
30
|
+
- '137'
|
|
29
31
|
connection:
|
|
30
32
|
- close
|
|
31
33
|
content-type:
|
|
32
34
|
- application/json
|
|
33
35
|
body:
|
|
34
|
-
encoding:
|
|
35
|
-
string:
|
|
36
|
+
encoding: UTF-8
|
|
37
|
+
string: '{"message":"READ ONLY MODE: Request Successful","data":{"id":1,"name":"Flute","createDate":"2012-01-03
|
|
36
38
|
02:41:33"},"status":"success"}'
|
|
37
39
|
http_version:
|
|
38
|
-
recorded_at:
|
|
39
|
-
recorded_with: VCR 2.
|
|
40
|
+
recorded_at: Mon, 22 Jul 2013 00:05:49 GMT
|
|
41
|
+
recorded_with: VCR 2.4.0
|