Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix hanna/rdoctask. re-release

  • Loading branch information...
commit ac82b8a3f943ae4028e5d4c1287f40f1246aabc9 1 parent 9838aed
@mislav authored
Showing with 16 additions and 8 deletions.
  1. +1 −0  Rakefile
  2. +11 −1 hanna.gemspec
  3. +4 −7 lib/hanna/rdoctask.rb
View
1  Rakefile
@@ -20,4 +20,5 @@ Echoe.new('hanna') do |p|
p.runtime_dependencies = []
p.runtime_dependencies << ['rdoc', Hanna::RDOC_VERSION_REQUIREMENT]
p.runtime_dependencies << ['haml', '~> 2.0']
+ p.runtime_dependencies << ['rake', '~> 0.8.2']
end
View
12 hanna.gemspec
@@ -12,7 +12,7 @@ authors:
autorequire:
bindir: bin
-date: 2008-09-20 00:00:00 +02:00
+date: 2008-09-22 00:00:00 +02:00
default_executable:
dependencies:
- !ruby/object:Gem::Dependency
@@ -36,6 +36,16 @@ dependencies:
version: "2.0"
version:
- !ruby/object:Gem::Dependency
+ name: rake
+ type: :runtime
+ version_requirement:
+ version_requirements: !ruby/object:Gem::Requirement
+ requirements:
+ - - ~>
+ - !ruby/object:Gem::Version
+ version: 0.8.2
+ version:
+- !ruby/object:Gem::Dependency
name: echoe
type: :development
version_requirement:
View
11 lib/hanna/rdoctask.rb
@@ -6,13 +6,10 @@
# don't allow it
undef :external=, :template=
- def initialize
- super
- @template = 'hanna'
- end
-
# Create the tasks defined by this task lib.
def define
+ @template = 'hanna'
+
# inline source and UTF-8 are defaults:
options << '--inline-source' unless options.include? '--inline-source' or options.include? '-S'
options << '--charset=UTF-8' if options.grep(/^(--charset\b|-c\b)/).empty?
@@ -32,13 +29,13 @@ def define
directory @rdoc_dir
task name => [rdoc_target]
- file rdoc_target => @rdoc_files + [$rakefile] do
+ file rdoc_target => @rdoc_files + [Rake.application.rakefile] do
rm_r @rdoc_dir rescue nil
Hanna::require_rdoc
require 'rdoc/rdoc'
RDoc::RDoc.new.document(option_list + @rdoc_files)
end
- self
+ return self
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.