We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5dc9ed commit ffd68fdCopy full SHA for ffd68fd
Rakefile
@@ -36,16 +36,7 @@ task 'update' do
36
end
37
38
desc "Release a new version"
39
-task "release" do
40
- version_file = File.read("lib/bootstrap-wysihtml5-rails/version.rb")
41
- minor = version_file.match(/MINOR = \d+/)[0]
42
- minor_integer = minor.match(/\d+/)[0].to_i + 1
43
- replaced = version_file.gsub(minor, "MINOR = " + minor_integer.to_s)
44
- File.open("lib/bootstrap-wysihtml5-rails/version.rb", "w") { |file| file.puts replaced }
45
-
46
- system("git add . ")
47
- system("git commit -m 'update assets'")
48
+task "release" do
49
system("gem build bootstrap-wysihtml5-rails.gemspec")
50
system("gem push bootstrap-wysihtml5-rails-#{BootstrapWysihtml5Rails::Rails::VERSION}.gem")
51
system("git push")
0 commit comments