language_cards 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/language_cards.rb +3 -11
- data/lib/language_cards/user_interface.rb +1 -1
- data/lib/language_cards/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30c6492cc8237c15ce2dc1d7ff4ecf6d134fd1cf04f0dac4ddcc9b40d9241632
|
4
|
+
data.tar.gz: 71c83da0b18da3593a60cc7662c7bfac4715cdc06475f93ba84a209063a4504a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10dc5db923a7dfde208de9e8c25e517fb3de597ce049fd43f028a920f53777264821726d11c1166b4d49a8c24b3296ac9c48e7afb86a5f7775b3a403044e2051
|
7
|
+
data.tar.gz: 5255775dacd450df114b8839700c01771d7ef61a8d101ee91b635ca19cf3738e2f50b708987891b5786783db102988f25f528ea873243f1e1d78eebfa38d6d29
|
data/lib/language_cards.rb
CHANGED
@@ -12,17 +12,9 @@ require 'highline'
|
|
12
12
|
# * Value to Value is simply keyboard practice and should be clocked
|
13
13
|
|
14
14
|
module LanguageCards
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
clear = case RbConfig::CONFIG['target_os']
|
19
|
-
when /mingw32|mswin/
|
20
|
-
MakeMakefile.find_executable('cls')
|
21
|
-
else
|
22
|
-
MakeMakefile.find_executable('clear')
|
23
|
-
end
|
24
|
-
clear ? `#{clear}` : "\e[3J\e[H\e[2J"
|
25
|
-
end
|
15
|
+
module ESC
|
16
|
+
CLEAR = (ERASE_SCOLLBACK = "\e[3J") + (CURSOR_HOME = "\e[H") + (ERASE_DISPLAY = "\e[2J")
|
17
|
+
end
|
26
18
|
|
27
19
|
CLI = HighLine.new
|
28
20
|
JOIN = " : "
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: language_cards
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel P. Clark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01
|
11
|
+
date: 2017-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|