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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a7805643bb79ba8a48eab2c3593cacc1a4d7ebba6d07ef082d080ada26fc3b1
4
- data.tar.gz: a5a5a2a7f670ca36e471bb3dab52eab1d03b9d8faa28183654c02fd3d7bf143a
3
+ metadata.gz: 4d8db55980066812c1cd3b429098df607c90f065be95dcf379c123fdb00fc673
4
+ data.tar.gz: 9a8de6ee928a76967117067b234dd320143625e73e097a834723679caf7628de
5
5
  SHA512:
6
- metadata.gz: 97613087c49b57ab0c03302b640d9c5d44107a8bc74e2f9d248f07747b1fbecd69561db064f26eae260da532b02704752f7045ff924397f996ed210ec5f97740
7
- data.tar.gz: 65f9aabe7672a1b2d35b8f4536b9f5c2639e57ee7519d690919bf07db44efca943a9c4a78076056b2099b1dbf9bb5a8fd4704afb12050aca7ba81494b4cf720f
6
+ metadata.gz: 95486550d37776bc2cbdb7ae0266b92df5c212b57126416dee3c0defbb6baa43d6688994c902ca67cfcb3bddceb49e38decc1c1cdd8f6fb296de47123d752d23
7
+ data.tar.gz: '08dc704c5dac5806a2ac2be1bc256f84098f2ce102a073e2ba5dd0d0487f6b3ced598a57aa198b96ccd542e097d27fba9b0b9c3f1ef8449166b1053287f19915'
data/.appveyor.yml ADDED
@@ -0,0 +1,14 @@
1
+ # appveyor.yml
2
+ install:
3
+ - set PATH=C:\Ruby23-x64\bin;%PATH%
4
+ - bundle install
5
+
6
+ build: off
7
+
8
+ before_test:
9
+ - ruby -v
10
+ - gem -v
11
+ - bundle -v
12
+
13
+ test_script:
14
+ - bundle exec rake
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)[![Build Status](https://travis-ci.org/danielpclark/language_cards.svg?branch=master)](https://travis-ci.org/danielpclark/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!
@@ -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
- Dir[File.join(File.expand_path(ENV['HOME']), '.language_cards', 'cards', '*.yml')]).
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
@@ -1,3 +1,3 @@
1
1
  module LanguageCards
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
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.5
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