Sha256: 5c366390c61fef8fe0cdb814deca5055276734020d7f9ffa4be82de07abe616a
Contents?: true
Size: 1.4 KB
Versions: 1
Compression:
Stored size: 1.4 KB
Contents
#!/usr/bin/env rake require 'json' 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") puts "\n" puts "bootstrap-datepicker version: #{JSON.parse(File.read('./bootstrap-datepicker-src/bower.json'))['version']}" puts "bootstrap-datepicker-rails version: #{BootstrapDatepickerRails::Rails::VERSION}" 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__) tags = `git tag` system("git tag #{BootstrapDatepickerRails::Rails::VERSION}") unless tags =~ /#{BootstrapDatepickerRails::Rails::VERSION}/ system("gem push bootstrap-datepicker-rails-#{BootstrapDatepickerRails::Rails::VERSION}.gem") system("git push --follow-tags") end task :release => :publish do end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bootstrap-datepicker-rails-1.1.1.3 | Rakefile |