Sha256: 6cbcaf90cf255a1a890ead059cc2f9a7c3edccde9585a209d54db21532a6fafe

Contents?: true

Size: 788 Bytes

Versions: 204

Compression:

Stored size: 788 Bytes

Contents

#!/usr/bin/env ruby

unless system("bin/update")
  exit 1
end

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

204 entries across 204 versions & 1 rubygems

Version Path
trackler-2.2.0.6 bin/bump-content
trackler-2.2.0.5 bin/bump-content
trackler-2.2.0.4 bin/bump-content
trackler-2.2.0.3 bin/bump-content
trackler-2.2.0.2 bin/bump-content
trackler-2.2.0.1 bin/bump-content
trackler-2.2.0.0 bin/bump-content
trackler-2.1.0.55 bin/bump-content
trackler-2.1.0.54 bin/bump-content
trackler-2.1.0.53 bin/bump-content
trackler-2.1.0.52 bin/bump-content
trackler-2.1.0.51 bin/bump-content
trackler-2.1.0.50 bin/bump-content
trackler-2.1.0.49 bin/bump-content
trackler-2.1.0.48 bin/bump-content
trackler-2.1.0.47 bin/bump-content
trackler-2.1.0.46 bin/bump-content
trackler-2.1.0.45 bin/bump-content
trackler-2.1.0.44 bin/bump-content
trackler-2.1.0.43 bin/bump-content