public
Description: Firebug extension for displaying Unobtrusive Javascript bound to DOM elements
Homepage: http://remi.org/2009/01/06/using-firebug-to-debug-unobtrusive-javascript.html
Clone URL: git://github.com/remi/firebug-ujs.git
remi (author)
Fri Feb 06 12:59:39 -0800 2009
commit  3ea7255fd65b9a4c07cc0d03343199efb9780243
tree    6e2b673d40b7e6ea15af523f623ff084958f7803
parent  a379cc81b28eb6afae24555a44964ae60198dea6
firebug-ujs / Rakefile
100644 22 lines (19 sloc) 0.711 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
task :default => ['build']
 
desc 'Build firebug-ujs.xpi'
task :build do
  puts "Rebuilding firebug-ujs.xpi"
  puts `rm firebug-ujs.xpi; cd firebug-ujs; zip -r ../firebug-ujs.xpi *; cd ..;`
  puts "Rebuilt!"
end
 
desc 'Update the currently *installed* version'
task :update do
  begin
    installation_dir = `locate .mozilla | grep extensions | grep FirebugUJS.js`.split.first.sub('/chrome/firebugUJS/FirebugUJS.js', '')
    local_dir = File.dirname(__FILE__)
    puts `rm -r '#{installation_dir}'`
    exec "cp -rv '#{local_dir}/firebug-ujs' '#{installation_dir}'"
  rescue Exception => ex
    puts "D'oh, didn't work! Are you on linux? Do you have the FirebugUJS extension installed?"
    raise ex
  end
end