language_cards 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.appveyor.yml +14 -0
- data/README.md +4 -1
- data/lib/language_cards.rb +2 -3
- data/lib/language_cards/language_cards.rb +6 -1
- data/lib/language_cards/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d8db55980066812c1cd3b429098df607c90f065be95dcf379c123fdb00fc673
|
4
|
+
data.tar.gz: 9a8de6ee928a76967117067b234dd320143625e73e097a834723679caf7628de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95486550d37776bc2cbdb7ae0266b92df5c212b57126416dee3c0defbb6baa43d6688994c902ca67cfcb3bddceb49e38decc1c1cdd8f6fb296de47123d752d23
|
7
|
+
data.tar.gz: '08dc704c5dac5806a2ac2be1bc256f84098f2ce102a073e2ba5dd0d0487f6b3ced598a57aa198b96ccd542e097d27fba9b0b9c3f1ef8449166b1053287f19915'
|
data/.appveyor.yml
ADDED
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# LanguageCards
|
2
|
-
[![Gem Version](https://badge.fury.io/rb/language_cards.svg)](https://badge.fury.io/rb/language_cards)
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/language_cards.svg)](https://badge.fury.io/rb/language_cards)
|
3
|
+
[![Build Status](https://travis-ci.org/danielpclark/language_cards.svg?branch=master)](https://travis-ci.org/danielpclark/language_cards)
|
4
|
+
[![Build status](https://ci.appveyor.com/api/projects/status/y6jadvlhk50ncbrh?svg=true)](https://ci.appveyor.com/project/danielpclark/language-cards)
|
5
|
+
|
3
6
|
|
4
7
|
This is a flash card game for guessing translations or keyboard learning. Currently implemented is
|
5
8
|
English Romaji to Japanese Hirigana/Katakana and typing exercises for each. Game experience will be improved upon!
|
data/lib/language_cards.rb
CHANGED
@@ -14,6 +14,7 @@ require 'highline'
|
|
14
14
|
module LanguageCards
|
15
15
|
CLEAR = begin
|
16
16
|
require 'mkmf'
|
17
|
+
MakeMakefile::Logging.instance_variable_set(:@log, File.open(File::NULL, 'w'))
|
17
18
|
clear = case RbConfig::CONFIG['target_os']
|
18
19
|
when /mingw32|mswin/
|
19
20
|
MakeMakefile.find_executable('cls')
|
@@ -21,8 +22,6 @@ module LanguageCards
|
|
21
22
|
MakeMakefile.find_executable('clear')
|
22
23
|
end
|
23
24
|
clear ? `#{clear}` : "\e[3J\e[H\e[2J"
|
24
|
-
ensure
|
25
|
-
File.delete('mkmf.log')
|
26
25
|
end
|
27
26
|
|
28
27
|
CLI = HighLine.new
|
@@ -31,7 +30,7 @@ module LanguageCards
|
|
31
30
|
SUBMENUWIDTH = 60
|
32
31
|
|
33
32
|
::I18n.load_path = Dir[File.join(File.expand_path(File.join('..','..'), __FILE__), 'locales', '*.yml')]
|
34
|
-
::I18n.load_path += Dir[File.join(File.expand_path(ENV['HOME']), '.language_cards', 'locales', '*.yml')]
|
33
|
+
::I18n.load_path += Dir[File.join(File.expand_path(ENV['HOME']), '.language_cards', 'locales', '*.yml')] if ENV['HOME']
|
35
34
|
|
36
35
|
def self.start
|
37
36
|
LanguageCards.new.start
|
@@ -7,7 +7,12 @@ module LanguageCards
|
|
7
7
|
@CARDS = {}
|
8
8
|
|
9
9
|
Dir[File.join(File.expand_path(File.join('..','..','..'), __FILE__), 'cards', '*.yml')].+(
|
10
|
-
|
10
|
+
if ENV['HOME']
|
11
|
+
Dir[File.join(File.expand_path(ENV['HOME']), '.language_cards', 'cards', '*.yml')]
|
12
|
+
else
|
13
|
+
[]
|
14
|
+
end
|
15
|
+
).
|
11
16
|
each do |c|
|
12
17
|
next unless yaml_data = YAML.load(File.open(c).read)
|
13
18
|
for language in yaml_data.keys do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel P. Clark
|
@@ -89,6 +89,7 @@ executables:
|
|
89
89
|
extensions: []
|
90
90
|
extra_rdoc_files: []
|
91
91
|
files:
|
92
|
+
- ".appveyor.yml"
|
92
93
|
- ".gitignore"
|
93
94
|
- ".travis.yml"
|
94
95
|
- Gemfile
|