jekyll-cooklang-converter 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84eb0c0f3f9686e895d90daa24604cad91fc3f336ba5311c20010c8fe08a877b
4
- data.tar.gz: a48f36af64fb5dcd32e86d38525634f3c27c5e8c767c79646128c85ea167c8c2
3
+ metadata.gz: 598f60f293b9daafa043f024da2f59a48583071ce45fdfb6c15ef115e8736079
4
+ data.tar.gz: 4e1988e3e4c447b9dcfdde2c8ef525ee76c2c2d1701c3975bb4fa3db64dfb860
5
5
  SHA512:
6
- metadata.gz: 796cd7fd7ebb8c7321f87cc82ca7c1708be46b657ea11fcbda63f4724a99fd739b034720aae0e1248ebdb715c32d9e271d5104c3f0493cdcdc0f633eedaffa6b
7
- data.tar.gz: 26699a51dfc7a327fe0a0077ad3075ce8818dc22c84f492baec3efcae7d8eb310f9b725598056a427398c11f56870442c225f1461d4f9808823f63dfb03fbfd8
6
+ metadata.gz: 59648f9165ccae0db06142f2236134b7d22c2a4bcf8182d59adac5e0a1932e5c8f2f78690e9e1dccda15383da4736899d4b76067ea9eaf246543fe12fdf85f2c
7
+ data.tar.gz: 6a9a8bd601532ba52d984d8fe0062823035380fd9842ed63db079887c3c998e54375d5c87ba8485565c6d694d428e5a7895aac5dfe4f1e79c967e4d604b009a9
@@ -47,6 +47,6 @@
47
47
  <p>layer half of the cooked pasta into the bottom of a greased casserole dish. Ladle half of the meat + veggie mixture on top. Then, spread the cheese mixture from the previous step on top of everything. Layer sliced provolone on that, followed by the rest of the sauce, the rest of the pasta, and a final layer of mozarella cheese. Sprinkle the top with italian seasoning</p>
48
48
  </li>
49
49
  <li>
50
- <p>put the dish in the preheated oven for . Then it's all ready!</p>
50
+ <p>put the dish in the preheated oven for 25 minutes. Then it's all ready!</p>
51
51
  </li>
52
52
  </ol>
@@ -47,6 +47,6 @@
47
47
  <p>layer half of the cooked pasta into the bottom of a greased casserole dish. Ladle half of the meat + veggie mixture on top. Then, spread the cheese mixture from the previous step on top of everything. Layer sliced provolone on that, followed by the rest of the sauce, the rest of the pasta, and a final layer of mozarella cheese. Sprinkle the top with italian seasoning</p>
48
48
  </li>
49
49
  <li>
50
- <p>put the dish in the preheated oven for . Then it's all ready!</p>
50
+ <p>put the dish in the preheated oven for 25 minutes. Then it's all ready!</p>
51
51
  </li>
52
52
  </ol>
@@ -23,6 +23,19 @@ module Jekyll
23
23
  end
24
24
  end
25
25
 
26
+ class Timer < ToHTML
27
+ def initialize(quantity, unit, name)
28
+ @name = name
29
+ @unit = unit
30
+ @quantity = quantity
31
+ end
32
+
33
+ def to_html
34
+ return "<em>#{@quantity} #{@unit}</em>" if @unit.empty?
35
+ "<em>#{@quantity} #{@unit}</em> (#{@name})"
36
+ end
37
+ end
38
+
26
39
  class CookWare < ToHTML
27
40
  def initialize(quantity, name)
28
41
  @name = name
@@ -69,6 +82,8 @@ module Jekyll
69
82
  substep["name"]
70
83
  when "ingredient"
71
84
  substep["name"]
85
+ when "timer"
86
+ "#{substep["quantity"]} #{substep["units"]}"
72
87
  when "text"
73
88
  substep["value"]
74
89
  end
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module CooklangConverter
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-cooklang-converter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BraeTroutman