Sha256: 55774e621067fcd87da0b5935751cbefba649edce33a49f2545d8f7581e2ae31
Contents?: true
Size: 944 Bytes
Versions: 10
Compression:
Stored size: 944 Bytes
Contents
class Jeweler module Commands class WriteGemspec attr_accessor :base_dir, :gemspec, :version, :output, :version_helper attr_writer :gemspec_helper def initialize self.output = $stdout end def run gemspec_helper.spec.version ||= begin version_helper.refresh version_helper.to_s end gemspec_helper.write output.puts "Generated: #{gemspec_helper.path}" end def gemspec_helper @gemspec_helper ||= GemSpecHelper.new(gemspec, base_dir) end def self.build_for(jeweler) command = new command.base_dir = jeweler.base_dir command.gemspec = jeweler.gemspec command.version = jeweler.version command.output = jeweler.output command.gemspec_helper = jeweler.gemspec_helper command.version_helper = jeweler.version_helper command end end end end
Version data entries
10 entries across 10 versions & 1 rubygems