Sha256: 8f32d76570aa855b3ced93ea787bfd7903d9c81cbead9d9437eb0f31863a963b

Contents?: true

Size: 663 Bytes

Versions: 4

Compression:

Stored size: 663 Bytes

Contents

require "bundler/gem_tasks"

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)

task :default => :spec

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rack-livereload-0.3.3 Rakefile
rack-livereload-0.3.2 Rakefile
rack-livereload-0.3.1 Rakefile
rack-livereload-0.3.0 Rakefile