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.
Files changed (4) hide show
  1. data/README.rdoc +3 -2
  2. data/VERSION +1 -1
  3. data/bin/anagram_extractor +5 -1
  4. metadata +2 -2
@@ -16,9 +16,10 @@ First, do:
16
16
  ruby extconf.rb
17
17
  make
18
18
 
19
- Then, run
19
+ Then, run it with -c:
20
+
21
+ bin/anagram_extractor -c [source file] [destination file]
20
22
 
21
- bin/anagram_extractor [source file] [destination file]
22
23
 
23
24
  == Benchmarks
24
25
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -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
- puts Dictionary.extract_anagrams(ARGV[0], ARGV[1], ARGV[2] == 'c')
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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Iv\xC3\xA1n Vald\xC3\xA9s (@ivanvc)"