forked from Nerian/bootstrap-wysihtml5-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
30 lines (26 loc) · 1.06 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
#!/usr/bin/env rake
require File.expand_path('../lib/bootstrap-wysihtml5-rails/version', __FILE__)
desc "Update assets"
task 'update' do
system("rm -rf bootstrap-wysihtml5")
system("git clone git://github.com/jhollingworth/bootstrap-wysihtml5.git")
system("cp bootstrap-wysihtml5/src/bootstrap-wysihtml5.css vendor/assets/stylesheets/bootstrap-wysihtml5.css")
system("cp bootstrap-wysihtml5/src/bootstrap-wysihtml5.js vendor/assets/javascripts/bootstrap-wysihtml5.js")
system("cp bootstrap-wysihtml5/lib/js/wysihtml5-0.3.0_rc3.js vendor/assets/javascripts/wysihtml5.js")
system("git status")
end
desc "Build the gem"
task "build" do
system("gem build bootstrap-wysihtml5-rails.gemspec")
end
desc "Publish the gem"
task 'publish' do
system("gem push bootstrap-wysihtml5-rails-#{BootstrapWysihtml5Rails::Rails::VERSION}.gem")
system("git push")
end
desc "Release a new version"
task "release" do
system("gem build bootstrap-wysihtml5-rails.gemspec")
system("gem push bootstrap-wysihtml5-rails-#{BootstrapWysihtml5Rails::Rails::VERSION}.gem")
system("git push")
end