lib/juwelier/generator/options.rb in juwelier-2.1.3 vs lib/juwelier/generator/options.rb in juwelier-2.2.1
- old
+ new
@@ -7,10 +7,11 @@
super()
@orig_args = args.clone
self[:testing_framework] = :shoulda
self[:documentation_framework] = :rdoc
+ self[:readme_format] = :rdoc
self[:use_bundler] = true
self[:user_name] = ENV['GIT_AUTHOR_NAME'] || ENV['GIT_COMMITTER_NAME'] || git_config['user.name']
self[:user_email] = ENV['GIT_AUTHOR_EMAIL'] || ENV['GIT_COMMITTER_EMAIL'] || git_config['user.email']
self[:github_username] = git_config['github.user']
@@ -139,9 +140,17 @@
self[:documentation_framework] = :yard
end
o.on('--rdoc', 'use rdoc for documentation') do
self[:documentation_framework] = :rdoc
+ end
+
+ o.on('--org', 'use Orgmode for the readme') do
+ self[:readme_format] = :org
+ end
+
+ o.on('--markdown', 'use Markdown for the readme') do
+ self[:readme_format] = :markdown
end
o.on('-v', '--version', 'show version') do
self[:show_version] = true
end