Skip to content
This repository
Browse code

fix all the relative require paths (fix #55)

  • Loading branch information...
commit ba788eb5d9b1156c55a5c96135f53a9441b2464d 1 parent 211743f
Travis Jeffery authored December 20, 2012
4  lib/timecop.rb
... ...
@@ -1,2 +1,2 @@
1  
-require 'timecop/timecop'
2  
-require 'timecop/version'
  1
+require File.join(File.dirname(__FILE__), "timecop", "timecop")
  2
+require File.join(File.dirname(__FILE__), "timecop", "version")
4  lib/timecop/timecop.rb
... ...
@@ -1,6 +1,6 @@
1 1
 require 'singleton'
2  
-require 'timecop/time_extensions'
3  
-require 'timecop/time_stack_item'
  2
+require File.join(File.dirname(__FILE__), "time_extensions")
  3
+require File.join(File.dirname(__FILE__), "time_stack_item")
4 4
 
5 5
 # Timecop
6 6
 # * Wrapper class for manipulating the extensions to the Time, Date, and DateTime objects
2  lib/timecop/version.rb
... ...
@@ -1,3 +1,3 @@
1 1
 class Timecop
2  
-  VERSION = "0.5.4"
  2
+  VERSION = "0.5.5"
3 3
 end
2  test/time_stack_item_test.rb
... ...
@@ -1,5 +1,5 @@
1 1
 require 'date'
2  
-require 'test_helper'
  2
+require File.join(File.dirname(__FILE__), "test_helper")
3 3
 require File.join(File.dirname(__FILE__), '..', 'lib', 'timecop')
4 4
 
5 5
 class TestTimeStackItem < Test::Unit::TestCase
2  test/timecop_test.rb
... ...
@@ -1,5 +1,5 @@
1 1
 require 'date'
2  
-require 'test_helper'
  2
+require File.join(File.dirname(__FILE__), "test_helper")
3 3
 require File.join(File.dirname(__FILE__), '..', 'lib', 'timecop')
4 4
 
5 5
 class TestTimecop < Test::Unit::TestCase
2  test/timecop_without_date_test.rb
... ...
@@ -1,5 +1,5 @@
1 1
 
2  
-require 'test_helper'
  2
+require File.join(File.dirname(__FILE__), "test_helper")
3 3
 require File.join(File.dirname(__FILE__), '..', 'lib', 'timecop')
4 4
 
5 5
 class TestTimecopWithoutDate < Test::Unit::TestCase

0 notes on commit ba788eb

Please sign in to comment.
Something went wrong with that request. Please try again.