Sha256: 5ef774f77abe4a13eedee6c870c7a4a6ea7423987cf0f0bd4882cc2d9fc66c65

Contents?: true

Size: 804 Bytes

Versions: 179

Compression:

Stored size: 804 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 problem-specifications",
  "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

179 entries across 179 versions & 1 rubygems

Version Path
trackler-2.2.1.180 bin/bump-content
trackler-2.2.1.179 bin/bump-content
trackler-2.2.1.178 bin/bump-content
trackler-2.2.1.177 bin/bump-content
trackler-2.2.1.176 bin/bump-content
trackler-2.2.1.175 bin/bump-content
trackler-2.2.1.174 bin/bump-content
trackler-2.2.1.173 bin/bump-content
trackler-2.2.1.172 bin/bump-content
trackler-2.2.1.171 bin/bump-content
trackler-2.2.1.170 bin/bump-content
trackler-2.2.1.169 bin/bump-content
trackler-2.2.1.167 bin/bump-content
trackler-2.2.1.166 bin/bump-content
trackler-2.2.1.165 bin/bump-content
trackler-2.2.1.164 bin/bump-content
trackler-2.2.1.163 bin/bump-content
trackler-2.2.1.162 bin/bump-content
trackler-2.2.1.161 bin/bump-content
trackler-2.2.1.160 bin/bump-content