hemlock 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/hemlock/turn.rb +3 -4
- data/lib/hemlock/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc9c2033a0eb2ef2f91c5735bbad4a877908c505
|
4
|
+
data.tar.gz: 1c731eaf27abc888cdb3d71a55315a2e3d5ec12c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef4de5b7912d1a410a5c68b1468022ce5a73f8137a0698ee17bcbed8562611b980cd55184ac75ad24163a882edef8de3514ce44c861eac8a4e3d41bb43dc0bfe
|
7
|
+
data.tar.gz: b6ae2e3c3048e104680999d3e2602532f2ba65c480320821cdd8b5a07fc147bdb8af015487f4c455ff3fb48d5b7630653d07ea4198d80671d2876f4acd078cf1
|
data/Gemfile.lock
CHANGED
data/lib/hemlock/turn.rb
CHANGED
@@ -12,9 +12,9 @@ module Hemlock
|
|
12
12
|
puts @flashcard.question
|
13
13
|
guess = Readline.readline('>> ', false)
|
14
14
|
if @flashcard.correct?(guess)
|
15
|
-
|
15
|
+
puts Rainbow('Correct').green
|
16
16
|
else
|
17
|
-
|
17
|
+
puts Rainbow('You must submit to the quarries').red
|
18
18
|
punishment
|
19
19
|
end
|
20
20
|
end
|
@@ -30,8 +30,7 @@ module Hemlock
|
|
30
30
|
if @flashcard.correct?(guess)
|
31
31
|
i += 1
|
32
32
|
else
|
33
|
-
puts
|
34
|
-
puts "\n"
|
33
|
+
puts Rainbow('Who are you? Sisyphus?!').red
|
35
34
|
redo
|
36
35
|
end
|
37
36
|
end
|
data/lib/hemlock/version.rb
CHANGED