summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-07-18 12:18:18 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-07-18 12:18:18 +0000
commit1643127b5b9b115451f10d8f40338c83b2e0c424 (patch)
tree1413a28e211667e73d8c8d0702dcfbaba089d62a
parent1b8dffbc43b3716ce32086e2e1f88e92adc5056a (diff)
rbot now properly identifies as the 'next version svn', and the gem package is built as the 'next version'
-rw-r--r--Rakefile2
-rwxr-xr-xbin/rbot2
-rw-r--r--lib/rbot/rbotconfig.rb7
3 files changed, 8 insertions, 3 deletions
diff --git a/Rakefile b/Rakefile
index 80b6dd8c..00355b06 100644
--- a/Rakefile
+++ b/Rakefile
@@ -6,7 +6,7 @@ task :default => [:repackage]
spec = Gem::Specification.new do |s|
s.name = 'rbot'
- s.version = '0.9.9'
+ s.version = '0.9.10'
s.summary = <<-EOF
A modular ruby IRC bot.
EOF
diff --git a/bin/rbot b/bin/rbot
index 37ef427c..14b57d7c 100755
--- a/bin/rbot
+++ b/bin/rbot
@@ -27,7 +27,7 @@ require 'etc'
require 'getoptlong'
require 'fileutils'
-$version="0.9.10"
+$version="0.9.10-svn"
$opts = Hash.new
orig_opts = ARGV.dup
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}"