Rake::DevEiate::

Packaging

module

Packaging tasks and functions

Attributes

gem_filename[R]

The filename of the generated gemfile

gem_path[R]

The Pathname of the generated gemfile

Public Instance Methods

anchor
define_tasks()

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
anchor
setup( name, **options )

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