rubygems_generators/executable/executable_generator.rb in newgem-0.23.1 vs rubygems_generators/executable/executable_generator.rb in newgem-0.24.0

- old
+ new

@@ -1,14 +1,14 @@ class ExecutableGenerator < RubiGen::Base DEFAULT_SHEBANG = File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']) - + default_options :shebang => DEFAULT_SHEBANG, :author => nil - + attr_reader :bin_name, :author - + def initialize(runtime_args, runtime_options = {}) super usage if args.empty? @bin_name = args.shift extract_options @@ -44,10 +44,10 @@ opts.separator 'Options:' opts.on("-a", "--author=\"Your Name\"", String, "Generated app file will include your name.", "Default: none") { |x| options[:author] = x } end - + def extract_options @author = options[:author] end end \ No newline at end of file