jumping_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/README.rdoc +1 -2
- data/bin/jwords +1 -1
- data/lib/jwords/say_words.rb +3 -3
- data/lib/jwords/version.rb +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -27,11 +27,10 @@ View a list of words
|
|
27
27
|
|
28
28
|
Adding words to the database
|
29
29
|
jwords -a root: корень
|
30
|
-
jwords -a to
|
30
|
+
jwords -a to play: играть
|
31
31
|
|
32
32
|
Delete a word from the database (indicated by the index of the word)
|
33
33
|
jwords -d 1
|
34
|
-
jwords -d 1 2
|
35
34
|
|
36
35
|
== Install
|
37
36
|
gem install jumping_words
|
data/bin/jwords
CHANGED
@@ -12,7 +12,7 @@ optparse = OptionParser.new do|opts|
|
|
12
12
|
#The command addes a word
|
13
13
|
opts.on( '-a', '--add', 'Add the word' ) do
|
14
14
|
if ARGV.empty? or ARGV.size < 2
|
15
|
-
puts 'You mast set 2 words! Firs is word, second is translate. Like this: "
|
15
|
+
puts 'You mast set 2 words! Firs is word, second is translate. Like this: "jwords -a to run: бежать"'
|
16
16
|
exit
|
17
17
|
else
|
18
18
|
db = DbWords.new(ARGV)
|
data/lib/jwords/say_words.rb
CHANGED
@@ -36,12 +36,12 @@ class SayWords
|
|
36
36
|
loop do
|
37
37
|
@collection.each do |word|
|
38
38
|
puts "I say #{word[0]}"
|
39
|
-
puts 'terminal-notifier -message "'+ word[0] +': '+ word[1] +'" -title "JWords"' if @show_message
|
39
|
+
#puts 'terminal-notifier -message "'+ word[0] +': '+ word[1] +'" -title "JWords"' if @show_message
|
40
40
|
system 'terminal-notifier -message "'+ word[0] +': '+ word[1] +'" -title "JWords"' if @show_message
|
41
|
-
system 'say "'+ word[0] +'"'
|
41
|
+
system 'say -v Vicki "'+ word[0] +'"'
|
42
42
|
sleep @space_words
|
43
43
|
#puts "I say #{word[1]}"
|
44
|
-
system 'say "'+ word[1] +'"'
|
44
|
+
system 'say -v Milena "'+ word[1] +'"'
|
45
45
|
sleep @space_interation
|
46
46
|
end
|
47
47
|
sleep 4 # for notification hiding
|
data/lib/jwords/version.rb
CHANGED