ivanvc-dictionary 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +3 -2
- data/VERSION +1 -1
- data/bin/anagram_extractor +5 -1
- metadata +2 -2
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/bin/anagram_extractor
CHANGED
@@ -6,5 +6,9 @@ require 'dictionary'
|
|
6
6
|
if ARGV.empty?
|
7
7
|
puts "Use anagram_extractor [source dictionary] [export dictionary location]"
|
8
8
|
else
|
9
|
-
|
9
|
+
in_c = ''
|
10
|
+
if ARGV[0] == '-c'
|
11
|
+
in_c = ARGV.shift
|
12
|
+
end
|
13
|
+
puts Dictionary.extract_anagrams(ARGV[0], ARGV[1], in_c == '-c')
|
10
14
|
end
|