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 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 => :test
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
@@ -16,7 +16,7 @@ class TinyXPathHelper
16
16
  def with_options(*options)
17
17
  r = default_options.dup
18
18
 
19
- options.each do |option|
19
+ options.reverse.each do |option|
20
20
  if not Hash === option
21
21
  option = {:format => option}
22
22
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{tiny_xpath_helper}
5
- s.version = "0.1.5"
5
+ s.version = "0.1.6"
6
6
 
7
7
  s.authors = ["Jesse Wolfe"]
8
8
  s.date = %q{2009-06-01}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rasantiago-tiny_xpath_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse Wolfe