Skip to content

Commit

Permalink
Fix errant require
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Aug 2, 2009
1 parent 32cfd4c commit 2102945
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions activesupport/Rakefile
Expand Up @@ -87,9 +87,6 @@ task :release => [ :package ] do
rubyforge.add_release(PKG_NAME, PKG_NAME, "REL #{PKG_VERSION}", *packages) rubyforge.add_release(PKG_NAME, PKG_NAME, "REL #{PKG_VERSION}", *packages)
end end



require 'lib/active_support/values/time_zone'

namespace :tzinfo do namespace :tzinfo do
desc "Update bundled tzinfo gem. Only copies the subset of classes and definitions required to support Rails time zone features." 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 task :update => ['tzinfo:copy_classes', 'tzinfo:copy_definitions'] do
Expand Down Expand Up @@ -118,6 +115,8 @@ namespace :tzinfo do
end end


task :copy_definitions => :unpack_gem do task :copy_definitions => :unpack_gem do
$:.unshift "#{File.dirname(__FILE__)}/lib"
require 'active_support/values/time_zone'
definitions_path = "#{destination_path}/tzinfo/definitions/" definitions_path = "#{destination_path}/tzinfo/definitions/"
mkdir_p definitions_path mkdir_p definitions_path
ActiveSupport::TimeZone::MAPPING.values.each do |zone| ActiveSupport::TimeZone::MAPPING.values.each do |zone|
Expand Down

0 comments on commit 2102945

Please sign in to comment.