Sha256: acd5fb06bf5d6e7ab2e6d194bf51c03d2d4dcb3746aeeaae350bd8be983b6841

Contents?: true

Size: 768 Bytes

Versions: 2

Compression:

Stored size: 768 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'lib'))

require "rake"
require 'rake/clean'
require "static/version"

task :default => :build

desc "Run specs"
task :spec => ["bundler:install", "test:spec"]

task :build do
  sh "gem build static.gemspec"
end

task :install => :build do
  sh "gem install --local static-#{Static::Cmd::VERSION}.gem"
end

task :uninstall do
  sh "gem uninstall static"
end

task :reinstall => [:uninstall, :install]

task :release => :build do
  sh "gem push static-#{Static::Cmd::VERSION}.gem"
end

namespace "bundler" do
  task "install" do
    sh("bundle install")
  end
end

namespace "test" do
  task "spec" do |t|
     sh("cd spec && bundle exec rake spec")
  end
end

CLEAN.include [
  '.bundle', 'Gemfile.lock', '*.gem'
]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
static-1.0.1 Rakefile
static-1.0.0 Rakefile