rubiks-cli 1.0.1 → 1.1.0
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.
- checksums.yaml +4 -4
- data/bin/rubiks +8 -8
- data/lib/rubiks_cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 72146381cce3abc1d2944045ca47fe73d75065fc31a51e2ce1cc1d219a7e1c6f
|
|
4
|
+
data.tar.gz: afd5ba94c045ab5c6acb9a1845f8b0c7695f85028beddd945bd21cf9e53d5359
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d924fd2eafcc87b24ebe44b84045fedfefa1abea045cc1bebd45e83e9dfcc311d32fafaedd00bf608349c1566e3a141ad70f3c26f2df1f0057cbad4030c98cc
|
|
7
|
+
data.tar.gz: 66e7ac7bb6e1f382c641a1e201e5d27ca58d66b89a8429c8fb4e1d6ea8ab178edfe2ba36d996cc0def8934a24b8a541e518529a2ee0c7fcca354b3bda047c83e
|
data/bin/rubiks
CHANGED
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
require 'rubiks_cli'
|
|
4
4
|
|
|
5
|
-
HELP = "Press Enter to start timing\nPress any key to stop timing\nType 'q' to quit\nType 'n' for a new scramble"
|
|
5
|
+
HELP = "Press Enter to start timing\nPress any key to stop timing\nType 'q' to quit\nType 'n' for a new scramble\nType 'h' or '?' for this message"
|
|
6
6
|
|
|
7
7
|
cmd = 'n'
|
|
8
8
|
|
|
9
9
|
while true
|
|
10
10
|
RubiksCli::Timer.clear_screen
|
|
11
|
-
if cmd == ''
|
|
12
|
-
RubiksCli::Timer.start
|
|
13
|
-
cmd = 'n'
|
|
14
|
-
end
|
|
15
11
|
|
|
16
|
-
|
|
12
|
+
case cmd.downcase
|
|
13
|
+
when 'n'
|
|
17
14
|
puts RubiksCli::Scrambler.get_scramble
|
|
18
|
-
|
|
15
|
+
when 'q'
|
|
19
16
|
break
|
|
20
|
-
|
|
17
|
+
when 'h', '?'
|
|
21
18
|
puts HELP
|
|
19
|
+
else
|
|
20
|
+
RubiksCli::Timer.start
|
|
21
|
+
puts RubiksCli::Scrambler.get_scramble
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
cmd = gets.chomp
|
data/lib/rubiks_cli/version.rb
CHANGED