Permalink
Browse files

Fix errant require

  • Loading branch information...
1 parent 32cfd4c commit 21029451d7423b51be7afb96e1b6647b87c5be5c @jeremy jeremy committed Aug 2, 2009
Showing with 2 additions and 3 deletions.
  1. +2 −3 activesupport/Rakefile
View
@@ -87,9 +87,6 @@ task :release => [ :package ] do
rubyforge.add_release(PKG_NAME, PKG_NAME, "REL #{PKG_VERSION}", *packages)
end
-
-require 'lib/active_support/values/time_zone'
-
namespace :tzinfo do
desc "Update bundled tzinfo gem. Only copies the subset of classes and definitions required to support Rails time zone features."
task :update => ['tzinfo:copy_classes', 'tzinfo:copy_definitions'] do
@@ -118,6 +115,8 @@ namespace :tzinfo do
end
task :copy_definitions => :unpack_gem do
+ $:.unshift "#{File.dirname(__FILE__)}/lib"
+ require 'active_support/values/time_zone'
definitions_path = "#{destination_path}/tzinfo/definitions/"
mkdir_p definitions_path
ActiveSupport::TimeZone::MAPPING.values.each do |zone|

0 comments on commit 2102945

Please sign in to comment.