Module: Hanna
- Defined in:
- lib/rubygems_plugin.rb,
lib/hanna/version.rb,
lib/hanna/template_helpers.rb
Overview
define the Hanna namespace to prevent actions of rubygems_plugin from older versions
Defined Under Namespace
Modules: TemplateHelpers
Constant Summary collapse
- VERSION =
'0.1.12'
- RDOC_VERSION =
The version of RDoc that Hanna should use
'2.3.0'
- RDOC_VERSION_REQUIREMENT =
"~> #{RDOC_VERSION}"
Class Method Summary collapse
-
.require_rdoc(terminate = true) ⇒ Object
Load the correct version of RDoc.
Class Method Details
.require_rdoc(terminate = true) ⇒ Object
Load the correct version of RDoc
10 11 12 13 14 15 16 17 |
# File 'lib/hanna/version.rb', line 10 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 |