Sha256: d3542fd79ff2fcae6bc5dac785bebad003bd9d1145a2ade03ef18937d9046e9c
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 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/component.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 --tags") end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bootstrap-datepicker-rails-1.1.1.1 | Rakefile |