Sha256: 4f33ceeee503efe85aba4d1f9e4bd0cbfc3fa6bcd1a4a513ff80fc49b03ceb30

Contents?: true

Size: 964 Bytes

Versions: 5

Compression:

Stored size: 964 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/")
  fixes
  system("git status")  
end

def fixes
  
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.35 Rakefile
bootstrap-datepicker-rails-0.6.34 Rakefile
bootstrap-datepicker-rails-0.6.33 Rakefile
bootstrap-datepicker-rails-0.6.32 Rakefile
bootstrap-datepicker-rails-0.6.31 Rakefile