Class: Gem::Release::Cmds::Gemspec

Inherits:
Base
  • Object
show all
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

Base::WIDTH

Constants included from Helper::Hash

Helper::Hash::MERGER

Instance Attribute Summary

Attributes inherited from Base

#args, #context, #gem, #opts

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

#camelize, #underscore, #wrap

Methods included from Helper

#abort, #cmd, #gem_cmd

Methods included from Helper::Hash

#deep_merge, #except, #only, #symbolize_keys

Methods included from Registry

included

Constructor Details

This class inherits a constructor from Gem::Release::Cmds::Base

Instance Method Details

#runObject



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