brewery_db 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +1 -0
- data/CHANGELOG.md +4 -0
- data/README.md +5 -4
- data/brewery_db.gemspec +2 -0
- data/lib/brewery_db/resources/beers.rb +4 -0
- data/lib/brewery_db/version.rb +1 -1
- data/spec/brewery_db/client_spec.rb +23 -12
- data/spec/brewery_db/config_spec.rb +9 -5
- data/spec/brewery_db/resource_spec.rb +1 -1
- data/spec/brewery_db/resources/beers_spec.rb +14 -3
- data/spec/brewery_db/resources/breweries_spec.rb +1 -1
- data/spec/brewery_db/resources/brewery_spec.rb +2 -2
- data/spec/brewery_db/resources/categories_spec.rb +1 -1
- data/spec/brewery_db/resources/fermentables_spec.rb +1 -1
- data/spec/brewery_db/resources/fluid_size_spec.rb +1 -1
- data/spec/brewery_db/resources/hops_spec.rb +1 -1
- data/spec/brewery_db/resources/locations_spec.rb +1 -1
- data/spec/brewery_db/resources/search_spec.rb +5 -5
- data/spec/brewery_db/resources/styles_spec.rb +1 -1
- data/spec/brewery_db/resources/yeasts_spec.rb +1 -1
- data/spec/fixtures/BreweryDB_Resource/_get/a_list_of_resources/can_be_enumerated.yml +160 -84
- data/spec/fixtures/BreweryDB_Resource/_get/a_not_found_request/includes_the_response_message_in_the_error_message.yml +9 -9
- data/spec/fixtures/BreweryDB_Resource/_get/a_not_found_request/includes_the_response_status_in_the_error_message.yml +9 -9
- data/spec/fixtures/BreweryDB_Resource/_get/a_not_found_request/raises_an_exception.yml +9 -9
- data/spec/fixtures/BreweryDB_Resource/_get/an_OK_request/returns_the_data.yml +10 -10
- data/spec/fixtures/BreweryDB_Resources_Beers/_all/fetches_all_of_the_beers_at_once.yml +228 -244
- data/spec/fixtures/BreweryDB_Resources_Beers/_find/fetches_only_the_beer_asked_for.yml +10 -10
- data/spec/fixtures/BreweryDB_Resources_Beers/_random/fetches_a_random_beer.yml +53 -0
- data/spec/fixtures/BreweryDB_Resources_Breweries/_all/fetches_all_of_the_breweries_at_once.yml +46 -66
- data/spec/fixtures/BreweryDB_Resources_Breweries/_find/fetches_only_the_brewery_asked_for.yml +10 -10
- data/spec/fixtures/BreweryDB_Resources_Categories/_all/fetches_all_of_the_cagtegories_at_once.yml +13 -12
- data/spec/fixtures/BreweryDB_Resources_Categories/_find/fetches_only_the_category_asked_for.yml +10 -10
- data/spec/fixtures/BreweryDB_Resources_Fermentables/_all/fetches_all_of_the_fermentables_at_once.yml +15 -15
- data/spec/fixtures/BreweryDB_Resources_Fermentables/_find/fetches_only_the_fermentable_asked_for.yml +13 -13
- data/spec/fixtures/BreweryDB_Resources_FluidSize/_all/fetches_all_of_the_fluid_sizes_at_once.yml +16 -14
- data/spec/fixtures/BreweryDB_Resources_FluidSize/_find/fetches_only_the_fluid_size_asked_for.yml +12 -12
- data/spec/fixtures/BreweryDB_Resources_Glassware/_all/fetches_all_of_the_glassware_at_once.yml +10 -10
- data/spec/fixtures/BreweryDB_Resources_Glassware/_find/fetches_only_the_glassware_asked_for.yml +10 -10
- data/spec/fixtures/BreweryDB_Resources_Hops/_all/fetches_all_of_the_hops_at_once.yml +15 -15
- data/spec/fixtures/BreweryDB_Resources_Hops/_find/fetches_only_the_hop_asked_for.yml +13 -13
- data/spec/fixtures/BreweryDB_Resources_Locations/_all/fetches_all_of_the_breweries_at_once.yml +122 -58
- data/spec/fixtures/BreweryDB_Resources_Locations/_find/fetches_only_the_location_asked_for.yml +10 -10
- data/spec/fixtures/BreweryDB_Resources_Menu/_beer_availability/fetches_all_of_the_beer_availabilities_at_once.yml +12 -12
- data/spec/fixtures/BreweryDB_Resources_Search/_all/fetches_all_of_the_search_results_at_once.yml +366 -411
- data/spec/fixtures/BreweryDB_Resources_Search/_upc/for_an_existing_upc_code/returns_a_collection_with_the_matched_beer.yml +11 -11
- data/spec/fixtures/BreweryDB_Resources_Styles/_all/fetches_all_of_the_styles_at_once.yml +63 -24
- data/spec/fixtures/BreweryDB_Resources_Styles/_find/fetches_only_the_style_asked_for.yml +10 -10
- data/spec/fixtures/BreweryDB_Resources_Yeasts/_all/fetches_all_of_the_yeasts_at_once.yml +14 -14
- data/spec/fixtures/BreweryDB_Resources_Yeasts/_find/fetches_only_the_yeast_asked_for.yml +13 -13
- data/spec/spec_helper.rb +2 -0
- metadata +52 -22
@@ -8,30 +8,30 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- BreweryDB Ruby Gem 0.2.
|
11
|
+
- BreweryDB Ruby Gem 0.2.3
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
15
15
|
message:
|
16
16
|
headers:
|
17
|
+
content-type:
|
18
|
+
- application/json
|
17
19
|
date:
|
18
|
-
-
|
20
|
+
- Mon, 31 Mar 2014 20:13:16 GMT
|
19
21
|
server:
|
20
|
-
- Apache/2.2.
|
22
|
+
- Apache/2.2.26 (Amazon)
|
23
|
+
vary:
|
24
|
+
- Accept-Encoding
|
21
25
|
x-powered-by:
|
22
|
-
- PHP/5.3.
|
26
|
+
- PHP/5.3.28
|
23
27
|
x-ratelimit-limit:
|
24
28
|
- Unlimited
|
25
29
|
x-ratelimit-remaining:
|
26
30
|
- Unlimited
|
27
|
-
vary:
|
28
|
-
- Accept-Encoding
|
29
31
|
content-length:
|
30
32
|
- '1342'
|
31
33
|
connection:
|
32
|
-
-
|
33
|
-
content-type:
|
34
|
-
- application/json
|
34
|
+
- Close
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
37
|
string: '{"currentPage":1,"numberOfPages":1,"totalResults":1,"data":[{"id":"LVjHK1","name":"Brooklyn
|
@@ -62,5 +62,5 @@ http_interactions:
|
|
62
62
|
not be perceived. Chill haze is allowable at cold temperatures.","ibuMin":"25","ibuMax":"45","abvMin":"4","abvMax":"6.4","srmMin":"15","srmMax":"26","ogMin":"1.04","fgMin":"1.01","fgMax":"1.018","createDate":"2012-03-21
|
63
63
|
20:06:46"},"fluidSize":{"id":9,"volume":"case","createDate":"2012-01-03 02:41:33"}}],"status":"success"}'
|
64
64
|
http_version:
|
65
|
-
recorded_at:
|
66
|
-
recorded_with: VCR 2.
|
65
|
+
recorded_at: Mon, 31 Mar 2014 20:13:16 GMT
|
66
|
+
recorded_with: VCR 2.4.0
|
@@ -8,30 +8,30 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- BreweryDB Ruby Gem 0.2.
|
11
|
+
- BreweryDB Ruby Gem 0.2.3
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
15
15
|
message:
|
16
16
|
headers:
|
17
|
+
content-type:
|
18
|
+
- application/json
|
17
19
|
date:
|
18
|
-
- Mon,
|
20
|
+
- Mon, 31 Mar 2014 20:13:25 GMT
|
19
21
|
server:
|
20
|
-
- Apache/2.2.
|
22
|
+
- Apache/2.2.26 (Amazon)
|
23
|
+
vary:
|
24
|
+
- Accept-Encoding
|
21
25
|
x-powered-by:
|
22
|
-
- PHP/5.3.
|
26
|
+
- PHP/5.3.28
|
23
27
|
x-ratelimit-limit:
|
24
28
|
- Unlimited
|
25
29
|
x-ratelimit-remaining:
|
26
30
|
- Unlimited
|
27
|
-
vary:
|
28
|
-
- Accept-Encoding
|
29
31
|
content-length:
|
30
|
-
- '
|
32
|
+
- '31281'
|
31
33
|
connection:
|
32
|
-
-
|
33
|
-
content-type:
|
34
|
-
- application/json
|
34
|
+
- Close
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
37
|
string: '{"message":"READ ONLY MODE: Request Successful","data":[{"id":1,"categoryId":1,"category":{"id":1,"name":"British
|
@@ -271,15 +271,15 @@ http_interactions:
|
|
271
271
|
from negligible to medium. Diacetyl is acceptable at very low levels. Fruity
|
272
272
|
esters should be evident, balanced with roast malt and hop bitterness.","ibuMin":"25","ibuMax":"40","abvMin":"5","abvMax":"6.5","srmMin":"30","srmMax":"30","ogMin":"1.045","fgMin":"1.008","fgMax":"1.016","createDate":"2012-03-21
|
273
273
|
20:06:45"},{"id":20,"categoryId":1,"category":{"id":1,"name":"British Origin
|
274
|
-
Ales","createDate":"2012-03-21 20:06:45"},"name":"Sweet Stout","description":"Sweet
|
274
|
+
Ales","createDate":"2012-03-21 20:06:45"},"name":"Sweet or Cream Stout","description":"Sweet
|
275
275
|
stouts, also referred to as cream stouts, have less roasted bitter flavor
|
276
276
|
and a full-bodied mouthfeel. The style can be given more body with milk sugar
|
277
277
|
(lactose) before bottling. Malt sweetness, chocolate, and caramel flavor should
|
278
278
|
dominate the flavor profile and contribute to the aroma. Hops should balance
|
279
279
|
and suppress some of the sweetness without contributing apparent flavor or
|
280
280
|
aroma. The overall impression should be sweet and full-bodied.","ibuMin":"15","ibuMax":"25","abvMin":"3","abvMax":"6","srmMin":"40","srmMax":"40","ogMin":"1.045","fgMin":"1.012","fgMax":"1.02","createDate":"2012-03-21
|
281
|
-
20:06:45"},{"id":21,"categoryId":1,"category":{"id":1,"name":"British
|
282
|
-
Ales","createDate":"2012-03-21 20:06:45"},"name":"Oatmeal Stout","description":"Oatmeal
|
281
|
+
20:06:45","updateDate":"2013-08-10 12:39:33"},{"id":21,"categoryId":1,"category":{"id":1,"name":"British
|
282
|
+
Origin Ales","createDate":"2012-03-21 20:06:45"},"name":"Oatmeal Stout","description":"Oatmeal
|
283
283
|
stouts include oatmeal in their grist, resulting in a pleasant, full flavor
|
284
284
|
and a smooth profile that is rich without being grainy. A roasted malt character
|
285
285
|
which is caramel-like and chocolate-like should be evident - smooth and not
|
@@ -335,15 +335,17 @@ http_interactions:
|
|
335
335
|
should be moderate to strong. Diacetyl should be absent or present at very
|
336
336
|
low levels. Chill haze is allowable at cold temperatures.","ibuMin":"30","ibuMax":"42","abvMin":"4.5","abvMax":"5.6","srmMin":"6","srmMax":"14","ogMin":"1.044","fgMin":"1.008","fgMax":"1.014","createDate":"2012-03-21
|
337
337
|
20:06:45"},{"id":26,"categoryId":3,"category":{"id":3,"name":"North American
|
338
|
-
Origin Ales","createDate":"2012-03-21 20:06:45"},"name":"Fresh
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
338
|
+
Origin Ales","createDate":"2012-03-21 20:06:45"},"name":"Fresh \"Wet\" Hop
|
339
|
+
Ale","description":"Any style of ale can be made into a fresh hop or wet hop
|
340
|
+
version. These ales are hopped predominantly with fresh (newly harvested and
|
341
|
+
kilned) and\/or undried (\u201cwet\u201d) hops. These beers will exhibit especially
|
342
|
+
aromas and flavors of green, almost chlorophyll-like or other fresh hop characters,
|
343
|
+
in harmony with the characters of the base style of the beer. These beers
|
344
|
+
may be aged and enjoyed after the initial \u201cfresh-hop\u201d character
|
345
|
+
diminishes. Unique character from \u201caged\u201d fresh hop beers may emerge,
|
346
|
+
but they have yet to be defined.","createDate":"2012-03-21 20:06:45","updateDate":"2013-08-10
|
347
|
+
12:40:40"},{"id":27,"categoryId":3,"category":{"id":3,"name":"North American
|
348
|
+
Origin Ales","createDate":"2012-03-21 20:06:45"},"name":"Pale American-Belgo-Style
|
347
349
|
Ale","description":"These beers must portray the unique characters imparted
|
348
350
|
by yeasts typically used in fruity and big Belgian-Style ales - These beers
|
349
351
|
are not traditional Belgian styles which are already defined. They are unique
|
@@ -1857,7 +1859,44 @@ http_interactions:
|
|
1857
1859
|
20:06:46"},{"id":157,"categoryId":12,"category":{"id":12,"name":"Mead, Cider,
|
1858
1860
|
& Perry","createDate":"2012-03-21 20:06:46"},"name":"Other Specialty Cider
|
1859
1861
|
or Perry","abvMin":"5","abvMax":"12","ogMin":"1.045","ogMax":"1.1","fgMin":"0.995","fgMax":"1.02","createDate":"2012-03-21
|
1860
|
-
20:06:46"}
|
1862
|
+
20:06:46"},{"id":158,"categoryId":3,"category":{"id":3,"name":"North American
|
1863
|
+
Origin Ales","createDate":"2012-03-21 20:06:45"},"name":"American-Style Imperial
|
1864
|
+
Porter","description":"American-style imperial porters are black in color.
|
1865
|
+
No roast barley or strong burnt\/astringent black malt character should be
|
1866
|
+
perceived. Medium malt, caramel and cocoa-like sweetness. Hop bitterness is
|
1867
|
+
perceived at a medium-low to medium level. Hop flavor and aroma may vary from
|
1868
|
+
being low to medium-high. This is a full bodied beer. Ale-like fruity esters
|
1869
|
+
should be evident but not overpowering and compliment hop character and malt
|
1870
|
+
derived sweetness. Diacetyl (butterscotch) levels should be absent.","ibuMin":"35","ibuMax":"50","abvMin":"5.5","abvMax":"9.5","srmMin":"40","srmMax":"40","ogMin":"1.08","ogMax":"1.1","fgMin":"1.02","fgMax":"1.03","createDate":"2013-08-10
|
1871
|
+
12:42:51"},{"id":159,"categoryId":4,"category":{"id":4,"name":"German Origin
|
1872
|
+
Ales","createDate":"2012-03-21 20:06:46"},"name":"Adambier","description":"Adambier
|
1873
|
+
is light brown to very dark in color. It may or may not use wheat in its formulation.
|
1874
|
+
Original styles of this beer may have a low or medium low degree of smokiness.
|
1875
|
+
Smoke character may be absent in contemporary versions of this beer. Astringency
|
1876
|
+
of highly roasted malt should be absent. Toast and caramel-like malt characters
|
1877
|
+
may be evident. Low to medium hop bitterness are perceived. Low hop flavor
|
1878
|
+
and aroma are perceived. It is originally a style from Dortmund. Adambier
|
1879
|
+
is a strong, dark, hoppy, sour ale extensively aged in wood barrels. Extensive
|
1880
|
+
aging and the acidification of this beer can mask malt and hop character to
|
1881
|
+
varying degrees. Traditional and non-hybrid varieties of European hops were
|
1882
|
+
traditionally used. A K\u00f6lsch-like ale fermentation is typical Aging in
|
1883
|
+
barrels may contribute some level of Brettanomyces and lactic character. The
|
1884
|
+
end result is a medium to full bodied complex beer in hop, malt, Brett and
|
1885
|
+
acidic balance.","ibuMin":"30","ibuMax":"50","abvMin":"7.1","abvMax":"8.7","srmMin":"15","srmMax":"35","ogMin":"1.07","ogMax":"1.09","fgMin":"1.01","fgMax":"1.02","createDate":"2013-08-10
|
1886
|
+
12:43:56"},{"id":160,"categoryId":13,"category":{"id":13,"name":"Other Origin","createDate":"2013-08-10
|
1887
|
+
12:44:20"},"name":"Grodzisz","description":"Grodzisz (also Grodziskie, and
|
1888
|
+
often referred to as Gr\u00e4tzer since WWII) is a Polish style of straw to
|
1889
|
+
golden colored ale. Chill haze is allowable at cold temperatures. The distinctive
|
1890
|
+
character comes from 100% oak wood smoked wheat malt. The overall balance
|
1891
|
+
is a sessionably medium to medium-high assertively oak- smoky malt emphasized
|
1892
|
+
beer. Aroma is dominated by oak smoke notes. They have a medium low to medium
|
1893
|
+
perceived clean hop bitterness. European noble hop flavor notes are very low
|
1894
|
+
to low, and low ester may also be present. Body is low to medium low. A K\u00f6lsch-like
|
1895
|
+
ale fermentation and aging process lends a crisp overall flavor impression
|
1896
|
+
and low degree of ester fruitiness. Sourness, diacetyl, and sweet corn-like
|
1897
|
+
DMS (dimethylsulfide) should not be perceived. Historic versions were most
|
1898
|
+
often bottle conditioned to relatively high carbonation levels.","ibuMin":"15","ibuMax":"25","abvMin":"2.1","abvMax":"2.9","srmMin":"3","srmMax":"6","ogMin":"1.028","ogMax":"1.036","fgMin":"1.006","fgMax":"1.01","createDate":"2013-08-10
|
1899
|
+
12:45:30"}],"status":"success"}'
|
1861
1900
|
http_version:
|
1862
|
-
recorded_at: Mon,
|
1901
|
+
recorded_at: Mon, 31 Mar 2014 20:13:26 GMT
|
1863
1902
|
recorded_with: VCR 2.4.0
|
@@ -8,30 +8,30 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- BreweryDB Ruby Gem 0.2.
|
11
|
+
- BreweryDB Ruby Gem 0.2.3
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
15
15
|
message:
|
16
16
|
headers:
|
17
|
+
content-type:
|
18
|
+
- application/json
|
17
19
|
date:
|
18
|
-
- Mon,
|
20
|
+
- Mon, 31 Mar 2014 20:13:26 GMT
|
19
21
|
server:
|
20
|
-
- Apache/2.2.
|
22
|
+
- Apache/2.2.26 (Amazon)
|
23
|
+
vary:
|
24
|
+
- Accept-Encoding
|
21
25
|
x-powered-by:
|
22
|
-
- PHP/5.3.
|
26
|
+
- PHP/5.3.28
|
23
27
|
x-ratelimit-limit:
|
24
28
|
- Unlimited
|
25
29
|
x-ratelimit-remaining:
|
26
30
|
- Unlimited
|
27
|
-
vary:
|
28
|
-
- Accept-Encoding
|
29
31
|
content-length:
|
30
32
|
- '603'
|
31
33
|
connection:
|
32
|
-
-
|
33
|
-
content-type:
|
34
|
-
- application/json
|
34
|
+
- Close
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
37
|
string: '{"message":"READ ONLY MODE: Request Successful","data":{"id":1,"categoryId":1,"category":{"id":1,"name":"British
|
@@ -48,5 +48,5 @@ http_interactions:
|
|
48
48
|
when at very low levels.","ibuMin":"20","ibuMax":"40","abvMin":"4.5","abvMax":"5.5","srmMin":"5","srmMax":"5","ogMin":"1.04","fgMin":"1.008","fgMax":"1.016","createDate":"2012-03-21
|
49
49
|
20:06:45"},"status":"success"}'
|
50
50
|
http_version:
|
51
|
-
recorded_at: Mon,
|
51
|
+
recorded_at: Mon, 31 Mar 2014 20:13:26 GMT
|
52
52
|
recorded_with: VCR 2.4.0
|
@@ -8,33 +8,33 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- BreweryDB Ruby Gem 0.2.
|
11
|
+
- BreweryDB Ruby Gem 0.2.3
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
15
15
|
message:
|
16
16
|
headers:
|
17
|
+
content-type:
|
18
|
+
- application/json
|
17
19
|
date:
|
18
|
-
-
|
20
|
+
- Mon, 31 Mar 2014 20:13:27 GMT
|
19
21
|
server:
|
20
|
-
- Apache/2.2.
|
22
|
+
- Apache/2.2.26 (Amazon)
|
23
|
+
vary:
|
24
|
+
- Accept-Encoding
|
21
25
|
x-powered-by:
|
22
|
-
- PHP/5.3.
|
26
|
+
- PHP/5.3.28
|
23
27
|
x-ratelimit-limit:
|
24
|
-
-
|
28
|
+
- Unlimited
|
25
29
|
x-ratelimit-remaining:
|
26
|
-
-
|
27
|
-
vary:
|
28
|
-
- Accept-Encoding
|
30
|
+
- Unlimited
|
29
31
|
content-length:
|
30
32
|
- '4353'
|
31
33
|
connection:
|
32
|
-
-
|
33
|
-
content-type:
|
34
|
-
- application/json
|
34
|
+
- Close
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string: '{"currentPage":1,"numberOfPages":9,"totalResults":
|
37
|
+
string: '{"currentPage":1,"numberOfPages":9,"totalResults":404,"data":[{"id":1531,"name":"10th
|
38
38
|
Anniversary Blend","category":"yeast","categoryDisplay":"Yeast","createDate":"2013-06-24
|
39
39
|
16:08:57"},{"id":1756,"name":"Abbey Ale","description":"Used to produce Trappist
|
40
40
|
style beers. Similar to WLP500, but is less fruity and more alcohol tolerant
|
@@ -218,5 +218,5 @@ http_interactions:
|
|
218
218
|
at least 90?F (32?C) or the use of a secondary strain can accelerate attenuation.","yeastType":"ale","attenuationMin":76,"attenuationMax":80,"fermentTempMin":70,"fermentTempMax":95,"alcoholToleranceMin":12,"alcoholToleranceMax":12,"productId":"3724","supplier":"Wyeast","yeastFormat":"liquid","category":"yeast","categoryDisplay":"Yeast","createDate":"2013-06-24
|
219
219
|
16:09:24","updateDate":"2013-06-24 16:10:53"}],"status":"success"}'
|
220
220
|
http_version:
|
221
|
-
recorded_at:
|
222
|
-
recorded_with: VCR 2.
|
221
|
+
recorded_at: Mon, 31 Mar 2014 20:13:26 GMT
|
222
|
+
recorded_with: VCR 2.4.0
|
@@ -8,30 +8,30 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- BreweryDB Ruby Gem 0.2.
|
11
|
+
- BreweryDB Ruby Gem 0.2.3
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
15
15
|
message:
|
16
16
|
headers:
|
17
|
+
content-type:
|
18
|
+
- application/json
|
17
19
|
date:
|
18
|
-
-
|
20
|
+
- Mon, 31 Mar 2014 20:13:27 GMT
|
19
21
|
server:
|
20
|
-
- Apache/2.2.
|
22
|
+
- Apache/2.2.26 (Amazon)
|
23
|
+
vary:
|
24
|
+
- Accept-Encoding
|
21
25
|
x-powered-by:
|
22
|
-
- PHP/5.3.
|
26
|
+
- PHP/5.3.28
|
23
27
|
x-ratelimit-limit:
|
24
|
-
-
|
28
|
+
- Unlimited
|
25
29
|
x-ratelimit-remaining:
|
26
|
-
-
|
27
|
-
vary:
|
28
|
-
- Accept-Encoding
|
30
|
+
- Unlimited
|
29
31
|
content-length:
|
30
32
|
- '584'
|
31
33
|
connection:
|
32
|
-
-
|
33
|
-
content-type:
|
34
|
-
- application/json
|
34
|
+
- Close
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
37
|
string: '{"message":"READ ONLY MODE: Request Successful","data":{"id":1836,"name":"American
|
@@ -45,5 +45,5 @@ http_interactions:
|
|
45
45
|
filtration.","yeastType":"ale","attenuationMin":72,"attenuationMax":76,"fermentTempMin":60,"fermentTempMax":72,"alcoholToleranceMin":10,"alcoholToleranceMax":10,"productId":"1272","supplier":"Wyeast","yeastFormat":"liquid","category":"yeast","categoryDisplay":"Yeast","createDate":"2013-06-24
|
46
46
|
16:09:23","updateDate":"2013-06-24 16:10:52"},"status":"success"}'
|
47
47
|
http_version:
|
48
|
-
recorded_at:
|
49
|
-
recorded_with: VCR 2.
|
48
|
+
recorded_at: Mon, 31 Mar 2014 20:13:26 GMT
|
49
|
+
recorded_with: VCR 2.4.0
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brewery_db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tyler Hunt
|
@@ -9,107 +9,135 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-04-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - ~>
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: 0.8.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - ~>
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: 0.8.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: faraday_middleware
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - ~>
|
32
|
+
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0.8'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - ~>
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0.8'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: hashie
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '1.1'
|
49
|
-
- - <
|
49
|
+
- - "<"
|
50
50
|
- !ruby/object:Gem::Version
|
51
51
|
version: '3'
|
52
52
|
type: :runtime
|
53
53
|
prerelease: false
|
54
54
|
version_requirements: !ruby/object:Gem::Requirement
|
55
55
|
requirements:
|
56
|
-
- -
|
56
|
+
- - ">="
|
57
57
|
- !ruby/object:Gem::Version
|
58
58
|
version: '1.1'
|
59
|
-
- - <
|
59
|
+
- - "<"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '3'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: dotenv
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.10'
|
69
|
+
type: :development
|
70
|
+
prerelease: false
|
71
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.10'
|
62
76
|
- !ruby/object:Gem::Dependency
|
63
77
|
name: pry
|
64
78
|
requirement: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
|
-
- -
|
80
|
+
- - ">="
|
67
81
|
- !ruby/object:Gem::Version
|
68
82
|
version: '0'
|
69
83
|
type: :development
|
70
84
|
prerelease: false
|
71
85
|
version_requirements: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
|
-
- -
|
87
|
+
- - ">="
|
74
88
|
- !ruby/object:Gem::Version
|
75
89
|
version: '0'
|
76
90
|
- !ruby/object:Gem::Dependency
|
77
91
|
name: rspec
|
78
92
|
requirement: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
|
-
- - ~>
|
94
|
+
- - "~>"
|
81
95
|
- !ruby/object:Gem::Version
|
82
96
|
version: '2.14'
|
83
97
|
type: :development
|
84
98
|
prerelease: false
|
85
99
|
version_requirements: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
|
-
- - ~>
|
101
|
+
- - "~>"
|
88
102
|
- !ruby/object:Gem::Version
|
89
103
|
version: '2.14'
|
90
104
|
- !ruby/object:Gem::Dependency
|
91
105
|
name: vcr
|
92
106
|
requirement: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
|
-
- - ~>
|
108
|
+
- - "~>"
|
95
109
|
- !ruby/object:Gem::Version
|
96
110
|
version: '2.0'
|
97
111
|
type: :development
|
98
112
|
prerelease: false
|
99
113
|
version_requirements: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
|
-
- - ~>
|
115
|
+
- - "~>"
|
102
116
|
- !ruby/object:Gem::Version
|
103
117
|
version: '2.0'
|
118
|
+
- !ruby/object:Gem::Dependency
|
119
|
+
name: rake
|
120
|
+
requirement: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '10.2'
|
125
|
+
type: :development
|
126
|
+
prerelease: false
|
127
|
+
version_requirements: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '10.2'
|
104
132
|
description:
|
105
133
|
email:
|
106
134
|
executables: []
|
107
135
|
extensions: []
|
108
136
|
extra_rdoc_files: []
|
109
137
|
files:
|
110
|
-
- .gitignore
|
111
|
-
- .rspec
|
112
|
-
- .travis.yml
|
138
|
+
- ".gitignore"
|
139
|
+
- ".rspec"
|
140
|
+
- ".travis.yml"
|
113
141
|
- CHANGELOG.md
|
114
142
|
- Gemfile
|
115
143
|
- LICENSE
|
@@ -169,6 +197,7 @@ files:
|
|
169
197
|
- spec/fixtures/BreweryDB_Resource/_get/an_OK_request/returns_the_data.yml
|
170
198
|
- spec/fixtures/BreweryDB_Resources_Beers/_all/fetches_all_of_the_beers_at_once.yml
|
171
199
|
- spec/fixtures/BreweryDB_Resources_Beers/_find/fetches_only_the_beer_asked_for.yml
|
200
|
+
- spec/fixtures/BreweryDB_Resources_Beers/_random/fetches_a_random_beer.yml
|
172
201
|
- spec/fixtures/BreweryDB_Resources_Breweries/_all/fetches_all_of_the_breweries_at_once.yml
|
173
202
|
- spec/fixtures/BreweryDB_Resources_Breweries/_find/fetches_only_the_brewery_asked_for.yml
|
174
203
|
- spec/fixtures/BreweryDB_Resources_Categories/_all/fetches_all_of_the_cagtegories_at_once.yml
|
@@ -203,17 +232,17 @@ require_paths:
|
|
203
232
|
- lib
|
204
233
|
required_ruby_version: !ruby/object:Gem::Requirement
|
205
234
|
requirements:
|
206
|
-
- -
|
235
|
+
- - ">="
|
207
236
|
- !ruby/object:Gem::Version
|
208
237
|
version: '1.9'
|
209
238
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
239
|
requirements:
|
211
|
-
- -
|
240
|
+
- - ">="
|
212
241
|
- !ruby/object:Gem::Version
|
213
242
|
version: '0'
|
214
243
|
requirements: []
|
215
244
|
rubyforge_project:
|
216
|
-
rubygems_version: 2.
|
245
|
+
rubygems_version: 2.2.2
|
217
246
|
signing_key:
|
218
247
|
specification_version: 4
|
219
248
|
summary: A Ruby library for using the BreweryDB API.
|
@@ -244,6 +273,7 @@ test_files:
|
|
244
273
|
- spec/fixtures/BreweryDB_Resource/_get/an_OK_request/returns_the_data.yml
|
245
274
|
- spec/fixtures/BreweryDB_Resources_Beers/_all/fetches_all_of_the_beers_at_once.yml
|
246
275
|
- spec/fixtures/BreweryDB_Resources_Beers/_find/fetches_only_the_beer_asked_for.yml
|
276
|
+
- spec/fixtures/BreweryDB_Resources_Beers/_random/fetches_a_random_beer.yml
|
247
277
|
- spec/fixtures/BreweryDB_Resources_Breweries/_all/fetches_all_of_the_breweries_at_once.yml
|
248
278
|
- spec/fixtures/BreweryDB_Resources_Breweries/_find/fetches_only_the_brewery_asked_for.yml
|
249
279
|
- spec/fixtures/BreweryDB_Resources_Categories/_all/fetches_all_of_the_cagtegories_at_once.yml
|