Permalink
Browse files

'cause rake activates rdoc :'( (N.B. Submit bug to rake plz)

  • Loading branch information...
1 parent 7bb700d commit a22579d2c4f87590f5fa6091b05f5f705c81dc49 @raggi committed Jul 27, 2010
Showing with 5 additions and 7 deletions.
  1. +3 −1 Rakefile
  2. +2 −6 hanna.gemspec
View
@@ -10,12 +10,14 @@ end
ENV['RUBYOPT'] = (ENV['RUBYOPT']||'') + ' -Ilib'
+gemspec = eval(File.read('hanna.gemspec'))
+
require 'rdoc/task'
RDoc::Task.new do |t|
t.rdoc_dir = 'doc'
t.options.push('-f', 'hanna')
t.main = Dir['README*'].first
- t.rdoc_files.include(*eval(File.read('hanna.gemspec')).files)
+ t.rdoc_files.include(*gemspec.files)
t.rdoc_files.exclude('Rakefile')
end
View
@@ -1,16 +1,12 @@
-$:.unshift 'lib'
-require 'hanna'
-
Gem::Specification.new do |gem|
gem.name = 'hanna'
- gem.version = Hanna::VERSION
+ gem.version = eval(File.read('lib/hanna.rb')[/^\s+VERSION\s+=\s+(.*)$/, 1])
gem.date = Time.now.strftime('%Y-%m-%d')
gem.summary = "An RDoc template that scales"
gem.description = "Hanna is an RDoc implemented in Haml, making its source clean and maintainable. It's built with simplicity, beauty and ease of browsing in mind."
- gem.files = Dir['Rakefile', '{bin,lib,rails,spec}/**/*', 'README*', 'LICENSE*']
- gem.executables = Dir['bin/*'].map { |f| File.basename(f) }
+ gem.files = Dir['Rakefile', 'lib/**/*', 'README*', 'LICENSE*']
gem.add_dependency 'rdoc', '~> 2.5.9'
gem.add_dependency 'haml', '~> 2.2.8'

0 comments on commit a22579d

Please sign in to comment.