Repository URL to install this package:
|
Version:
1.0.4 ▾
|
module Buildgem
class PatchVersion < Version
def new_version
current_version.gsub(/\d+"/,
"#{new_patch_version}\"")
end
def new_patch_version
current_patch_version + 1
end
def current_patch_version
current_version.match(/(\d+)"/) { |m|
m[0]
}.to_i
end
end
end