docwu 0.0.9 → 0.0.10

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.
data/lib/docwu/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Docwu
3
- VERSION = "0.0.9"
3
+ VERSION = "0.0.10"
4
4
  end
data/lib/docwu.rb CHANGED
@@ -25,13 +25,18 @@ module Docwu
25
25
 
26
26
  _command = args.shift
27
27
 
28
- _useful_cmds = ['g', 'generate', 's', 'server', '-h', '--help', 'new']
28
+ _useful_cmds = ['g', 'generate', 's', 'server', '-h', '--help', 'new', '-v', '--version']
29
29
 
30
30
  unless _useful_cmds.include?(_command)
31
31
  puts "command #{_command} is not available, not in (#{_useful_cmds.join('|')})"
32
32
  exit
33
33
  end
34
34
 
35
+ if ['-v', '--version'].include?(_command)
36
+ puts "docwu: #{::Docwu::VERSION}"
37
+
38
+ exit
39
+ end
35
40
 
36
41
  if ['new'].include?(_command)
37
42
  _project_name = args.shift
@@ -1,3 +1,3 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'docwu', '0.0.9'
3
+ gem 'docwu', '0.0.10'
@@ -3,7 +3,7 @@ GEM
3
3
  specs:
4
4
  coderay (1.0.9)
5
5
  daemons (1.1.9)
6
- docwu (0.0.7)
6
+ docwu (0.0.10)
7
7
  coderay
8
8
  mustache_render
9
9
  nokogiri
@@ -25,4 +25,4 @@ PLATFORMS
25
25
  ruby
26
26
 
27
27
  DEPENDENCIES
28
- docwu (= 0.0.7)
28
+ docwu (= 0.0.10)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docwu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -156,7 +156,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
156
156
  version: '0'
157
157
  segments:
158
158
  - 0
159
- hash: 4290967164703240591
159
+ hash: 3634284059566908709
160
160
  required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  none: false
162
162
  requirements:
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  version: '0'
166
166
  segments:
167
167
  - 0
168
- hash: 4290967164703240591
168
+ hash: 3634284059566908709
169
169
  requirements: []
170
170
  rubyforge_project:
171
171
  rubygems_version: 1.8.25