Permalink
Browse files

Use RubyGems to setup the dependency tree, we don't need to call Kern…

…el#gem
  • Loading branch information...
1 parent 8f0b49f commit 2cd0ff856e242268e9b91e88c01eb5fc52748066 @raggi committed Jul 27, 2010
Showing with 1 addition and 14 deletions.
  1. +1 −1 hanna.gemspec
  2. +0 −13 lib/hanna.rb
View
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
gem.files = Dir['Rakefile', '{bin,lib,rails,spec}/**/*', 'README*', 'LICENSE*']
gem.executables = Dir['bin/*'].map { |f| File.basename(f) }
- gem.add_dependency 'rdoc', Hanna::RDOC_VERSION_REQUIREMENT
+ gem.add_dependency 'rdoc', '~> 2.5.9'
gem.add_dependency 'haml', '~> 2.2.8'
gem.add_dependency 'rake', '~> 0.8.2'
View
@@ -13,21 +13,8 @@
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'

0 comments on commit 2cd0ff8

Please sign in to comment.