Sha256: a71cd621b80ae25175125b1b226fe044f2ddca6b3f8f47a39fc75b844604851c
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 KB
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 puts "hello" core_file = File.read("vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ms.js") string = 'monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Ogo", "Sep", "Okt", "Nov", "Dis"]' modified_file = core_file.gsub(string, string + ',') File.open("vendor/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ms.js", "w") { |file| file.puts modified_file } end desc "Build and publish de gem" task "build" do system("gem build bootstrap-datepicker-rails.gemspec") end desc "Build and publish de gem" task "publish" 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bootstrap-datepicker-rails-0.6.29 | Rakefile |