Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: patroclo7@gmail.com (Giorgio Lando)
Subject: [sup-talk] [PATCH] allow user to make a gem with a specific version number
Date: Tue,  5 Feb 2008 18:31:14 +0100	[thread overview]
Message-ID: <1202232674-20414-1-git-send-email-patroclo7@gmail.com> (raw)

If one want to make a gem from a git version of sup, he can also
want to define a version number (e.g. in the form <previous public
release>.1, so that when a new version is released the gem will be
updated nonetheless). With this patch the version can be defined with
the REL environment variable (as in ferret Rakefile)
---
 Rakefile |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/Rakefile b/Rakefile
index f99246f..289da64 100644
--- a/Rakefile
+++ b/Rakefile
@@ -9,9 +9,13 @@ end # thanks to "Mike H"
 
 ## allow people who use development versions by running "rake gem"
 ## and installing the resulting gem it to be able to do this. (gem
-## versions must be in dotted-digit notation only).
-version = Redwood::VERSION == "git" ? "999" : Redwood::VERSION
-
+## versions must be in dotted-digit notation only and can be passed
+## with the REL environment variable to "rake gem").
+if ENV['REL']
+  version = ENV['REL']
+else
+  version = Redwood::VERSION == "git" ? "999" : Redwood::VERSION
+end
 Hoe.new('sup', version) do |p|
   p.rubyforge_name = 'sup'
   p.author = "William Morgan"
-- 
1.5.4



             reply	other threads:[~2008-02-05 17:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-05 17:31 Giorgio Lando [this message]
2008-02-05 17:50 ` William Morgan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1202232674-20414-1-git-send-email-patroclo7@gmail.com \
    --to=patroclo7@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox