souvlaki 0.0.5 → 0.0.6
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.
- data/Rakefile +0 -0
- data/lib/souvlaki.rb +9 -0
- data/lib/souvlaki/translator.rb +36 -30
- data/test/test_souvlaki.rb +0 -0
- metadata +2 -2
data/Rakefile
CHANGED
|
File without changes
|
data/lib/souvlaki.rb
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
+
# The main Class driver
|
|
1
2
|
class Souvlaki
|
|
3
|
+
# Say the recipe!
|
|
4
|
+
#
|
|
5
|
+
# Example:
|
|
6
|
+
# >> Souvlaki.say_in("english")
|
|
7
|
+
# => display the recipe
|
|
8
|
+
#
|
|
9
|
+
# Arguments:
|
|
10
|
+
# language: (String)
|
|
2
11
|
def self.say_in(language)
|
|
3
12
|
translator = Translator.new(language)
|
|
4
13
|
translator.say_in
|
data/lib/souvlaki/translator.rb
CHANGED
|
@@ -1,37 +1,43 @@
|
|
|
1
1
|
class Souvlaki::Translator
|
|
2
|
+
# Class constructor
|
|
3
|
+
# @param [String] The language
|
|
2
4
|
def initialize(language= "english")
|
|
3
5
|
@language = language
|
|
4
6
|
end
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
8
|
+
# Main function, displays the recipe!
|
|
9
|
+
#
|
|
10
|
+
# Arguments:
|
|
11
|
+
# language: (String)
|
|
12
|
+
def say_in
|
|
13
|
+
case @language
|
|
14
|
+
when "greek"
|
|
15
|
+
# ruby -Ilib ./bin/souvlaki
|
|
16
|
+
"Greek is comming soon"
|
|
17
|
+
else
|
|
18
|
+
"Ingredients
|
|
19
|
+
|
|
20
|
+
1 kg shoulder of pork (boneless) cut into cubes
|
|
21
|
+
10 pita breads
|
|
22
|
+
1 large tomato finely sliced
|
|
23
|
+
1 onion finely sliced and kept in a bowl with salted water
|
|
24
|
+
Juice from 1 lemon
|
|
25
|
+
180 ml olive oil
|
|
26
|
+
1 tsp salt and 1 tsp oregano mixed in a small bowl
|
|
27
|
+
1/2 tsp salt
|
|
28
|
+
1/2 tsp oregano
|
|
29
|
+
Salt and pepper
|
|
30
|
+
10 thin wooden skewers
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
Preparation
|
|
34
|
+
|
|
35
|
+
Fix the pork cubes onto the skewers.
|
|
36
|
+
Place them in a bowl, sprinkle with salt and pepper and then immerse in 60 ml of the oil.
|
|
37
|
+
Put in the fridge for approx. 1 hour.
|
|
38
|
+
|
|
39
|
+
Remove from the bowl and grill on both sides on a barbecue or in the grwill of the cooker.
|
|
40
|
+
Beat the remaining olive oil (setting aside 3 tbsp before you do so) in a bowl with the lemon juice.
|
|
35
41
|
|
|
36
42
|
Dip the souvlakia in this mixture and then place on a large dish or platter.
|
|
37
43
|
Sprinkle them with the salt and oregano mixture.
|
|
@@ -53,5 +59,5 @@ class Souvlaki::Translator
|
|
|
53
59
|
"
|
|
54
60
|
end
|
|
55
61
|
end
|
|
56
|
-
|
|
62
|
+
|
|
57
63
|
end
|
data/test/test_souvlaki.rb
CHANGED
|
File without changes
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: souvlaki
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -11,7 +11,7 @@ bindir: bin
|
|
|
11
11
|
cert_chain: []
|
|
12
12
|
date: 2012-04-30 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
|
-
description: A simple souvlaki recipe gem
|
|
14
|
+
description: A simple souvlaki recipe gem!
|
|
15
15
|
email: yannis.kolovos@gmail.com
|
|
16
16
|
executables:
|
|
17
17
|
- souvlaki
|