Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* Big fs layout refactor. Now with less fail!

  • Loading branch information...
commit 54dc80f147034c340f93dee3b2c06d8698b3e548 1 parent 0da044c
Erik Hollensbe authored
View
3  hanna.gemspec
@@ -1,4 +1,5 @@
-require File.expand_path('../lib/hanna/version', __FILE__)
+$:.unshift 'lib'
+require 'hanna'
Gem::Specification.new do |gem|
gem.name = 'hanna'
View
18 lib/hanna/hanna.rb → lib/hanna.rb
@@ -11,12 +11,28 @@
# Tony Strauss (http://github.com/DesigningPatterns)
# Michael Granger <ged@FaerieMUD.org>, who had maintained the original RDoc template
+module Hanna
+ VERSION = '0.1.13'
+
+ # The version of RDoc that Hanna should use
+ RDOC_VERSION = '2.5.9'
+ RDOC_VERSION_REQUIREMENT = "~> #{RDOC_VERSION}"
+end
+
+require 'rubygems'
+
+begin
+ gem 'rdoc', Hanna::RDOC_VERSION_REQUIREMENT
+rescue Gem::LoadError
+ $stderr.puts "Hanna requires the RDoc #{Hanna::RDOC_VERSION} gem"
+ exit 1 if terminate
+end
+
require 'pathname'
require 'haml'
require 'sass'
require 'rdoc/rdoc'
require 'rdoc/generator'
-require 'hanna/version'
class RDoc::Generator::Hanna
STYLE = 'styles.sass'
View
19 lib/hanna/version.rb
@@ -1,19 +0,0 @@
-module Hanna
-
- VERSION = '0.1.13'
-
- # The version of RDoc that Hanna should use
- RDOC_VERSION = '2.5.9'
- RDOC_VERSION_REQUIREMENT = "~> #{RDOC_VERSION}"
-
- # Load the correct version of RDoc
- def self.require_rdoc(terminate = true)
- begin
- gem 'rdoc', RDOC_VERSION_REQUIREMENT
- rescue Gem::LoadError
- $stderr.puts "Hanna requires the RDoc #{RDOC_VERSION} gem"
- exit 1 if terminate
- end
- end
-
-end
View
0  lib/hanna/template_files/class_index.haml → lib/template_files/class_index.haml
File renamed without changes
View
0  lib/hanna/template_files/file_index.haml → lib/template_files/file_index.haml
File renamed without changes
View
0  lib/hanna/template_files/index.haml → lib/template_files/index.haml
File renamed without changes
View
0  lib/hanna/template_files/layout.haml → lib/template_files/layout.haml
File renamed without changes
View
0  lib/hanna/template_files/method_index.haml → lib/template_files/method_index.haml
File renamed without changes
View
0  lib/hanna/template_files/method_list.haml → lib/template_files/method_list.haml
File renamed without changes
View
0  lib/hanna/template_files/method_search.js → lib/template_files/method_search.js
File renamed without changes
View
0  lib/hanna/template_files/page.haml → lib/template_files/page.haml
File renamed without changes
View
0  lib/hanna/template_files/prototype-1.6.0.3.js → lib/template_files/prototype-1.6.0.3.js
File renamed without changes
View
0  lib/hanna/template_files/sections.haml → lib/template_files/sections.haml
File renamed without changes
View
0  lib/hanna/template_files/styles.sass → lib/template_files/styles.sass
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.