Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 16 lines (14 sloc) 516 Bytes
#!/usr/bin/env rake
require 'bundler/gem_tasks'
require File.expand_path('../lib/chosen-rails/source_file', __FILE__)
desc "Update with Harvest's Chosen Library"
task 'update-chosen', 'repository_url', 'branch' do |task, args|
remote = args['repository_url'] || 'https://github.com/harvesthq/chosen'
branch = args['branch'] || 'master'
files = SourceFile.new
files.fetch remote, branch
files.eject_javascript_class_from_closure
files.remove_compass_lines
files.add_depend_on_asset
files.cleanup
end