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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d8db55980066812c1cd3b429098df607c90f065be95dcf379c123fdb00fc673
4
- data.tar.gz: 9a8de6ee928a76967117067b234dd320143625e73e097a834723679caf7628de
3
+ metadata.gz: 30c6492cc8237c15ce2dc1d7ff4ecf6d134fd1cf04f0dac4ddcc9b40d9241632
4
+ data.tar.gz: 71c83da0b18da3593a60cc7662c7bfac4715cdc06475f93ba84a209063a4504a
5
5
  SHA512:
6
- metadata.gz: 95486550d37776bc2cbdb7ae0266b92df5c212b57126416dee3c0defbb6baa43d6688994c902ca67cfcb3bddceb49e38decc1c1cdd8f6fb296de47123d752d23
7
- data.tar.gz: '08dc704c5dac5806a2ac2be1bc256f84098f2ce102a073e2ba5dd0d0487f6b3ced598a57aa198b96ccd542e097d27fba9b0b9c3f1ef8449166b1053287f19915'
6
+ metadata.gz: 10dc5db923a7dfde208de9e8c25e517fb3de597ce049fd43f028a920f53777264821726d11c1166b4d49a8c24b3296ac9c48e7afb86a5f7775b3a403044e2051
7
+ data.tar.gz: 5255775dacd450df114b8839700c01771d7ef61a8d101ee91b635ca19cf3738e2f50b708987891b5786783db102988f25f528ea873243f1e1d78eebfa38d6d29
@@ -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
- CLEAR = begin
16
- require 'mkmf'
17
- MakeMakefile::Logging.instance_variable_set(:@log, File.open(File::NULL, 'w'))
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 = " : "
@@ -80,7 +80,7 @@ SCOREMENU
80
80
 
81
81
  private
82
82
  def clear
83
- printf CLEAR
83
+ printf ::LanguageCards::ESC::CLEAR
84
84
  end
85
85
  end
86
86
  end
@@ -1,3 +1,3 @@
1
1
  module LanguageCards
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
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.6
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-31 00:00:00.000000000 Z
11
+ date: 2017-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline