Sha256: 5bd939909a37dc68dfb52d101611e2c542fa77351610e55672e64a2902c5ebe7

Contents?: true

Size: 838 Bytes

Versions: 2

Compression:

Stored size: 838 Bytes

Contents

require 'bundler'
require 'fileutils'

$:.push File.expand_path("../lib", __FILE__)
require "smock/version"

Bundler::GemHelper.install_tasks

desc "clean up"
task :clean do
  sh "rm -rf tmp versions"
end

desc "test stuff"
task :test do
  FileUtils.mkdir_p "./tmp/"
  sh "bundle exec sass -l ./app/assets/stylesheets/smock.sass tmp/output.css"
end

desc "build a version of smock ready for deploy"
task :build_version => :clean do

  target = "./versions/#{Smock::VERSION}"
  FileUtils.mkdir_p target
  sh "bundle exec sass ./app/assets/stylesheets/smock.sass #{target}/smock.css"
  sh "cp -R ./examples #{target}/"

  latest = "./versions/latest"
  FileUtils.mkdir_p latest

  sh "cp -R #{target}/* #{latest}/"
end

desc "run a local server on 9090"
task :run => :build_version do
  sh "ruby -run -e httpd ./versions/latest -p 9090"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
smock-0.1.28 Rakefile
smock-0.1.27 Rakefile