rack-livereload/Rakefile

35 lines
789 B
Ruby
Raw Normal View History

2011-11-04 15:51:22 +00:00
require "bundler/gem_tasks"
2012-05-30 16:47:31 +00:00
require 'bundler/setup'
require 'appraisal'
2011-11-04 15:51:22 +00:00
desc 'Update livereload.js'
task :update_livereload_js do
require 'httparty'
File.open('js/livereload.js', 'wb') { |fh|
fh.print HTTParty.get('https://raw.github.com/livereload/livereload-js/master/dist/livereload.js').body
}
end
2011-11-17 20:44:48 +00:00
desc 'Update web-socket-js'
task :update_web_socket_js do
require 'httparty'
%w{swfobject.js web_socket.js WebSocketMain.swf}.each do |file|
File.open("js/#{file}", 'wb') do |fh|
fh.print HTTParty.get("https://raw.github.com/gimite/web-socket-js/master/#{file}").body
end
end
end
2011-11-14 14:11:57 +00:00
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:cucumber)
task :default => [ :spec, :cucumber ]
2011-11-17 20:44:48 +00:00