hen 0.0.6.185 → 0.0.6.193
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hens/gem.rake +4 -0
- data/lib/hens/rdoc.rake +33 -11
- metadata +3 -3
data/lib/hens/gem.rake
CHANGED
@@ -51,6 +51,10 @@ Hen :gem => :rdoc do
|
|
51
51
|
|
52
52
|
gem_options[:executables] ||= gem_options[:files].grep(/\Abin\//)
|
53
53
|
|
54
|
+
[:extra_rdoc_files, :files, :executables].each { |files|
|
55
|
+
gem_options[files].delete_if { |file| !File.exists?(file) }
|
56
|
+
}
|
57
|
+
|
54
58
|
unless gem_options[:executables].empty?
|
55
59
|
gem_options[:bindir] ||= File.dirname(gem_options[:executables].first)
|
56
60
|
gem_options[:executables].map! { |executable| File.basename(executable) }
|
data/lib/hens/rdoc.rake
CHANGED
@@ -8,20 +8,42 @@ Hen :rdoc do
|
|
8
8
|
rdoc_options[:title] ||= "#{rf_package} Application documentation"
|
9
9
|
end
|
10
10
|
|
11
|
+
### rdoc_dir
|
12
|
+
|
13
|
+
rdoc_dir = rdoc_options.delete(:rdoc_dir)
|
14
|
+
|
15
|
+
### rdoc_files
|
16
|
+
|
17
|
+
rdoc_files = FileList[rdoc_options.delete(:rdoc_files)].
|
18
|
+
sort.uniq.select { |file| File.exists?(file) }
|
19
|
+
|
20
|
+
### rdoc_options
|
21
|
+
|
22
|
+
rdoc_options.delete(:main) unless rdoc_files.include?(rdoc_options[:main])
|
23
|
+
|
24
|
+
rdoc_options = rdoc_options.map { |option, value|
|
25
|
+
option = '--' << option.to_s.tr('_', '-')
|
26
|
+
value.is_a?(String) ? [option, value] : value ? option : nil
|
27
|
+
}.compact.flatten
|
28
|
+
|
29
|
+
# Make settings available to other hens
|
11
30
|
RDOC_OPTIONS = {
|
12
|
-
:rdoc_dir =>
|
13
|
-
:rdoc_files =>
|
14
|
-
:options => rdoc_options
|
15
|
-
option = '--' << option.to_s.tr('_', '-')
|
16
|
-
value.is_a?(String) ? [option, value] : value ? option : nil
|
17
|
-
}.compact.flatten
|
31
|
+
:rdoc_dir => rdoc_dir,
|
32
|
+
:rdoc_files => rdoc_files,
|
33
|
+
:options => rdoc_options
|
18
34
|
}
|
19
35
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
36
|
+
unless rdoc_files.empty?
|
37
|
+
rdoc_task = Rake::RDocTask.new(:doc) { |rdoc|
|
38
|
+
rdoc.rdoc_dir = rdoc_dir
|
39
|
+
rdoc.rdoc_files = rdoc_files
|
40
|
+
rdoc.options = rdoc_options
|
41
|
+
}
|
42
|
+
else
|
43
|
+
task :doc do
|
44
|
+
warn 'No files to generate documentation for!'
|
45
|
+
end
|
46
|
+
end
|
25
47
|
|
26
48
|
rubyforge do |rf_config|
|
27
49
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.6.
|
4
|
+
version: 0.0.6.193
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Wille
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-01
|
12
|
+
date: 2008-02-01 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -37,9 +37,9 @@ executables:
|
|
37
37
|
extensions: []
|
38
38
|
|
39
39
|
extra_rdoc_files:
|
40
|
-
- README
|
41
40
|
- COPYING
|
42
41
|
- ChangeLog
|
42
|
+
- README
|
43
43
|
files:
|
44
44
|
- lib/hen/version.rb
|
45
45
|
- lib/hen/dsl.rb
|