hoe-yard 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +9 -0
- data/lib/hoe/yard.rb +9 -14
- data.tar.gz.sig +0 -0
- metadata +2 -12
- metadata.gz.sig +1 -3
data/History.rdoc
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
=== 0.1.1 / 2010-01-10
|
2
|
+
|
3
|
+
* Only add hoe-yard as a development dependency, if we're not in the
|
4
|
+
hoe-yard gem.
|
5
|
+
* Have the +yard+ task generate documentation only for the files listed in
|
6
|
+
Manifest.txt.
|
7
|
+
* Have the +clobber_docs+ task call +rm_r+ when cleaning the <tt>docs/</tt>
|
8
|
+
directory.
|
9
|
+
|
1
10
|
=== 0.1.0 / 2010-01-08
|
2
11
|
|
3
12
|
* Initial release:
|
data/lib/hoe/yard.rb
CHANGED
@@ -12,7 +12,7 @@ gem 'yard'
|
|
12
12
|
#
|
13
13
|
module Hoe::Yard
|
14
14
|
# hoe-yard version
|
15
|
-
PLUGIN_VERSION = '0.1.
|
15
|
+
PLUGIN_VERSION = '0.1.1'
|
16
16
|
|
17
17
|
# Supported markups
|
18
18
|
YARD_MARKUP = [:markdown, :texttile, :rdoc]
|
@@ -27,15 +27,6 @@ module Hoe::Yard
|
|
27
27
|
:rdoc => ['.rdoc']
|
28
28
|
}
|
29
29
|
|
30
|
-
# The default YARD template
|
31
|
-
YARD_DEFAULT_TEMPLATE = 'default'
|
32
|
-
|
33
|
-
# The default YARD format
|
34
|
-
YARD_DEFAULT_FORMAT = :html
|
35
|
-
|
36
|
-
# The default return-type for documented methods.
|
37
|
-
YARD_DEFAULT_RETURN_TYPE = 'Object'
|
38
|
-
|
39
30
|
# Title for the YARD documentation
|
40
31
|
attr_accessor :yard_title
|
41
32
|
|
@@ -67,8 +58,10 @@ module Hoe::Yard
|
|
67
58
|
yard_version = Gem.loaded_specs['yard'].version
|
68
59
|
self.extra_dev_deps << ['yard', ">=#{yard_version}"]
|
69
60
|
|
70
|
-
|
71
|
-
|
61
|
+
unless self.name == 'hoe-yard'
|
62
|
+
# add hoe-yard as a development dependency
|
63
|
+
self.extra_dev_deps << ['hoe-yard', ">=#{PLUGIN_VERSION}"]
|
64
|
+
end
|
72
65
|
|
73
66
|
# we have YARD docs
|
74
67
|
self.spec_extras.merge!(:has_rdoc => 'yard')
|
@@ -87,12 +80,14 @@ module Hoe::Yard
|
|
87
80
|
|
88
81
|
desc "Remove YARD products"
|
89
82
|
task :clobber_docs do
|
90
|
-
|
83
|
+
if File.exists?(local_yard_dir)
|
84
|
+
rm_r local_yard_dir, :verbose => true
|
85
|
+
end
|
91
86
|
end
|
92
87
|
|
93
88
|
# define the yard task
|
94
89
|
::YARD::Rake::YardocTask.new do |t|
|
95
|
-
t.files =
|
90
|
+
t.files = self.spec.files.select { |path| path =~ /^lib\/.+\.rb$/ }
|
96
91
|
t.options = opts + ['--files'] + self.yard_files
|
97
92
|
end
|
98
93
|
task :docs => :yard
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoe-yard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Postmodern
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
pDj+ws7QjtH/Qcrr1l9jfN0ehDs=
|
31
31
|
-----END CERTIFICATE-----
|
32
32
|
|
33
|
-
date: 2010-01-
|
33
|
+
date: 2010-01-10 00:00:00 -08:00
|
34
34
|
default_executable:
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
@@ -73,16 +73,6 @@ dependencies:
|
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: 0.5.2
|
75
75
|
version:
|
76
|
-
- !ruby/object:Gem::Dependency
|
77
|
-
name: hoe-yard
|
78
|
-
type: :development
|
79
|
-
version_requirement:
|
80
|
-
version_requirements: !ruby/object:Gem::Requirement
|
81
|
-
requirements:
|
82
|
-
- - ">="
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
version: 0.1.0
|
85
|
-
version:
|
86
76
|
- !ruby/object:Gem::Dependency
|
87
77
|
name: hoe
|
88
78
|
type: :development
|
metadata.gz.sig
CHANGED