Sha256: 57dc59e2465f38c58c52e2fae61fc610341d83e2f9f795f7f7f0b18b2129b38b

Contents?: true

Size: 503 Bytes

Versions: 3

Compression:

Stored size: 503 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
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
dima-jeweler-0.9.2 lib/jeweler/commands/build_gem.rb
technicalpickles-jeweler-0.9.0 lib/jeweler/commands/build_gem.rb
technicalpickles-jeweler-0.9.1 lib/jeweler/commands/build_gem.rb