rasantiago-tiny_xpath_helper 0.1.5 → 0.1.6
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/Rakefile +9 -2
- data/lib/tiny_xpath_helper.rb +1 -1
- data/tiny_xpath_helper.gemspec +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ require 'rake/testtask'
|
|
3
3
|
require 'rake/rdoctask'
|
4
4
|
|
5
5
|
desc 'Default: run unit tests.'
|
6
|
-
task :default => :
|
6
|
+
task :default => :rubydoctest
|
7
7
|
|
8
8
|
desc 'Test the tiny_xpath_helper plugin.'
|
9
9
|
Rake::TestTask.new(:test) do |t|
|
@@ -13,11 +13,18 @@ Rake::TestTask.new(:test) do |t|
|
|
13
13
|
t.verbose = true
|
14
14
|
end
|
15
15
|
|
16
|
+
desc 'ruby rubydoctest'
|
17
|
+
task :rubydoctest do
|
18
|
+
results = `rubydoctest README.rdoc`
|
19
|
+
raise results if results =~ /FAIL/
|
20
|
+
puts results
|
21
|
+
end
|
22
|
+
|
16
23
|
desc 'Generate documentation for the tiny_xpath_helper plugin.'
|
17
24
|
Rake::RDocTask.new(:rdoc) do |rdoc|
|
18
25
|
rdoc.rdoc_dir = 'rdoc'
|
19
26
|
rdoc.title = 'TinyXPathHelper'
|
20
27
|
rdoc.options << '--line-numbers' << '--inline-source'
|
21
|
-
rdoc.rdoc_files.include('README')
|
28
|
+
rdoc.rdoc_files.include('README.rdoc')
|
22
29
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
23
30
|
end
|
data/lib/tiny_xpath_helper.rb
CHANGED
data/tiny_xpath_helper.gemspec
CHANGED