Packaging
tasks and functions
The filename of the generated gemfile
The Pathname of the generated gemfile
Set up packaging tasks.
# File lib/rake/deveiate/packaging.rb, line 32
def define_tasks
super if defined?( super )
task :release_gem => :gem
spec = self.gemspec
Gem::PackageTask.new( spec ).define
CLEAN.include( Rake::DevEiate::PKG_DIR.to_s )
end
Post-loading hook – set up default attributes.
# File lib/rake/deveiate/packaging.rb, line 13
def setup( name, **options )
super if defined?( super )
gem_basename = "%s-%s" % [ name, self.version ]
@gem_filename = gem_basename + '.gem'
@gem_path = Rake::DevEiate::PKG_DIR + @gem_filename
end