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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3013bf00dfbcbb1b01f4600a5a3307d01edb76de0d6342309a3dc3e04123e97c
4
- data.tar.gz: ea09e798336d9a0501602c4f9e65781aec75c0bace24d3afa86898a0d3c90a10
3
+ metadata.gz: 23e00b98e49c86813af27f09ee880604c688b732a917dc47e0ac436061782028
4
+ data.tar.gz: 7f8da14d5fe1a54118069899c2074a2c3973438fbbcb6155c4f98cc7d71b20eb
5
5
  SHA512:
6
- metadata.gz: 9c7474b60e47729a45b1cd8e5cf8bde386634f960873778d78de0d7c6530487c27d8935ff962965849651f04986d084ff05b926f21b74d21c95f1d7d6634347e
7
- data.tar.gz: 46d6d068f85eb792d76adc31597e4387a6c75e27f2711df75566aeef28b500c6df550a4825596682adc3a66413e23689788138fd9a26a28f05251472aa44a641
6
+ metadata.gz: 63eb5c27170e8a8476ce91e9bf1a322efb7e82e4dd32e05658909178f70774d342cd73620c33df0e79ca3018cc1d6ab66f53190417908c7b0fa0db04c5371c9f
7
+ data.tar.gz: 3fc28cfea8e28fcd0794201c25f8959ce7c4a37bce4c72f5bdb2f4d25d411d24382950d9a0203f43392439b57fcca995867375ce5b69d3f1b32f3161dda79391
data/exe/wordwiki CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "wordwiki"
3
+ require_relative "../lib/wordwiki"
4
4
 
5
5
  Wordwiki::CLI.start(ARGV)
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
@@ -1,3 +1,3 @@
1
1
  module Wordwiki
2
- VERSION = '0.2.2'.freeze
2
+ VERSION = '0.2.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wordwiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lovepreet