lib/rant/import/rubypackage.rb in rant-0.3.2 vs lib/rant/import/rubypackage.rb in rant-0.3.4
- old
+ new
@@ -1,9 +1,9 @@
require 'rant/rantlib'
-class Rant::RubyPackage
+class Rant::Generators::RubyPackage
class << self
def rant_generate(app, ch, args, &block)
if !args || args.empty?
self.new(:app => app, :__caller__ => ch, &block)
@@ -264,10 +264,10 @@
t.fail "Couldn't load `rubygems'. " +
"Probably RubyGems isn't installed on your system."
end
Gem.manage_gems
# map rdoc options from application vars
- @data["rdoc_options"] ||= @app.var["gen-rubydoc-rdoc_opts"]
+ @data["rdoc_options"] ||= @app.var[:rubydoc_opts]
if @data["rdoc_options"]
# remove the --op option, otherwise rubygems will
# install the rdoc in the wrong directory (at least as
# of version 0.8.6 of rubygems)
@data["rdoc_options"] = without_rdoc_op_opt(@data["rdoc_options"])