learn_words 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/Manifest +1 -1
- data/README.rdoc +46 -0
- data/Rakefile +1 -1
- data/learn_words.gemspec +5 -5
- data/lib/learn_words.rb +1 -0
- metadata +7 -7
- metadata.gz.sig +0 -0
- data/README +0 -6
data.tar.gz.sig
CHANGED
Binary file
|
data/Manifest
CHANGED
data/README.rdoc
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
=== About
|
2
|
+
Simple application for learning foreign language words
|
3
|
+
|
4
|
+
=== Installation
|
5
|
+
Installation process is quite simple (notice, that ruby could be already installed)
|
6
|
+
|
7
|
+
* install ruby from http://www.ruby-lang.org/en/downloads/
|
8
|
+
|
9
|
+
* install rubygems from http://rubygems.org/pages/download
|
10
|
+
|
11
|
+
* execute
|
12
|
+
gem install learn_words
|
13
|
+
to install application itself
|
14
|
+
|
15
|
+
=== Words file
|
16
|
+
To use this application you need to have a file in a special format:
|
17
|
+
|
18
|
+
* any number of lines with foreign word and it's translation separated by <tt><Tab></tt>
|
19
|
+
|
20
|
+
* if there are more than one variant for foreign word, separate them by "/"
|
21
|
+
|
22
|
+
* if line starts with "#" it is ignored
|
23
|
+
|
24
|
+
Example:
|
25
|
+
apple яблоко
|
26
|
+
# some comments
|
27
|
+
city/town город
|
28
|
+
|
29
|
+
=== Usage
|
30
|
+
Now execute
|
31
|
+
learn_words /path/to/file/with/words
|
32
|
+
to start learning words. There are some options:
|
33
|
+
|
34
|
+
* <tt>--limit N</tt> - used for setting limit of words learning,
|
35
|
+
you would be asked while you answer +N+ times correctly
|
36
|
+
|
37
|
+
* <tt>--part M/K</tt> - used for splitting big lists of words into parts,
|
38
|
+
+K+ - total number of parts, +M+ - index of part to learn (1 <= +M+ <= +K+)
|
39
|
+
|
40
|
+
While learning words you can use these commands:
|
41
|
+
* <tt>exit</tt> - to quit (or <tt>^C</tt>, or <tt>^D</tt>)
|
42
|
+
* <tt>?</tt> - to get stats (how many learned, how many to learn)
|
43
|
+
* <tt>!</tt> - to mark the word as learnt (or ban it)
|
44
|
+
|
45
|
+
---------------------------------------------------------------------
|
46
|
+
Copyright © 2010 Vladimir Parfinenko, released under the MIT license.
|
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('learn_words', '0.1.
|
5
|
+
Echoe.new('learn_words', '0.1.1') do |p|
|
6
6
|
p.description = "Simple script for learning foreign language words"
|
7
7
|
p.url = "http://github.com/cypok/learn_words"
|
8
8
|
p.author = "Vladimir Parfinenko"
|
data/learn_words.gemspec
CHANGED
@@ -2,20 +2,20 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{learn_words}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Vladimir Parfinenko"]
|
9
9
|
s.cert_chain = ["/Users/cypok/.gem/gem-public_cert.pem"]
|
10
|
-
s.date = %q{2010-10-
|
10
|
+
s.date = %q{2010-10-09}
|
11
11
|
s.default_executable = %q{learn_words}
|
12
12
|
s.description = %q{Simple script for learning foreign language words}
|
13
13
|
s.email = %q{vladimir.parfinenko@gmail.com}
|
14
14
|
s.executables = ["learn_words"]
|
15
|
-
s.extra_rdoc_files = ["README", "bin/learn_words", "lib/learn_words.rb"]
|
16
|
-
s.files = ["MIT-LICENSE", "Manifest", "README", "Rakefile", "bin/learn_words", "lib/learn_words.rb", "learn_words.gemspec"]
|
15
|
+
s.extra_rdoc_files = ["README.rdoc", "bin/learn_words", "lib/learn_words.rb"]
|
16
|
+
s.files = ["MIT-LICENSE", "Manifest", "README.rdoc", "Rakefile", "bin/learn_words", "lib/learn_words.rb", "learn_words.gemspec"]
|
17
17
|
s.homepage = %q{http://github.com/cypok/learn_words}
|
18
|
-
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Learn_words", "--main", "README"]
|
18
|
+
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Learn_words", "--main", "README.rdoc"]
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
s.rubyforge_project = %q{learn_words}
|
21
21
|
s.rubygems_version = %q{1.3.7}
|
data/lib/learn_words.rb
CHANGED
@@ -135,6 +135,7 @@ class LearnWords
|
|
135
135
|
say %{ <%= color(' Learn Words ! ', GREEN+UNDERLINE) %>}
|
136
136
|
say %{ <%= color('made by Vladimir Parfinenko aka cypok', GREEN) %>}
|
137
137
|
say %{ <%= color(' some fixes by Ivan Novikov aka NIA ', GREEN) %>}
|
138
|
+
say %{ <%= color(' version 0.1.1 ', GREEN) %>}
|
138
139
|
STDOUT.write "\n"
|
139
140
|
say %{Note: if there are more than one variant,}
|
140
141
|
say %{separate them by "/" or enter one by one}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: learn_words
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Vladimir Parfinenko
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
78F0qvtLjR0DAnN6uYs98PR+jHE+0ckLX3D9sw==
|
37
37
|
-----END CERTIFICATE-----
|
38
38
|
|
39
|
-
date: 2010-10-
|
39
|
+
date: 2010-10-09 00:00:00 +07:00
|
40
40
|
default_executable:
|
41
41
|
dependencies:
|
42
42
|
- !ruby/object:Gem::Dependency
|
@@ -60,13 +60,13 @@ executables:
|
|
60
60
|
extensions: []
|
61
61
|
|
62
62
|
extra_rdoc_files:
|
63
|
-
- README
|
63
|
+
- README.rdoc
|
64
64
|
- bin/learn_words
|
65
65
|
- lib/learn_words.rb
|
66
66
|
files:
|
67
67
|
- MIT-LICENSE
|
68
68
|
- Manifest
|
69
|
-
- README
|
69
|
+
- README.rdoc
|
70
70
|
- Rakefile
|
71
71
|
- bin/learn_words
|
72
72
|
- lib/learn_words.rb
|
@@ -82,7 +82,7 @@ rdoc_options:
|
|
82
82
|
- --title
|
83
83
|
- Learn_words
|
84
84
|
- --main
|
85
|
-
- README
|
85
|
+
- README.rdoc
|
86
86
|
require_paths:
|
87
87
|
- lib
|
88
88
|
required_ruby_version: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|