codic 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/bin/codic +4 -1
  2. data/lib/codic/version.rb +1 -1
  3. metadata +2 -2
data/bin/codic CHANGED
@@ -23,10 +23,13 @@ module Codic
23
23
  end
24
24
 
25
25
  if ARGV.empty?
26
- while word = $STDIN.gets
26
+ while word = STDIN.gets
27
27
  Codic.search_or_suggest(word.chomp)
28
28
  puts "-"*60
29
29
  end
30
+ elsif ARGV.size == 2 && ARGV[0] == "suggest"
31
+ word = ARGV[1].chomp
32
+ Codic.display(Codic.suggest(word, Codic.suggest_dic(word)))
30
33
  else
31
34
  Codic.search_or_suggest(ARGV[0])
32
35
  end
data/lib/codic/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Codic
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-17 00:00:00.000000000 Z
12
+ date: 2013-02-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri