Changeset 1124

Show
Ignore:
Timestamp:
12/18/07 17:43:48 (1 year ago)
Author:
drnicwillia..@gmail.com
Message:

merb_plugin includes rubigen scripts for generated gems

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app_generators/merb_plugin/merb_plugin_generator.rb

    r773 r1124  
    44  DEFAULT_SHEBANG = File.join(Config::CONFIG['bindir'], 
    55                              Config::CONFIG['ruby_install_name']) 
     6   
     7  default_options   :shebang => DEFAULT_SHEBANG 
    68   
    79   
     
    3234      m.template "sampleplugin.rb", "lib/#{name}.rb", :assigns => {:name => name} 
    3335      m.template "merbtasks.rb", "lib/#{name}/merbtasks.rb", :assigns => {:name => name} 
     36       
     37      m.dependency "install_rubigen_scripts", [destination_root, "rubygems"], :shebang => options[:shebang] 
    3438    end 
    3539  end