Skip to content

Commit

Permalink
Rakefile loads sieve in the correct spot
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaclayton committed Sep 28, 2010
1 parent 87cc3a4 commit 195cb5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Rakefile
Expand Up @@ -2,9 +2,6 @@ require "rubygems"
require "rake"
require "benchmark"

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "lib"))
require "sieve"

require "rake/extensiontask"
Rake::ExtensionTask.new("sieve") do |extension|
extension.lib_dir = "lib/sieve"
Expand All @@ -21,6 +18,9 @@ task :default => :cucumber

desc "Benchmark C implementation against pure Ruby implementation of the Sieve"
task(:benchmark => :build) do
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "lib"))
require "sieve"

def sieve(n)
numbers = (0..n).map {|i| i }
numbers[0] = numbers[1] = nil
Expand Down

0 comments on commit 195cb5b

Please sign in to comment.