Sha256: 7f46668aa88b4b2e457e6e284a6865f34b12c6797ea54fa1ebbbb240f9aeb508

Contents?: true

Size: 658 Bytes

Versions: 1

Compression:

Stored size: 658 Bytes

Contents

require "bundler/gem_tasks"

LATEST_VERSION = '1.3.1'
DOWNLOAD_URL = "https://github.com/alexgorbatchev/jquery-textext/archive/#{LATEST_VERSION}.tar.gz"

desc "Sync the files from the upstream release"
task :sync do
  sh 'mkdir -p sync'
  sh 'mkdir -p vendor/assets'
  sh "curl -0 -L #{DOWNLOAD_URL} > sync/latest.tar.gz"
  sh 'cd sync && tar -xzf latest.tar.gz'

  release_folder = `ls sync | grep jquery-textext`.chomp

  sh 'rm -rf vendor/assets/stylesheets'
  sh 'rm -rf vendor/assets/javascripts'
  sh "mv sync/#{release_folder}/src/css vendor/assets/stylesheets"
  sh "mv sync/#{release_folder}/src/js vendor/assets/javascripts"
  sh 'rm -rf sync'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
textext-rails-0.2.0 Rakefile