hangry 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,67 @@
1
+ # encoding: UTF-8
2
+ require 'hangry'
3
+
4
+ describe Hangry do
5
+
6
+ context "bettycrocker.com recipe" do
7
+ let(:html) { File.read("spec/fixtures/betty_crocker.html") }
8
+ subject { Hangry.parse(html) }
9
+
10
+ its(:author) { should == nil }
11
+ its(:canonical_url) { should == "http://www.bettycrocker.com/recipes/skillet-chicken-nachos/9bf0c3be-09dd-4b1b-8cf4-a9cfa979b232" }
12
+ its(:cook_time) { should == nil }
13
+ its(:description) { should == "Dinner ready in 20 minutes! Enjoy these delicious nachos spooned with chicken mixture sprinkled with cheese and cilantro - perfect for Mexican cuisine." }
14
+ its(:ingredients) {
15
+ should == [
16
+ "1 tablespoon olive or vegetable oil",
17
+ "1 1/4 lb boneless skinless chicken breasts, cut into 1/4-inch pieces",
18
+ "1 package (1 oz) Old El Paso® taco seasoning mix",
19
+ "1 can (8 oz) tomato sauce",
20
+ "1 medium red bell pepper, chopped (1 cup)",
21
+ "1 can (15 oz) Progresso® black beans, drained, rinsed",
22
+ "1 can (7 oz) Green Giant® Niblets® whole kernel sweet corn, drained",
23
+ "2 cups shredded Mexican cheese blend (8 oz)",
24
+ "6 oz tortilla chips (about 42 chips)",
25
+ "1/4 cup chopped fresh cilantro"
26
+ ]
27
+ }
28
+ its(:name) { should == "Skillet Chicken Nachos" }
29
+ its(:nutrition) do
30
+ should == {
31
+ calories: '520',
32
+ cholesterol: '95 mg',
33
+ fiber: '5 g',
34
+ protein: '36 g',
35
+ saturated_fat: '9 g',
36
+ sodium: '1320 mg',
37
+ sugar: '4 g',
38
+ total_carbohydrates: '38 g',
39
+ total_fat: '4',
40
+ trans_fat: '0 g',
41
+ unsaturated_fat: nil
42
+ }
43
+ end
44
+
45
+ its(:instructions) {
46
+ instructions = <<-EOS
47
+ 1
48
+ In 12-inch nonstick skillet, heat oil over medium-high heat. Cook chicken in oil 3 to 5 minutes, stirring occasionally, until no longer pink in center.
49
+ 2
50
+ Stir in taco seasoning mix, tomato sauce, bell pepper, beans, corn and 1 cup of the cheese. Reduce heat to medium; cook 3 to 5 minutes, stirring occasionally, until heated through and cheese is melted.
51
+ 3
52
+ Divide tortilla chips between 6 plates. Spoon chicken mixture evenly over chips. Sprinkle with remaining 1 cup cheese and the cilantro.
53
+ EOS
54
+ should == instructions.strip
55
+ }
56
+ its(:prep_time) { should == nil }
57
+ its(:published_date) { should == nil }
58
+ its(:total_time) { should == 20 }
59
+ its(:yield) { should == "1 Serving" }
60
+
61
+ end
62
+
63
+ end
64
+
65
+
66
+
67
+
@@ -87,6 +87,14 @@ For the bunny: Spread a thin layer of frosting on the flat side of one cake laye
87
87
  Place the larger piece of cake, cut-side down, on a large platter or cake board. If using a rectangular cake board, place the larger piece so that the long edges are parallel with the long edges of the board. This is the body of the bunny. Cut the smaller piece of cake in half crosswise, so you have two layered wedges. Place one wedge in front of the body, with one flat side on the board and the other flat side against the body. The curved side will be on top. Take a serrated knife and round off the sharp edges on top of the head. Cut the tip off (the nose) at a 45-degree angle. Reserve all scraps in a bowl.
88
88
  Separate the layers of the remaining wedge of cake. These will be the back legs. Round the sharp edges of the cake wedges with your knife, and add to the scrap bowl. Place one piece on each side of the bunny, with one flat side down and the other flat side facing forward (the round side towards the back of the bunny), about 1-inch from the end of the bunny's body.
89
89
  Mix the cake scraps in the bowl with a fork until mashed, and then pack into a ball with your hands. Place the ball behind the bunny's body and adhere with a dab of frosting. This is the bunny's tail.
