language_cards 0.0.4 → 0.0.5
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 +5 -5
- data/README.md +2 -2
- data/lib/language_cards/language_cards.rb +4 -2
- data/lib/language_cards/version.rb +1 -1
- data/lib/language_cards.rb +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7a7805643bb79ba8a48eab2c3593cacc1a4d7ebba6d07ef082d080ada26fc3b1
|
4
|
+
data.tar.gz: a5a5a2a7f670ca36e471bb3dab52eab1d03b9d8faa28183654c02fd3d7bf143a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97613087c49b57ab0c03302b640d9c5d44107a8bc74e2f9d248f07747b1fbecd69561db064f26eae260da532b02704752f7045ff924397f996ed210ec5f97740
|
7
|
+
data.tar.gz: 65f9aabe7672a1b2d35b8f4536b9f5c2639e57ee7519d690919bf07db44efca943a9c4a78076056b2099b1dbf9bb5a8fd4704afb12050aca7ba81494b4cf720f
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# LanguageCards
|
2
|
-
[](https://badge.fury.io/rb/language_cards)[](https://badge.fury.io/rb/language_cards)[](https://travis-ci.org/danielpclark/language_cards)
|
3
3
|
|
4
4
|
This is a flash card game for guessing translations or keyboard learning. Currently implemented is
|
5
5
|
English Romaji to Japanese Hirigana/Katakana and typing exercises for each. Game experience will be improved upon!
|
@@ -42,7 +42,7 @@ mapped; the how is for whether you want to do a translation mapping key to value
|
|
42
42
|
value to value. This part of the mapping must be with the symbol entries of :k or :v. Along with the mapping
|
43
43
|
entry you may puts all the keys and values for your cards. Just follow the below outline for a working example.
|
44
44
|
|
45
|
-
```
|
45
|
+
```yaml
|
46
46
|
---
|
47
47
|
Japanese:
|
48
48
|
Hiragana:
|
@@ -6,8 +6,10 @@ module LanguageCards
|
|
6
6
|
def initialize
|
7
7
|
@CARDS = {}
|
8
8
|
|
9
|
-
Dir[File.join(File.expand_path(File.join('..','..','..'), __FILE__), 'cards', '*.yml')]
|
10
|
-
|
9
|
+
Dir[File.join(File.expand_path(File.join('..','..','..'), __FILE__), 'cards', '*.yml')].+(
|
10
|
+
Dir[File.join(File.expand_path(ENV['HOME']), '.language_cards', 'cards', '*.yml')]).
|
11
|
+
each do |c|
|
12
|
+
next unless yaml_data = YAML.load(File.open(c).read)
|
11
13
|
for language in yaml_data.keys do
|
12
14
|
if @CARDS.has_key? language
|
13
15
|
@CARDS[language] = Hash(@CARDS[language]).merge(Hash(yaml_data[language]))
|
data/lib/language_cards.rb
CHANGED
@@ -31,6 +31,7 @@ module LanguageCards
|
|
31
31
|
SUBMENUWIDTH = 60
|
32
32
|
|
33
33
|
::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')]
|
34
35
|
|
35
36
|
def self.start
|
36
37
|
LanguageCards.new.start
|
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.5
|
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-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
131
|
version: '0'
|
132
132
|
requirements: []
|
133
133
|
rubyforge_project:
|
134
|
-
rubygems_version: 2.6.
|
134
|
+
rubygems_version: 2.6.10
|
135
135
|
signing_key:
|
136
136
|
specification_version: 4
|
137
137
|
summary: Flashcard game for language learning.
|