Permalink
Browse files

Hanna 0.1.3 release

  • Loading branch information...
1 parent 6df0c80 commit 74c6fad7334579f2bbb8af5b4064b6eeff7b3aed @mislav committed Aug 6, 2008
Showing with 8 additions and 10 deletions.
  1. +2 −0 .manifest
  2. +3 −3 hanna.gemspec
  3. +3 −7 lib/hanna/rdoc_patch.rb
View
2 .manifest
@@ -4,6 +4,7 @@ bin
bin/hanna
lib
lib/hanna
+lib/hanna.rb
lib/hanna/hanna.rb
lib/hanna/rdoc_patch.rb
lib/hanna/rdoctask.rb
@@ -16,4 +17,5 @@ lib/hanna/template_files/method_list.haml
lib/hanna/template_files/page.haml
lib/hanna/template_files/sections.haml
lib/hanna/template_files/styles.sass
+lib/hanna/template_helpers.rb
lib/hanna/template_page_patch.rb
View
6 hanna.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'hanna'
- s.version = '0.1.2'
+ s.version = '0.1.3'
s.date = '2008-05-03'
s.summary = "An RDoc template that rocks"
@@ -12,8 +12,8 @@ Gem::Specification.new do |s|
s.executables = ['hanna']
s.has_rdoc = false
- s.add_dependency 'rdoc', ['~> 2.2.0']
+ s.add_dependency 'rdoc', ['~> 2.1.0']
s.add_dependency 'haml', ['>= 1.8.2']
- s.files = %w(README.markdown Rakefile bin bin/hanna lib lib/hanna.rb lib/hanna lib/hanna/hanna.rb lib/hanna/rdoc_patch.rb lib/hanna/rdoctask.rb lib/hanna/template_files lib/hanna/template_files/class_index.haml lib/hanna/template_files/file_index.haml lib/hanna/template_files/index.haml lib/hanna/template_files/layout.haml lib/hanna/template_files/method_list.haml lib/hanna/template_files/page.haml lib/hanna/template_files/sections.haml lib/hanna/template_files/styles.sass lib/hanna/template_helpers.rb lib/hanna/template_page_patch.rb)
+ s.files = %w(README.markdown Rakefile bin bin/hanna lib lib/hanna lib/hanna.rb lib/hanna/hanna.rb lib/hanna/rdoc_patch.rb lib/hanna/rdoctask.rb lib/hanna/template_files lib/hanna/template_files/class_index.haml lib/hanna/template_files/file_index.haml lib/hanna/template_files/index.haml lib/hanna/template_files/layout.haml lib/hanna/template_files/method_list.haml lib/hanna/template_files/page.haml lib/hanna/template_files/sections.haml lib/hanna/template_files/styles.sass lib/hanna/template_helpers.rb lib/hanna/template_page_patch.rb)
end
View
10 lib/hanna/rdoc_patch.rb
@@ -11,12 +11,8 @@ def load_html_template
rescue NameError => e
raise unless e.message.index(@options.template.upcase)
name = File.basename(@options.template).sub(/\.rb$/, '')
- klass = name.split('_').map{ |n| n.capitalize }.join
+ # klass = name.split('_').map{ |n| n.capitalize }.join
+ klass = name.upcase
@options.template_class = @template = RDoc::Generator::HTML::const_get(klass)
end
-end
-
-# Don't ask. This works around a bug in Markup where it tries to call
-# HTML.gen_url, but RDoc::Markup::ToHtml::HTML doesn't exist. (What were they
-# thinking, I don't know.)
-RDoc::Markup::ToHtml.const_set :HTML, RDoc::Generator
+end

0 comments on commit 74c6fad

Please sign in to comment.