urban 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -20,9 +20,9 @@ With git and local working copy
20
20
 
21
21
  == Usage
22
22
 
23
- === 1. Look up a word
23
+ === 1. Look up a definition
24
24
 
25
- $ urban cookie
25
+ $ urban cookie monster
26
26
 
27
27
  === 2. Random word
28
28
 
@@ -31,7 +31,6 @@ With git and local working copy
31
31
  == To Do
32
32
 
33
33
  * Write Tests
34
- * Implement looking up a word
35
34
  * Document with {YARD}[http://yardoc.org]
36
35
  * Implement -l switch to list all definitions
37
36
 
data/lib/urban/cli.rb CHANGED
@@ -4,10 +4,10 @@ module Urban
4
4
 
5
5
  def process
6
6
  begin
7
- result = ARGV.first ? define(ARGV.first) : random
7
+ result = ARGV.first ? define(ARGV.join(' ')) : random
8
8
  puts "#{result[:word]}: #{result[:definition]}"
9
9
  rescue
10
- puts "ERROR: #{ARGV.first.capitalize} not found!"
10
+ puts "ERROR: #{ARGV.join(' ')} not found!"
11
11
  end
12
12
  end
13
13
 
data/lib/urban/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Urban
2
- VERSION = '0.0.11'
2
+ VERSION = '0.0.12'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: urban
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.11
5
+ version: 0.0.12
6
6
  platform: ruby
7
7
  authors:
8
8
  - Thomas Miller
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-08-16 00:00:00 -05:00
13
+ date: 2011-08-17 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency