Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
Hanna 0.1.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Aug 6, 2008
1 parent 6df0c80 commit 74c6fad
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .manifest
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ bin
bin/hanna bin/hanna
lib lib
lib/hanna lib/hanna
lib/hanna.rb
lib/hanna/hanna.rb lib/hanna/hanna.rb
lib/hanna/rdoc_patch.rb lib/hanna/rdoc_patch.rb
lib/hanna/rdoctask.rb lib/hanna/rdoctask.rb
Expand All @@ -16,4 +17,5 @@ lib/hanna/template_files/method_list.haml
lib/hanna/template_files/page.haml lib/hanna/template_files/page.haml
lib/hanna/template_files/sections.haml lib/hanna/template_files/sections.haml
lib/hanna/template_files/styles.sass lib/hanna/template_files/styles.sass
lib/hanna/template_helpers.rb
lib/hanna/template_page_patch.rb lib/hanna/template_page_patch.rb
6 changes: 3 additions & 3 deletions hanna.gemspec
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = 'hanna' s.name = 'hanna'
s.version = '0.1.2' s.version = '0.1.3'
s.date = '2008-05-03' s.date = '2008-05-03'


s.summary = "An RDoc template that rocks" s.summary = "An RDoc template that rocks"
Expand All @@ -12,8 +12,8 @@ Gem::Specification.new do |s|


s.executables = ['hanna'] s.executables = ['hanna']
s.has_rdoc = false 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.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 end
10 changes: 3 additions & 7 deletions lib/hanna/rdoc_patch.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,12 +11,8 @@ def load_html_template
rescue NameError => e rescue NameError => e
raise unless e.message.index(@options.template.upcase) raise unless e.message.index(@options.template.upcase)
name = File.basename(@options.template).sub(/\.rb$/, '') 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) @options.template_class = @template = RDoc::Generator::HTML::const_get(klass)
end end
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

0 comments on commit 74c6fad

Please sign in to comment.