Rakefile in tzinfo-0.1.2 vs Rakefile in tzinfo-0.2.0

- old
+ new

@@ -12,11 +12,11 @@ require 'rake/testtask' require 'rake/rdoctask' require 'rake/gempackagetask' require 'fileutils' -PKG_VERSION = "0.1.2" +PKG_VERSION = "0.2.0" PKG_FILES = FileList[ 'CHANGES', 'LICENSE', 'Rakefile', 'README', @@ -50,9 +50,13 @@ pkg.need_tar_gz = true end Rake::TestTask.new('test') do |t| + # Force a particular timezone to be local (helps find issues when local + # timezone isn't GMT). This won't work on Windows. + ENV['TZ'] = 'America/Los_Angeles' + t.libs << 'test' t.pattern = 'test/tc_*.rb' t.verbose = true end