GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-core.git
FileUtils#touch only added mtime option in ruby 1.8.6. let's use 
File#utime instead
abhay (author)
Wed Jun 25 15:02:54 -0700 2008
commit  17079d238fd4058ca357f96b3a832baa88a0a353
tree    8af8506527b0d1a0fc4dfc6cd3cc88acdb5e0ac8
parent  848b9ac331085257281ac3be222fbf17f480ad18
...
52
53
54
55
 
56
57
58
...
52
53
54
 
55
56
57
58
0
@@ -52,7 +52,7 @@ describe "The reloader" do
0
     f = File.open(@reload_file, "w") do |f|
0
       f.puts contents
0
     end
0
- FileUtils.touch(@reload_file, :mtime => mtime + 30)
0
+ File.utime(mtime+30, mtime+30, @reload_file)
0
   end
0
 
0
   it "should reload files that were changed" do

Comments

    No one has commented yet.