Sha256: abf145d9898e89300e5bc79bee307aeb7bd08db81e2e5bc6b0f5623b2f98bee1

Contents?: true

Size: 1.07 KB

Versions: 26

Compression:

Stored size: 1.07 KB

Contents

require 'bundler'

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task :default => :spec

Bundler::GemHelper.install_tasks

task :fetch_assets do
  system "/bin/rm -rf vendor/assets; mkdir -p vendor/assets; cd vendor/assets; curl -L https://github.com/cloudinary/cloudinary_js/tarball/master | tar zxvf - --strip=1"
  system "mkdir -p vendor/assets/javascripts; mv vendor/assets/js vendor/assets/javascripts/cloudinary"
  File.open("vendor/assets/javascripts/cloudinary/index.js", "w") do 
    |f|
    f.puts "//= require ./jquery.ui.widget.js"
    f.puts "//= require ./jquery.iframe-transport.js"
    f.puts "//= require ./jquery.fileupload.js"
    f.puts "//= require ./jquery.cloudinary.js"
  end
  File.open("vendor/assets/javascripts/cloudinary/processing.js", "w") do 
    |f|
    f.puts "//= require ./canvas-to-blob.min.js"
    f.puts "//= require ./load-image.min.js"
    f.puts "//= require ./jquery.fileupload-process.js"
    f.puts "//= require ./jquery.fileupload-image.js"
    f.puts "//= require ./jquery.fileupload-validate.js"
  end
end

task :build=>:fetch_assets

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
cloudinary-1.1.0 Rakefile
cloudinary-1.0.84 Rakefile
cloudinary-1.0.83 Rakefile
cloudinary-1.0.82 Rakefile
cloudinary-1.0.81 Rakefile
cloudinary-1.0.80 Rakefile
cloudinary-1.0.79 Rakefile
cloudinary-1.0.78 Rakefile
cloudinary-1.0.77 Rakefile
cloudinary-1.0.76 Rakefile
cloudinary-1.0.75 Rakefile
cloudinary-1.0.74 Rakefile
cloudinary-1.0.73 Rakefile
cloudinary-1.0.72 Rakefile
cloudinary-1.0.71 Rakefile
cloudinary-1.0.70 Rakefile
cloudinary-1.0.69 Rakefile
cloudinary-1.0.68 Rakefile
cloudinary-1.0.67 Rakefile
cloudinary-1.0.66 Rakefile