forked from aaronchi/jrails
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change default to use jQuery.noConflict
- Loading branch information
Showing
6 changed files
with
21 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
:patch: 0 | ||
:patch: 1 | ||
:major: 0 | ||
:minor: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,25 @@ | ||
namespace :jrails do | ||
namespace :update do | ||
|
||
namespace :js do | ||
desc "Copies the jQuery and jRails javascripts to public/javascripts" | ||
task :javascripts do | ||
task :install do | ||
puts "Copying files..." | ||
project_dir = RAILS_ROOT + '/public/javascripts/' | ||
scripts = Dir[File.join(File.dirname(__FILE__), '..', '/javascripts/', '*.js')] | ||
FileUtils.cp(scripts, project_dir) | ||
puts "files copied successfully." | ||
end | ||
end | ||
|
||
namespace :install do | ||
desc "Installs the jQuery and jRails javascripts to public/javascripts" | ||
task :javascripts do | ||
Rake::Task['jrails:update:javascripts'].invoke | ||
end | ||
end | ||
|
||
desc 'Remove the prototype / script.aculo.us javascript files' | ||
task :scrub do | ||
files = %W[controls.js dragdrop.js effects.js prototype.js] | ||
project_dir = File.join(RAILS_ROOT, 'public', 'javascripts') | ||
files.each do |fname| | ||
FileUtils.rm File.join(project_dir, fname) | ||
desc 'Remove the prototype / script.aculo.us javascript files' | ||
task :scrub do | ||
puts "Removing files..." | ||
files = %W[controls.js dragdrop.js effects.js prototype.js] | ||
project_dir = File.join(RAILS_ROOT, 'public', 'javascripts') | ||
files.each do |fname| | ||
FileUtils.rm(File.join(project_dir, fname)) if File.exists?(File.join(project_dir, fname)) | ||
end | ||
puts "files removed successfully." | ||
end | ||
end | ||
|
||
end |