Use revisions instead of tilde.

Tilde is prohibited by FPC:

https://fedorahosted.org/fpc/ticket/398
This commit is contained in:
Vít Ondruch 2014-04-07 15:23:37 +02:00
parent 699faa5e25
commit 0d5d7e9999

View File

@ -9,9 +9,9 @@ module RubyGemsProv
def self.normalize_prerelease(version) def self.normalize_prerelease(version)
if version.prerelease? if version.prerelease?
prerelease = version.version.sub /^#{version.release}\./, '' prerelease = version.version.sub /^#{version.release}\./, ''
"#{version.release}~#{prerelease}" "#{version.release}-0.1.#{prerelease}"
else else
version.release "#{version.release}-1"
end end
end end
end end