wordwiki 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/wordwiki +1 -1
- data/lib/wordwiki/cli.rb +5 -1
- data/lib/wordwiki/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23e00b98e49c86813af27f09ee880604c688b732a917dc47e0ac436061782028
|
4
|
+
data.tar.gz: 7f8da14d5fe1a54118069899c2074a2c3973438fbbcb6155c4f98cc7d71b20eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63eb5c27170e8a8476ce91e9bf1a322efb7e82e4dd32e05658909178f70774d342cd73620c33df0e79ca3018cc1d6ab66f53190417908c7b0fa0db04c5371c9f
|
7
|
+
data.tar.gz: 3fc28cfea8e28fcd0794201c25f8959ce7c4a37bce4c72f5bdb2f4d25d411d24382950d9a0203f43392439b57fcca995867375ce5b69d3f1b32f3161dda79391
|
data/exe/wordwiki
CHANGED
data/lib/wordwiki/cli.rb
CHANGED
@@ -4,12 +4,16 @@ module Wordwiki
|
|
4
4
|
class CLI < Thor
|
5
5
|
include Wordwiki
|
6
6
|
class_option :verbose, aliases: "-v"
|
7
|
-
class_option :version, aliases: "-V", type: :boolean, desc: "Prints the version"
|
8
7
|
|
9
8
|
desc "define WORD", "Get the definition for WORD"
|
10
9
|
def define(word)
|
11
10
|
validate(word)
|
12
11
|
puts definition(word)
|
13
12
|
end
|
13
|
+
|
14
|
+
desc "version", "Prints the version"
|
15
|
+
def version
|
16
|
+
puts VERSION
|
17
|
+
end
|
14
18
|
end
|
15
19
|
end
|
data/lib/wordwiki/version.rb
CHANGED