mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-21 01:30:12 +01:00
Removed superfluous 'tracks' directory at the root of the repository.
Testing commits to github.
This commit is contained in:
parent
6a42901514
commit
4cbf5a34d3
2269 changed files with 0 additions and 0 deletions
33
vendor/plugins/unobtrusive_javascript/Rakefile
vendored
Normal file
33
vendor/plugins/unobtrusive_javascript/Rakefile
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
require 'rake'
|
||||
require 'rake/testtask'
|
||||
require 'rake/rdoctask'
|
||||
require 'fileutils'
|
||||
|
||||
desc 'Default: run unit tests.'
|
||||
task :default => :test
|
||||
|
||||
desc 'Test the unobtrusive_javascript plugin.'
|
||||
Rake::TestTask.new(:test) do |t|
|
||||
t.libs << 'lib'
|
||||
t.pattern = 'test/**/*_test.rb'
|
||||
t.verbose = true
|
||||
end
|
||||
|
||||
desc 'Generate documentation for the unobtrusive_javascript plugin.'
|
||||
Rake::RDocTask.new(:rdoc) do |rdoc|
|
||||
rdoc.rdoc_dir = 'rdoc'
|
||||
rdoc.title = 'UJS'
|
||||
rdoc.options << '--line-numbers' << '--inline-source' << '--accessor=cattr_accessor'
|
||||
rdoc.rdoc_files.include('README')
|
||||
rdoc.rdoc_files.include('lib/**/*.rb')
|
||||
end
|
||||
|
||||
desc 'Updates application with the necessary javascripts for unobtrusive_javascript.'
|
||||
task :update_scripts do
|
||||
FileUtils.cp Dir['assets/javascripts/*.js'], '../../../public/javascripts'
|
||||
end
|
||||
|
||||
desc 'Removes the javascripts for the plugin.'
|
||||
task :remove_scripts do
|
||||
FileUtils.rm %{lowpro.js}.collect { |f| "../../../public/javascripts/" + f }
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue