I moved to the edge yesterday and ran rake update_javascripts to get the latest prototype stuff into my public directory. To my surprise, the old files were still there afterward. I just took a peek at javascripts.rake in vendor/rails/railties/lib/tasks. The update_javascripts task is copying .js files from Dir[RAILTIES_PATH + ''/html/javascripts/*.js''] My railties however has no such html directory so the cp has no effect. The .js files seem to be located in vendor/rails/actionpack/lib/action_view/helpers/javascripts Did I do something wrong to cause the html directory to be absent in my railties hierarchy? -- Posted via http://www.ruby-forum.com/.
Bill Burcham
2006-Jan-26 16:01 UTC
[Rails] Re: rake update_javascripts on edge has no effect
mkay, so my question is a bit of a duplicate of http://www.ruby-forum.com/topic/51068#20455 Sorry about that. Anyhoo, my problem seems to be that my railties hierarchy has only a lib dir. It has no html dir at all. I wonder why. -- Posted via http://www.ruby-forum.com/.
Bill Burcham
2006-Jan-26 16:12 UTC
[Rails] Re: rake update_javascripts on edge has no effect
Looking at railties lib/tasks/framework.rake http://dev.rubyonrails.org/browser/trunk/railties/lib/tasks/framework.rake I see that the freeze_edge task does not export the html directory at all, to wit: for framework in %w( railties actionpack activerecord actionmailer activesupport actionwebservice ) mkdir_p "vendor/rails/#{framework}" system "svn export http://dev.rubyonrails.org/svn/rails/trunk/#{framework}/lib vendor/rails/#{framework}/lib #{revision_switch}" end ''sup with that? Does update_javascripts not work with a project that has been freeze_edge''d? -- Posted via http://www.ruby-forum.com/.
Bill Burcham
2006-Jan-26 16:14 UTC
[Rails] Re: rake update_javascripts on edge has no effect
Looking at railties lib/tasks/framework.rake http://dev.rubyonrails.org/browser/trunk/railties/lib/tasks/framework.rake I see that the freeze_edge task does not export the html directory at all. ''sup with that? Does update_javascripts not work with a project that has been freeze_edge''d? -- Posted via http://www.ruby-forum.com/.
This happened to me as well - just copy the javascript files over by hand and it should work fine. Zack -----Original Message----- From: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Bill Burcham Sent: Thursday, January 26, 2006 7:31 AM To: rails@lists.rubyonrails.org Subject: [Rails] rake update_javascripts on edge has no effect I moved to the edge yesterday and ran rake update_javascripts to get the latest prototype stuff into my public directory. To my surprise, the old files were still there afterward. I just took a peek at javascripts.rake in vendor/rails/railties/lib/tasks. The update_javascripts task is copying .js files from Dir[RAILTIES_PATH + ''/html/javascripts/*.js''] My railties however has no such html directory so the cp has no effect. The .js files seem to be located in vendor/rails/actionpack/lib/action_view/helpers/javascripts Did I do something wrong to cause the html directory to be absent in my railties hierarchy? -- Posted via http://www.ruby-forum.com/. _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails
Bill Burcham
2006-Jan-26 16:26 UTC
[Rails] Re: RE: rake update_javascripts on edge has no effect
Thanks Zack. That works fine. But I just wanted to know if it was _supposed_ to work automatically. I''m wondering what conditions have to hold for update_javascripts to work as advertised. Do you know what conditions have to hold in order for the html directory to be present in the railties hierarchy? -- Posted via http://www.ruby-forum.com/.