Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…ease
  • Loading branch information...
commit 9a57c0d98d944e5eb44b30a521e89f3df28fd39e 1 parent 558fc09
@weppos authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 Rakefile
View
7 Rakefile
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.