Sha256: 0b83418ac32fa807184700ff985a95406be4213c27266789eac1ffc29a02fdb8
Contents?: true
Size: 768 Bytes
Versions: 7
Compression:
Stored size: 768 Bytes
Contents
#!/usr/bin/env ruby system("bin/update") file = File.absolute_path("../../lib/trackler/version.rb", __FILE__) contents = File.read(file) major, minor, patch, data = contents[/\ \ VERSION\ =\ "(.*)"/, 1].split(".") version = [major, minor, patch, data.to_i + 1].join(".") template = <<-TEMPLATE % version module Trackler VERSION = "%s" end TEMPLATE File.open(file, "w") do |f| f.puts template end cmds = [ "git add lib/trackler/version.rb", "git add tracks", "git add common", "git commit -m 'Bump to v%s'" % version, "git tag v%s" % version, "git push origin master", "git push --tags", "gem build trackler.gemspec", "gem install --local trackler-%s.gem" % version, "gem push trackler-%s.gem" % version, ].each do |cmd| system cmd end
Version data entries
7 entries across 7 versions & 1 rubygems