Sha256: ec80afbb50fbdc1186ba7f91cff584d8aa9e2e2612b78bd61ba6dd93ea0ba507
Contents?: true
Size: 688 Bytes
Versions: 26
Compression:
Stored size: 688 Bytes
Contents
class Jeweler module Commands class BuildGem attr_accessor :base_dir, :gemspec_helper, :file_utils def initialize self.file_utils = FileUtils end def run gemspec = gemspec_helper.parse gem_file_name = Gem::Builder.new(gemspec).build pkg_dir = File.join(base_dir, 'pkg') file_utils.mkdir_p pkg_dir gem_file_name = File.join(base_dir, gem_file_name) file_utils.mv gem_file_name, pkg_dir end def self.build_for(jeweler) command = new command.base_dir = jeweler.base_dir command.gemspec_helper = jeweler.gemspec_helper command end end end end
Version data entries
26 entries across 26 versions & 8 rubygems