Permalink
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (25 sloc) 479 Bytes
desc "Build the gem"
task :gem do
system "gem build gssapi.gemspec"
end
desc "Clean the build environment"
task :clean do
system "rm gssapi*.gem"
end
desc "Increment the version by 1 minor release"
task :versionup do
ver = up_min_version
puts "New version: #{ver}"
end
def up_min_version
f = File.open('VERSION', 'r+')
ver = f.readline.chomp
v_arr = ver.split(/\./).map do |v|
v.to_i
end
v_arr[2] += 1
ver = v_arr.join('.')
f.rewind
f.write(ver)
ver
end