X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=Rakefile;h=289da642aeddb4a2ea02528f50f55d932c7638f1;hb=eb8e4699a6b88fb1d98d1315a36d36e69c40e231;hp=33e988320986b569d1cc7f7e0c045326bae4bbb3;hpb=ed12112fe44da42eead22aeaeaa70d4c42596420;p=sup diff --git a/Rakefile b/Rakefile index 33e9883..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" @@ -20,7 +24,7 @@ Hoe.new('sup', version) do |p| p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[2].gsub(/^\s+/, "") p.changes = p.paragraphs_of('History.txt', 0..0).join("\n\n") p.email = "wmorgan-sup@masanjin.net" - p.extra_deps = [['ferret', '>= 0.10.13'], ['ncurses', '>= 0.9.1'], ['rmail', '>= 0.17'], 'highline', 'net-ssh', ['trollop', '>= 1.7'], 'lockfile', 'mime-types'] + p.extra_deps = [['ferret', '>= 0.10.13'], ['ncurses', '>= 0.9.1'], ['rmail', '>= 0.17'], 'highline', 'net-ssh', ['trollop', '>= 1.7'], 'lockfile', 'mime-types', 'gettext'] end rule 'ss?.png' => 'ss?-small.png' do |t|