forked from johnbintz/rack-livereload
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Rakefile
34 lines (24 loc) · 789 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require "bundler/gem_tasks"
require 'bundler/setup'
require 'appraisal'
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
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
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:cucumber)
task :default => [ :spec, :cucumber ]