Sha256: 06bdb482f7e930bb7219710fcb1e6c27f98b1df21c05ee6a2f4f41d508a0623e
Contents?: true
Size: 1.18 KB
Versions: 3
Compression:
Stored size: 1.18 KB
Contents
require 'rubygems/tasks/build/task' require 'rubygems/builder' require 'fileutils' module Gem class Tasks module Build # # The `build:gem` task. # class Gem < Task # # Initializes the `build:gem` task. # # @param [Hash] options # Additional options. # def initialize(options={}) super() yield self if block_given? define end # # Defines the `build:gem` task. # def define build_task :gem # backwards compatibility for Gem::PackageTask task :gem => 'build:gem' # backwards compatibility for Hoe task :package => 'build:gem' end # # Builds the `.gem` package. # # @param [String] path # The path for the `.gem` package. # # @param [Gem::Specification] gemspec # The gemspec to build the `.gem` package from. # # @api semipublic # def build(path,gemspec) builder = ::Gem::Builder.new(gemspec) mv builder.build, Project::PKG_DIR end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubygems-tasks-0.2.3 | lib/rubygems/tasks/build/gem.rb |
rubygems-tasks-0.2.2 | lib/rubygems/tasks/build/gem.rb |
rubygems-tasks-0.2.1 | lib/rubygems/tasks/build/gem.rb |