Sha256: 278adee94a1614a77a142d881d6133d04bf0e464ad40e9a04a86b82657ad1beb

Contents?: true

Size: 938 Bytes

Versions: 5

Compression:

Stored size: 938 Bytes

Contents

#!/usr/bin/env rake

desc "Update assets"
task :update do
  system("rm -rf bootstrap-datepicker-src")
  system("git clone git://github.com/eternicode/bootstrap-datepicker.git bootstrap-datepicker-src")
  system("cp bootstrap-datepicker-src/css/datepicker.css vendor/assets/stylesheets/bootstrap-datepicker.css")
  system("cp bootstrap-datepicker-src/js/bootstrap-datepicker.js vendor/assets/javascripts/bootstrap-datepicker/core.js")
  system("cp -R bootstrap-datepicker-src/js/locales/ vendor/assets/javascripts/bootstrap-datepicker/locales/")
  system("git status")  
end

desc "Build"
task "build" do    
  system("gem build bootstrap-datepicker-rails.gemspec")
end

desc "Build and publish the gem"
task :publish => :build do    
  require File.expand_path('../lib/bootstrap-datepicker-rails/version', __FILE__)
  system("gem push bootstrap-datepicker-rails-#{BootstrapDatepickerRails::Rails::VERSION}.gem")  
  system("git push")
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bootstrap-datepicker-rails-0.6.41 Rakefile
bootstrap-datepicker-rails-0.6.40 Rakefile
bootstrap-datepicker-rails-0.6.39 Rakefile
bootstrap-datepicker-rails-0.6.37 Rakefile
bootstrap-datepicker-rails-0.6.36 Rakefile