forked from tispratik/bootstrap-timepicker-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
executable file
·31 lines (25 loc) · 1.02 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env rake
require File.expand_path('../lib/bootstrap-timepicker-rails/version', __FILE__)
desc "Update assets"
task 'update' do
system("rm -rf bootstrap-timepicker-src")
system("git clone git://github.com/jdewit/bootstrap-timepicker.git bootstrap-timepicker-src")
system("cp bootstrap-timepicker-src/css/bootstrap-timepicker.min.css vendor/assets/stylesheets/bootstrap-timepicker.css")
system("cp bootstrap-timepicker-src/js/bootstrap-timepicker.js vendor/assets/javascripts/bootstrap-timepicker.js")
system("git status")
end
desc "Build the gem"
task "build" do
system("gem build bootstrap-timepicker-rails.gemspec")
end
desc "Publish the gem"
task 'publish' do
system("gem push bootstrap-timepicker-rails-#{BootstrapTimepickerRails::Rails::VERSION}.gem")
system("git push")
end
desc "Build and publish the gem"
task "release" do
system("gem build bootstrap-timepicker-rails.gemspec")
system("gem push bootstrap-timepicker-rails-#{BootstrapTimepickerRails::Rails::VERSION}.gem")
system("git push")
end