uberdoc 0.3.1 → 0.3.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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bin/uberdoc +4 -1
- data/lib/uberdoc/options.rb +5 -1
- data/lib/uberdoc/task.rb +7 -0
- data/uberdoc.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c07e018daa870749c24cbcde4238b1ecccd2a86c
|
4
|
+
data.tar.gz: 6538dd6a6261744a2e4c9c0734755f363111dece
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0717682f118bef38a24136082acec5265529816700c135023276419363eadc09598cbf47ed524737856f8fa4ae6331986e267cec93a1f92730851ba92a67b7f2
|
7
|
+
data.tar.gz: 756aca9bf6ebe6d6f8a6a148315cdefd9aa4f7d03f267fe2d45dbb30ea85deaf1a621c972847b88c7322c2e16710116ed486e609f9062be4ddcb1d39f58c281e
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/bin/uberdoc
CHANGED
@@ -5,4 +5,7 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
5
5
|
|
6
6
|
require 'uberdoc'
|
7
7
|
|
8
|
-
UberDoc.find_and_perform_tasks(UberDoc::Options::parse(ARGV))
|
8
|
+
unless UberDoc.find_and_perform_tasks(UberDoc::Options::parse(ARGV))
|
9
|
+
puts "You did not specify valid options. Options are:".red
|
10
|
+
UberDoc::Options::parse(ARGV, true)
|
11
|
+
end
|
data/lib/uberdoc/options.rb
CHANGED
@@ -7,7 +7,7 @@ module UberDoc
|
|
7
7
|
|
8
8
|
module Options
|
9
9
|
|
10
|
-
def self.parse(args)
|
10
|
+
def self.parse(args, show_help=false)
|
11
11
|
|
12
12
|
options = OpenStruct.new
|
13
13
|
|
@@ -52,6 +52,10 @@ module UberDoc
|
|
52
52
|
|
53
53
|
parser.parse!(args)
|
54
54
|
|
55
|
+
if show_help
|
56
|
+
puts parser.help
|
57
|
+
end
|
58
|
+
|
55
59
|
return options
|
56
60
|
|
57
61
|
end # parse
|
data/lib/uberdoc/task.rb
CHANGED
@@ -48,12 +48,19 @@ module UberDoc
|
|
48
48
|
# Performs the specified tasks
|
49
49
|
#
|
50
50
|
def self.perform_tasks(tasks, options)
|
51
|
+
|
52
|
+
performed = false
|
53
|
+
|
51
54
|
tasks.each do |task|
|
52
55
|
if task.should_run?(options)
|
53
56
|
new_task = task.new(options)
|
54
57
|
new_task.perform
|
58
|
+
performed = true
|
55
59
|
end
|
56
60
|
end
|
61
|
+
|
62
|
+
performed
|
63
|
+
|
57
64
|
end # perform_tasks
|
58
65
|
|
59
66
|
#
|
data/uberdoc.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: uberdoc 0.3.
|
5
|
+
# stub: uberdoc 0.3.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "uberdoc"
|
9
|
-
s.version = "0.3.
|
9
|
+
s.version = "0.3.2"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|