]> git.saurik.com Git - redis.git/blobdiff - client-libraries/ruby/tasks/redis.tasks.rb
backward support to skiplists for ZREVRANGE, still broken, committing since I've...
[redis.git] / client-libraries / ruby / tasks / redis.tasks.rb
index 657d248db53ff72260f03aea22b006c4d1237009..ed317d386f3f65250d102ce9e6e9850343175832 100644 (file)
@@ -1,5 +1,6 @@
 # Inspired by rabbitmq.rake the Redbox project at http://github.com/rick/redbox/tree/master
 require 'fileutils'
+require 'open-uri'
 
 class RedisRunner
   
@@ -64,7 +65,7 @@ namespace :redis do
     RedisRunner.attach
   end
   
-  desc 'Install the lastest redis from svn'
+  desc 'Install the lastest verison of Redis from Github (requires git, duh)'
   task :install => [:about, :download, :make] do
     %w(redis-benchmark redis-cli redis-server).each do |bin|
       sh "sudo cp /tmp/redis/#{bin} /usr/bin/"
@@ -106,10 +107,8 @@ namespace :dtach do
     unless File.exists?('/tmp/dtach-0.8.tar.gz')
       require 'net/http'
       
-      Net::HTTP.start('superb-west.dl.sourceforge.net') do |http|
-        resp = http.get('/sourceforge/dtach/dtach-0.8.tar.gz')
-        open('/tmp/dtach-0.8.tar.gz', 'wb') do |file| file.write(resp.body) end
-      end
+      url = 'http://downloads.sourceforge.net/project/dtach/dtach/0.8/dtach-0.8.tar.gz'
+      open('/tmp/dtach-0.8.tar.gz', 'wb') do |file| file.write(open(url).read) end
     end
 
     unless File.directory?('/tmp/dtach-0.8')    
@@ -123,4 +122,4 @@ namespace :dtach do
     puts 'Dtach successfully installed to /usr/bin.'
   end
 end
-  
\ No newline at end of file
+