Sha256: 07a7fab456bd11eaf2303a6eaca3874b24cb678ec0c92b2ada2630f8961c60c1

Contents?: true

Size: 837 Bytes

Versions: 5

Compression:

Stored size: 837 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

5 entries across 5 versions & 1 rubygems

Version Path
smock-0.1.26 Rakefile
smock-0.1.25 Rakefile
smock-0.1.24 Rakefile
smock-0.1.23 Rakefile
smock-0.1.22 Rakefile