Skip to content

Commit

Permalink
Use Gem::Version for simpler releases
Browse files Browse the repository at this point in the history
  • Loading branch information
martinemde committed Aug 30, 2012
1 parent e305f92 commit f470262
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,10 @@ end

def remove_pre
require 'engineyard-serverside-adapter/version'
version = EY::Serverside::Adapter::VERSION
unless version =~ /\.pre$/
raise "Version #{version.inspect} does not end with .pre, you should release manually if you want a custom version name."
end
new_version = version.gsub(/\.pre$/, '')
new_version = Gem::Version.create(EY::Serverside::Adapter::VERSION).release
puts "New version is #{new_version}"
bump(new_version, "Bump to version #{new_version}")
new_version
new_version.to_s
end

def next_pre(version)
Expand Down

0 comments on commit f470262

Please sign in to comment.