From 1643127b5b9b115451f10d8f40338c83b2e0c424 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 18 Jul 2006 12:18:18 +0000 Subject: rbot now properly identifies as the 'next version svn', and the gem package is built as the 'next version' --- lib/rbot/rbotconfig.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/rbot/rbotconfig.rb') diff --git a/lib/rbot/rbotconfig.rb b/lib/rbot/rbotconfig.rb index 01f66307..de716169 100644 --- a/lib/rbot/rbotconfig.rb +++ b/lib/rbot/rbotconfig.rb @@ -16,7 +16,12 @@ module Irc debug "trying to load rubygems" require 'rubygems' debug "loaded rubygems, looking for rbot-#$version" - gemname, gem = Gem.source_index.find{|name, spec| spec.name == 'rbot' && spec.version.version == $version} + if $version =~ /(.*)-svn\Z/ + version = $1 + else + version = $version + end + gemname, gem = Gem.source_index.find{|name, spec| spec.name == 'rbot' && spec.version.version == version} debug "got gem #{gem}" if gem && path = gem.full_gem_path debug "installed via rubygems to #{path}" -- cgit v1.2.3