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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86c637df3cabfd41e05567d2ea04f2dda7badd339f6f71074bbae2760e352728
4
- data.tar.gz: 1654787c50b3927beab0e23bffe0e24628a11ce6afc606f7a0282e4900e5e7ea
3
+ metadata.gz: 72146381cce3abc1d2944045ca47fe73d75065fc31a51e2ce1cc1d219a7e1c6f
4
+ data.tar.gz: afd5ba94c045ab5c6acb9a1845f8b0c7695f85028beddd945bd21cf9e53d5359
5
5
  SHA512:
6
- metadata.gz: 016ed9b7bd24db983bfef00b7c9879221bf512acc2f75812f2fcfbcc82a67fe32f08b73e7d0d13ff4b4f8a15801f612e7bd6c394dfb01cf5a2e4247078bfa1fe
7
- data.tar.gz: a26afc05b890bbe5f7af0c6a5d1dcf676f47a2fec887cc0eee9caeafed6a67064bf42902cd266fbddda9a9e4a723a700ed7d7d8533474e0163a2432637bc3841
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
- if cmd == 'n'
12
+ case cmd.downcase
13
+ when 'n'
17
14
  puts RubiksCli::Scrambler.get_scramble
18
- elsif cmd.downcase == 'q'
15
+ when 'q'
19
16
  break
20
- else
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
@@ -1,3 +1,3 @@
1
1
  module RubiksCli
2
- VERSION = "1.0.1"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubiks-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noah Scott