aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorGeoff Buesing <gbuesing@gmail.com>2009-10-27 20:53:07 -0500
committerGeoff Buesing <gbuesing@gmail.com>2009-10-27 21:13:12 -0500
commit37c9ec3add88a85bd7b6fc43ebc3aa5ecd221fef (patch)
treec5ef03c36d0ee6383d2998a39f0dd48014b02d65 /activesupport
parent86596975be45fa9088fba4db99b67518434f3afc (diff)
downloadrails-37c9ec3add88a85bd7b6fc43ebc3aa5ecd221fef.tar.gz
rails-37c9ec3add88a85bd7b6fc43ebc3aa5ecd221fef.tar.bz2
rails-37c9ec3add88a85bd7b6fc43ebc3aa5ecd221fef.zip
Tzinfo bundling task: unpack tzinfo with lib directory preserved
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/Rakefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/activesupport/Rakefile b/activesupport/Rakefile
index d923dce3a4..2ada91830f 100644
--- a/activesupport/Rakefile
+++ b/activesupport/Rakefile
@@ -104,21 +104,21 @@ namespace :tzinfo do
end
task :copy_classes => :unpack_gem do
- mkdir_p "#{destination_path}/tzinfo"
- cp "#{tmp_path}/lib/tzinfo.rb", destination_path
- comment_requires_for_excluded_classes!('tzinfo.rb')
+ mkdir_p "#{destination_path}/lib/tzinfo"
+ cp "#{tmp_path}/lib/tzinfo.rb", "#{destination_path}/lib"
+ comment_requires_for_excluded_classes!('lib/tzinfo.rb')
files = FileList["#{tmp_path}/lib/tzinfo/*.rb"]
files.each do |file|
filename = File.basename(file)
unless excluded_classes.include? filename.sub(/.rb$/, '')
- cp "#{tmp_path}/lib/tzinfo/#{filename}", "#{destination_path}/tzinfo"
- comment_requires_for_excluded_classes!("tzinfo/#{filename}")
+ cp "#{tmp_path}/lib/tzinfo/#{filename}", "#{destination_path}/lib/tzinfo"
+ comment_requires_for_excluded_classes!("lib/tzinfo/#{filename}")
end
end
end
task :copy_definitions => :unpack_gem do
- definitions_path = "#{destination_path}/tzinfo/definitions/"
+ definitions_path = "#{destination_path}/lib/tzinfo/definitions/"
mkdir_p definitions_path
ActiveSupport::TimeZone::MAPPING.values.each do |zone|
subdir = nil