app_generators/newgem/newgem_generator.rb in newgem-0.15.0 vs app_generators/newgem/newgem_generator.rb in newgem-0.16.0
- old
+ new
@@ -57,11 +57,11 @@
# Config
m.template_copy_each %w( hoe.rb requirements.rb ), "config"
%w(debug).each { |file|
- m.file "empty.log", "log/#{file}.log", :chmod => 0666
+ m.file "empty_log", "log/#{file}.log", :chmod => 0666
}
# Tasks
m.file_copy_each %w( deployment.rake environment.rake website.rake ), "tasks"
@@ -132,9 +132,11 @@
opts.on("-V", "--set-version=YOUR_VERSION", String,
"Version of the gem you are creating.",
"Default: 0.0.1") { |options[:version]| }
opts.on("-W", "--website-disable",
"Disables the generation of the website for your RubyGem.") { |options[:disable_website]| }
+ opts.on("--simple",
+ "Creates a simple RubyGems scaffold.") { |x| }
end
def extract_options
@version = options[:version].to_s.split(/\./)
@version_str = @version.join('.')