Permalink
Browse files

* ensure the version constant is not modified in case of snapshot rel…

…ease
  • Loading branch information...
1 parent 558fc09 commit 9a57c0d98d944e5eb44b30a521e89f3df28fd39e @weppos committed Jul 9, 2008
Showing with 5 additions and 2 deletions.
  1. +5 −2 Rakefile
View
@@ -16,12 +16,15 @@ PKG_FILES = FileList.new("{lib,test}/**/*.rb") do |fl|
end
RUBYFORGE_PROJECT = 'activerecord-multiconditions'
+
+# Prepare version number, don't forget about snapshots!
+version = PKG_VERSION
if ENV['SNAPSHOT'].to_i == 1
- PKG_VERSION << "." << Time.now.utc.strftime("%Y%m%d%H%M%S")
+ version << "." << Time.now.utc.strftime("%Y%m%d%H%M%S")
end
-Echoe.new(PKG_NAME, PKG_VERSION) do |p|
+Echoe.new(PKG_NAME, version) do |p|
p.author = "Simone Carletti"
p.email = "weppos@weppos.net"
p.summary = PKG_SUMMARY

0 comments on commit 9a57c0d

Please sign in to comment.