Sha256: 5e30f6defaf51d4883e8cb056d3a67992fd41d0113393541fb025b10a3ba7b91

Contents?: true

Size: 1023 Bytes

Versions: 8

Compression:

Stored size: 1023 Bytes

Contents

#!/usr/bin/env rake

desc "Update assets"
task :update do
  
  if Dir.exist?('bootstrap-datepicker-src')    
    system("cd bootstrap-datepicker-src && git pull && cd ..")
  else
    system("git clone git://github.com/eternicode/bootstrap-datepicker.git bootstrap-datepicker-src")
  end
  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

8 entries across 8 versions & 1 rubygems

Version Path
bootstrap-datepicker-rails-1.0.0.4 Rakefile
bootstrap-datepicker-rails-1.0.0.6 Rakefile
bootstrap-datepicker-rails-1.0.0.5 Rakefile
bootstrap-datepicker-rails-1.0.0.3 Rakefile
bootstrap-datepicker-rails-1.0.0.2 Rakefile
bootstrap-datepicker-rails-1.0.0.1 Rakefile
bootstrap-datepicker-rails-1.0.0 Rakefile
bootstrap-datepicker-rails-0.6.42 Rakefile