90
+ Frost the entire bunny, tail and all, using 2 to 3 cups of the frosting, keeping some definition with the bunny parts, and frosting more generously around any sharp edges to give a rounded look to the bunny parts. Sprinkle the bunny with the coconut to fully cover. Gently pat to adhere.
91
+ Insert the biscotti between the head and body, pressing into the cake to secure them. These are the ears. Place the base of the ears close together at the center of the head and angle them out. Frost the front of each biscotti with some frosting. Then, using the pink decorating icing, frost a smaller strip in the center of each biscotti, going down to where the ears meet the head but not going all the way to the top.
92
+ To make the face, press a black jelly bean into each side of the head for the eyes. Cut one of the marshmallows into 3 circles, discard the middle piece, and press the 2 end circles, cut-sides-in, into the front of the face for the bunny cheeks. Take the white jelly bean halves and push them into face below the cheeks, round-sides-out, for the teeth. Place the pink jelly bean above for the nose.
93
+ Unroll the licorice wheel and cut 2 pieces about 1 1/2 inches long each. For each piece, peel the strips apart halfway down, and then cut each separated strip in half lengthwise so you end up with a piece looking a bit like a broom. Repeat with the second piece of licorice. Tuck each piece, with a dab of frosting, behind a marshmallow cheek, with the cut ends facing out, for the whiskers.
94
+ Cut the second marshmallow in half lengthwise. Make 3 slits in each half, going about halfway through (these are the toes), and place in front of the legs for the bunny's feet. Adhere the bottom of the feet with icing if necessary.
95
+ Cook's Note:
96
+ Take 2 1/2 sheets of parchment paper and cut in half. Line the edges of your cake board with these parchment rectangles so that they form a rectangle of open space in the middle. Build your cake on the edges of these pieces of parchment. When you are finished you can slide them away along with any excess icing and coconut.
97
+ Make sure your cakes are completely cooled before you being to ice and cut them.
90
98
  instructions
91
99
  should == instructions.strip
92
100
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hangry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2013-04-02 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70196235674160 !ruby/object:Gem::Requirement
16
+ requirement: &70186222451520 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70196235674160
24
+ version_requirements: *70186222451520
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70196235673680 !ruby/object:Gem::Requirement
27
+ requirement: &70186222435960 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70196235673680
35
+ version_requirements: *70186222435960
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: pry
38
- requirement: &70196235673220 !ruby/object:Gem::Requirement
38
+ requirement: &70186222435460 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70196235673220
46
+ version_requirements: *70186222435460
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: activesupport
49
- requirement: &70196235672600 !ruby/object:Gem::Requirement
49
+ requirement: &70186222434320 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '3.0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70196235672600
57
+ version_requirements: *70186222434320
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: iso8601
60
- requirement: &70196235672000 !ruby/object:Gem::Requirement
60
+ requirement: &70186222433640 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 0.4.0
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70196235672000
68
+ version_requirements: *70186222433640
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: nokogiri
71
- requirement: &70196235671420 !ruby/object:Gem::Requirement
71
+ requirement: &70186222432860 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '1.5'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70196235671420
79
+ version_requirements: *70186222432860
80
80
  description: A recipe microformat parser.
81
81
  email:
82
82
  - ian@iancanderson.com
@@ -103,6 +103,7 @@ files:
103
103
  - lib/hangry/schema_org_recipe_parser.rb
104
104
  - lib/hangry/version.rb
105
105
  - spec/fixtures/allrecipes.html
106
+ - spec/fixtures/betty_crocker.html
106
107
  - spec/fixtures/bigoven.html
107
108
  - spec/fixtures/epicurious.html
108
109
  - spec/fixtures/food_network_schema_org.html
@@ -110,6 +111,7 @@ files:
110
111
  - spec/fixtures/myrecipes.com.html
111
112
  - spec/hangry_spec.rb
112
113
  - spec/real_examples/all_recipes_spec.rb
114
+ - spec/real_examples/betty_crocker_spec.rb
113
115
  - spec/real_examples/big_oven_spec.rb
114
116
  - spec/real_examples/epicurious_spec.rb
115
117
  - spec/real_examples/food_network_spec.rb
@@ -140,6 +142,7 @@ specification_version: 3
140
142
  summary: Parses microformatted recipe HTML into a plain-old-ruby Recipe object.
141
143
  test_files:
142
144
  - spec/fixtures/allrecipes.html
145
+ - spec/fixtures/betty_crocker.html
143
146
  - spec/fixtures/bigoven.html
144
147
  - spec/fixtures/epicurious.html
145
148
  - spec/fixtures/food_network_schema_org.html
@@ -147,6 +150,7 @@ test_files:
147
150
  - spec/fixtures/myrecipes.com.html
148
151
  - spec/hangry_spec.rb
149
152
  - spec/real_examples/all_recipes_spec.rb
153
+ - spec/real_examples/betty_crocker_spec.rb
150
154
  - spec/real_examples/big_oven_spec.rb
151
155
  - spec/real_examples/epicurious_spec.rb
152
156
  - spec/real_examples/food_network_spec.rb