Permalink
Browse files

* Big fs layout refactor. Now with less fail!

  • Loading branch information...
Erik Hollensbe
Erik Hollensbe committed Jul 12, 2010
1 parent 0da044c commit 54dc80f147034c340f93dee3b2c06d8698b3e548
View
@@ -1,4 +1,5 @@
-require File.expand_path('../lib/hanna/version', __FILE__)
+$:.unshift 'lib'
+require 'hanna'
Gem::Specification.new do |gem|
gem.name = 'hanna'
@@ -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
@@ -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
File renamed without changes.
File renamed without changes.

0 comments on commit 54dc80f

Please sign in to comment.