language_cards 0.0.4 → 0.0.5

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
- SHA1:
3
- metadata.gz: 8e76fa32eb8504389b5c5a89b853e5800f869de7
4
- data.tar.gz: c783bb25add874c678d2fb7777f9749dc3a76e87
2
+ SHA256:
3
+ metadata.gz: 7a7805643bb79ba8a48eab2c3593cacc1a4d7ebba6d07ef082d080ada26fc3b1
4
+ data.tar.gz: a5a5a2a7f670ca36e471bb3dab52eab1d03b9d8faa28183654c02fd3d7bf143a
5
5
  SHA512:
6
- metadata.gz: be3f18fb2a017f0abd4dcd585806460f85ecc42f1d0c0469e06ac39fca5948498c70e723bae242b6bf4126cab9c8f6a613015f4ce68ed6b4c1ba28b18ae6b76e
7
- data.tar.gz: b926e45d6eb9a3a5c7967de1a877ea8f03bf15ab3c673f7bd6b59e809ad97c83da19625d938784e66d4842d272da60f336ec3805f4f2d25389110a4936fea73c
6
+ metadata.gz: 97613087c49b57ab0c03302b640d9c5d44107a8bc74e2f9d248f07747b1fbecd69561db064f26eae260da532b02704752f7045ff924397f996ed210ec5f97740
7
+ data.tar.gz: 65f9aabe7672a1b2d35b8f4536b9f5c2639e57ee7519d690919bf07db44efca943a9c4a78076056b2099b1dbf9bb5a8fd4704afb12050aca7ba81494b4cf720f
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # LanguageCards
2
- [![Gem Version](https://badge.fury.io/rb/language_cards.svg)](https://badge.fury.io/rb/language_cards)[![Build Status](https://travis-ci.org/danielpclark/langauge_cards.svg?branch=master)](https://travis-ci.org/danielpclark/langauge_cards)
2
+ [![Gem Version](https://badge.fury.io/rb/language_cards.svg)](https://badge.fury.io/rb/language_cards)[![Build Status](https://travis-ci.org/danielpclark/language_cards.svg?branch=master)](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')].each do |c|
10
- yaml_data = YAML.load(File.open(c).read)
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]))
@@ -1,3 +1,3 @@
1
1
  module LanguageCards
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -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
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-10 00:00:00.000000000 Z
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.8
134
+ rubygems_version: 2.6.10
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: Flashcard game for language learning.