DEFAULT_OPTIONS |
= |
{ :print_template_file => nil, :template_file => nil, :templates => false, :version => false, :output_file => nil, :local => false, :srpm => false, :deps => false, :nongem => false, :doc_subpackage => true, :fetch => false, :directory => CURRENT_DIR, }.freeze |
DEFAULT_MACROS |
= |
{ :instdir => '%{gem_instdir}', :libdir => '%{gem_libdir}', :doc => '%doc', :license => '%license', :ignore => '%exclude' |
|
The defaults should mostly work
|
DEFAULT_RULES |
= |
{ :doc => [ /\/?CHANGELOG.*/i, /\/?CONTRIBUTING.*/i, /\/?CONTRIBUTORS.*/i, /\/?AUTHORS.*/i, /\/?README.*/i, /\/?History.*/i, /\/?Release.*/i, /\/?doc(\/.*)?/, 'NEWS', ], :license => [ /\/?MIT/, /\/?GPLv[0-9]+/, /\/?.*LICEN(C|S)E/i, /\/?COPYING/, ], :ignore => [ '.gemtest', '.gitignore', '.travis.yml', '.yardopts', '.rspec', '.rvmrc', '.rubocop.yml', /^\..*rc$/i, /\/?.*\.gemspec$/, ], :test => [ '.rspec', 'cucumber.yml', /^features.*/, /^r?spec.*/, /^tests?/, ], # Other files including test files that are not required for # runtime and therefore currently included in -doc :misc => [ /Gemfile.*/, 'Rakefile', 'rakefile.rb', 'Vagrantfile', /^examples.*/, ] |