Skip to content

Commit

Permalink
Update the Rakefile to work with ruby 1.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dbalatero committed Jan 2, 2011
1 parent 3097f9d commit 6f1e58b
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 15 deletions.
4 changes: 3 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))

require "spec"
require "spec/rake/spectask"
require 'lib/typhoeus.rb'
require 'lib/typhoeus'

begin
require 'jeweler'
Expand Down
2 changes: 1 addition & 1 deletion spec/typhoeus/easy_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Typhoeus::Easy do
describe "#supports_zlib" do
Expand Down
4 changes: 2 additions & 2 deletions spec/typhoeus/filter_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Typhoeus::Filter do
it "should take a method name and optionally take options" do
Expand Down Expand Up @@ -32,4 +32,4 @@
filter.apply_filter?(:foo).should be_false
end
end
end
end
2 changes: 1 addition & 1 deletion spec/typhoeus/hydra_mock_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + "/../spec_helper"
require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")

describe Typhoeus::HydraMock do
it "should mark all responses as mocks" do
Expand Down
2 changes: 1 addition & 1 deletion spec/typhoeus/hydra_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

# some of these tests assume that you have some local services running.
# ruby spec/servers/app.rb -p 3000
Expand Down
2 changes: 1 addition & 1 deletion spec/typhoeus/multi_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Typhoeus::Easy do
it "should save easy handles that get added" do
Expand Down
2 changes: 1 addition & 1 deletion spec/typhoeus/normalized_header_hash_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + "/../spec_helper"
require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")

describe Typhoeus::NormalizedHeaderHash do
before(:all) do
Expand Down
4 changes: 2 additions & 2 deletions spec/typhoeus/remote_method_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Typhoeus::RemoteMethod do
it "should take options" do
Expand Down Expand Up @@ -138,4 +138,4 @@
Typhoeus::RemoteMethod.new(:cache_responses => 30).cache_ttl.should == 30
end
end
end
end
2 changes: 1 addition & 1 deletion spec/typhoeus/remote_proxy_object_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Typhoeus::RemoteProxyObject do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/typhoeus/remote_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Typhoeus do
it "should be deprecated" do
Expand Down
2 changes: 1 addition & 1 deletion spec/typhoeus/request_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Typhoeus::Request do
describe "#inspect" do
Expand Down
2 changes: 1 addition & 1 deletion spec/typhoeus/response_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Typhoeus::Response do
describe "initialize" do
Expand Down
2 changes: 1 addition & 1 deletion spec/typhoeus/utils_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + "/../spec_helper"
require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")

describe Typhoeus::Utils do
# Taken from Rack 1.2.1
Expand Down

0 comments on commit 6f1e58b

Please sign in to comment.