Sha256: 4764170201e3c17f2b449dfec54792f1c078bf5aa7e39d267bae080702e4857c
Contents?: true
Size: 949 Bytes
Versions: 2
Compression:
Stored size: 949 Bytes
Contents
require "bundler/gem_tasks" require "rspec/core/rake_task" require "milligram/version" RSpec::Core::RakeTask.new(:spec) task :default => :spec namespace :milligram do namespace :assets do desc 'Update Milligram\'s assets.' task update: :clean do version = Milligram::VERSION.sub(/.\d+$/, '') sh 'git clone git@github.com:milligram/milligram.git milligram_source' sh "cd milligram_source && git checkout tags/v#{version}" sh 'cp -R milligram_source/src/ vendor/assets/stylesheets/milligram/' File.open('vendor/assets/stylesheets/milligram.scss', 'w') do |f| f.write('@import "milligram/milligram.sass";') end puts "\n=*=*=*=*=*=*=*=*=*=*\n=* ASSETS UPDATED! *=\n=*=*=*=*=*=*=*=*=*=*\n" end desc 'Remove previous Milligram assets.' task :clean do sh 'rm -rf vendor' sh 'rm -rf milligram_source' sh 'mkdir -p vendor/assets/stylesheets/' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
milligram-1.2.0.0 | Rakefile |
milligram-1.1.0.0 | Rakefile |