Sha256: 456f0a49692aa1f131f41a01da71e37c6fbb402e452c9c37483af51afa24e8ba
Contents?: true
Size: 924 Bytes
Versions: 3
Compression:
Stored size: 924 Bytes
Contents
class Jeweler module Commands module Version class Base attr_accessor :repo, :version_helper, :gemspec, :commit def run update_version self.version_helper.write self.gemspec.version = self.version_helper.to_s commit_version if self.repo && self.commit end def update_version raise "Subclasses should implement this" end def commit_version if self.repo self.repo.add('VERSION.yml') self.repo.commit("Version bump to #{self.version_helper.to_s}") end end def self.build_for(jeweler) command = new command.repo = jeweler.repo command.version_helper = jeweler.version_helper command.gemspec = jeweler.gemspec command.commit = jeweler.commit command end end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
technicalpickles-jeweler-0.11.0 | lib/jeweler/commands/version/base.rb |
jeweler-0.11.1 | lib/jeweler/commands/version/base.rb |
jeweler-0.11.0 | lib/jeweler/commands/version/base.rb |