Sha256: 1d7c5f5d9c57e535818578aa81b01bd5b95902cf5e35eb754c9a1a6cb0f528bc
Contents?: true
Size: 468 Bytes
Versions: 2
Compression:
Stored size: 468 Bytes
Contents
require 'bundler/gem_tasks' require 'fileutils' desc 'Update the Faker.js Javascript file' task :update do def download(version) base_url = 'https://raw.githubusercontent.com/Marak/faker.js' puts "Downlading Faker.js #{version} ..." `curl -o vendor/assets/javascripts/faker.js \ #{base_url}/v#{version}/build/build/faker.js` end FileUtils.mkdir_p('vendor/assets/javascripts') download(Fakerjs::Rails::VERSION) puts "\e[32mDone!\e[0m" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fakerjs-rails-3.1.0 | Rakefile |
fakerjs-rails-3.0.1.1 | Rakefile |