Class: Gem::Release::Cmds::Gemspec
- Defined in:
- lib/gem/release/cmds/gemspec.rb
Constant Summary collapse
- DEFAULTS =
{ strategy: :glob }.freeze
- DESCR =
{ bin: 'Add bin files directive to the gemspec (defaults to true if a ./bin directory exists)', dir: 'Directory to place the gem in (defaults to the given name, or the current working dir)', license: 'License(s) to list in the gemspec', strategy: 'Strategy for collecting files [glob|git] in gemspec' }.freeze
- MSGS =
{ gemspec: 'Generating %s.gemspec', create: 'Creating %s', exists: 'Skipping %s: already exists' }.freeze
Constants inherited from Base
Constants included from Helper::Hash
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
arg, args, #config, default, #defaults, descr, description, #in_dirs, #in_gem_dirs, inherited, #initialize, opt, opts, #pretend?, #quiet?, summary, usage
Methods included from Helper::String
Methods included from Helper
Methods included from Helper::Hash
#deep_merge, #except, #only, #symbolize_keys
Methods included from Registry
Constructor Details
This class inherits a constructor from Gem::Release::Cmds::Base
Instance Method Details
#run ⇒ Object
60 61 62 63 64 65 |
# File 'lib/gem/release/cmds/gemspec.rb', line 60 def run in_dirs do announce :gemspec, gem.name generate end end |