Sha256: ee1f8a3a846bfb55848ae93f1c26b0eec73164364538b694f9cffe84e73c2a79

Contents?: true

Size: 750 Bytes

Versions: 14

Compression:

Stored size: 750 Bytes

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
end

task :build=>:fetch_assets

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cloudinary-1.0.43 Rakefile
cloudinary-1.0.42 Rakefile
cloudinary-1.0.41 Rakefile
cloudinary-1.0.40 Rakefile
cloudinary-1.0.39 Rakefile
cloudinary-1.0.38 Rakefile
cloudinary-1.0.37 Rakefile
cloudinary-1.0.36 Rakefile
cloudinary-1.0.35 Rakefile
cloudinary-1.0.34 Rakefile
cloudinary-1.0.33 Rakefile
cloudinary-1.0.32 Rakefile
cloudinary-1.0.31 Rakefile
cloudinary-1.0.30 Rakefile