Sha256: 2cd4afc1a880bda1116b8c7dd278921fb8fa7dbe1ddfbfa9e7d7924a27e7bdbe

Contents?: true

Size: 953 Bytes

Versions: 18

Compression:

Stored size: 953 Bytes

Contents

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'spectre_scss/version'

RSpec::Core::RakeTask.new(:spec)

task :default => :spec

namespace :spectre_scss do
  namespace :assets do
    desc 'Update Spectre\'s assets.'
    task update: :clean do
      version = ARGV[1] || "v#{SpectreScss::VERSION.sub(/.\d+$/, '')}"

      sh 'git clone git@github.com:picturepan2/spectre.git spectre_source'
      sh "cd spectre_source && git checkout tags/#{version}"
      sh 'cp -R spectre_source/src/ vendor/assets/stylesheets/spectre/'

      File.open('vendor/assets/stylesheets/spectre.scss', 'w') do |f|
        f.write('@import "spectre/spectre.scss";')
      end

      puts "\n=*=*=*=*=*=*=*=*=*=*\n=* ASSETS UPDATED! *=\n=*=*=*=*=*=*=*=*=*=*\n"
    end

    desc 'Remove previous Spectre assets.'
    task :clean do
      sh 'rm -rf vendor'
      sh 'rm -rf spectre_source'
      sh 'mkdir -p vendor/assets/stylesheets/'
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
spectre_scss-0.5.9.0 Rakefile
spectre_scss-0.5.8.0 Rakefile
spectre_scss-0.5.7.0 Rakefile
spectre_scss-0.5.6.0 Rakefile
spectre_scss-0.5.5.0 Rakefile
spectre_scss-0.5.4.0 Rakefile
spectre_scss-0.5.3.0 Rakefile
spectre_scss-0.5.2.0 Rakefile
spectre_scss-0.5.1.0 Rakefile
spectre_scss-0.5.0.0 Rakefile
spectre_scss-0.4.7.0 Rakefile
spectre_scss-0.4.6.0 Rakefile
spectre_scss-0.4.5.0 Rakefile
spectre_scss-0.4.4.0 Rakefile
spectre_scss-0.4.3.0 Rakefile
spectre_scss-0.4.2.0 Rakefile
spectre_scss-0.4.1.0 Rakefile
spectre_scss-0.4.0.0 Rakefile