Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rakefile loads sieve in the correct spot

  • Loading branch information...
commit 195cb5b73e55be77001ee9e6676940a19fe2b7c9 1 parent 87cc3a4
Joshua Clayton authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 Rakefile
6 Rakefile
View
@@ -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"
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.