From 52cbaa689f1d40d9219be580425eb82fa5500c7a Mon Sep 17 00:00:00 2001 From: Gary Murakami Date: Wed, 11 Apr 2012 11:56:45 -0400 Subject: [PATCH] [Gary] profile_array $LOAD_PATH, Gemfile tweaks --- Gemfile | 4 ++-- bench/profile_array.rb | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Gemfile b/Gemfile index 9bb321e..130623c 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,7 @@ group :development, :test do gem "bundler" gem "rake" gem "json" - gem "bson_ext" unless RUBY_PLATFORM == "java" + gem "bson_ext" unless RUBY_PLATFORM =~ /java/ # Deployment gem "git" @@ -15,7 +15,7 @@ group :development, :test do gem "shoulda" gem "test-unit" gem "ci_reporter" - gem "ruby-prof" unless RUBY_PLATFORM == "java" + gem "ruby-prof" unless RUBY_PLATFORM =~ /java/ # Java platforms :jruby do diff --git a/bench/profile_array.rb b/bench/profile_array.rb index af22aab..3f79d4d 100644 --- a/bench/profile_array.rb +++ b/bench/profile_array.rb @@ -1,9 +1,5 @@ #!/usr/bin/env ruby -$LOAD_PATH[0,0] = File.join(File.dirname(__FILE__), '..', 'lib') -# -# Note: Ruby 1.9 is faster than 1.8, as expected. -# This suite will be run against the installed version of ruby-mongo-driver. -# The c-extension, bson_ext, will be used if installed. +$LOAD_PATH.unshift(File.expand_path("../../lib", __FILE__)) require 'rubygems' require 'mongo'