mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
Modified jrails plugin to remove deprecated message.
This commit is contained in:
parent
71640a214e
commit
c194138d16
4
vendor/plugins/jrails/Rakefile
vendored
4
vendor/plugins/jrails/Rakefile
vendored
@ -11,9 +11,9 @@ begin
|
||||
gem.homepage = "http://ennerchi.com/projects/jrails"
|
||||
gem.authors = ["Aaron Eisenberger", "Patrick Hurley"]
|
||||
gem.rubyforge_project = "jrails"
|
||||
gem.files = FileList["[A-Z]*.rb","{bin,javascripts,lib,rails,tasks}/**/*"]
|
||||
gem.files = FileList["[A-Z]*.rb","{bin,javascripts,lib,rails}/**/*"]
|
||||
end
|
||||
Jeweler::GemcutterTasks.new
|
||||
rescue LoadError
|
||||
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
||||
end
|
||||
end
|
||||
|
||||
2
vendor/plugins/jrails/bin/jrails
vendored
2
vendor/plugins/jrails/bin/jrails
vendored
@ -5,7 +5,7 @@ require 'rake'
|
||||
|
||||
RAILS_ROOT = Dir.pwd
|
||||
rakeapp = Rake.application
|
||||
fname =File.join(File.dirname(__FILE__), '..', 'tasks', 'jrails.rake')
|
||||
fname =File.join(File.dirname(__FILE__), '..', 'lib/tasks', 'jrails.rake')
|
||||
load fname
|
||||
|
||||
task :help do
|
||||
|
||||
2
vendor/plugins/jrails/jrails.gemspec
vendored
2
vendor/plugins/jrails/jrails.gemspec
vendored
@ -30,7 +30,7 @@ Gem::Specification.new do |s|
|
||||
"lib/jquery_selector_assertions.rb",
|
||||
"lib/jrails.rb",
|
||||
"rails/init.rb",
|
||||
"tasks/jrails.rake"
|
||||
"lib/tasks/jrails.rake"
|
||||
]
|
||||
s.homepage = %q{http://ennerchi.com/projects/jrails}
|
||||
s.rdoc_options = ["--charset=UTF-8"]
|
||||
|
||||
25
vendor/plugins/jrails/lib/tasks/jrails.rake
vendored
Normal file
25
vendor/plugins/jrails/lib/tasks/jrails.rake
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
namespace :jrails do
|
||||
|
||||
namespace :js do
|
||||
desc "Copies the jQuery and jRails javascripts to public/javascripts"
|
||||
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
|
||||
|
||||
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
|
||||
Loading…
Reference in New Issue
Block a user