Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix errant require

  • Loading branch information...
commit 21029451d7423b51be7afb96e1b6647b87c5be5c 1 parent 32cfd4c
Jeremy Kemper jeremy authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 activesupport/Rakefile
5 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|
Please sign in to comment.
Something went wrong with that request. Please try again.