Skip to content

Commit ffd68fd

Browse files
committed
version up
1 parent c5dc9ed commit ffd68fd

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

Rakefile

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,7 @@ task 'update' do
3636
end
3737

3838
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-
39+
task "release" do
4940
system("gem build bootstrap-wysihtml5-rails.gemspec")
5041
system("gem push bootstrap-wysihtml5-rails-#{BootstrapWysihtml5Rails::Rails::VERSION}.gem")
5142
system("git push")

0 commit comments

Comments
 (0)