Permalink
Browse files

Fixing the build.

  • Loading branch information...
1 parent a2230ba commit a84f4d78589428033ede030bd0a316c98f2cf9a5 @jarib committed Sep 25, 2011
Showing with 5 additions and 7 deletions.
  1. +3 −1 Rakefile
  2. +1 −3 lib/celerity.rb
  3. +1 −1 spec/watirspec
  4. +0 −2 tasks/bundler.rake
View
@@ -1,9 +1,11 @@
require 'rubygems'
require 'rake'
-require File.expand_path("lib/celerity/version", File.dirname(__FILE__))
include Rake::DSL
+require 'bundler'
+Bundler::GemHelper.install_tasks
+
Dir['tasks/**/*.rake'].each do |rake|
begin
load rake
View
@@ -1,5 +1,3 @@
-$:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
-
raise "Celerity only works on JRuby at the moment." unless RUBY_PLATFORM =~ /java/
require "java"
@@ -29,7 +27,7 @@ class << self
attr_accessor :index_offset
end
- DIR = File.expand_path(File.dirname(__FILE__) + "/celerity")
+ DIR = File.expand_path("../celerity", __FILE__)
end
require "celerity/version"
View
@@ -1,2 +0,0 @@
-require 'bundler'
-Bundler::GemHelper.install_tasks

0 comments on commit a84f4d7

Please sign in to comment.