Class Gem2Rpm::Configuration
In: lib/gem2rpm/configuration.rb
Parent: Object

Methods

macro_for   macros   new   options   reset   rule_for   rules  

Included Modules

Singleton

Classes and Modules

Class Gem2Rpm::Configuration::InvalidOption

Constants

CURRENT_DIR = Dir.pwd
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.*/, ]

Public Class methods

Public Instance methods

Hash with macros for files categories

Set the configuration back to default values

Hash with rules for file categorization

[Validate]