Skip to content

Commit 3ad46f8

Browse files
committed
refactor
1 parent 5cb5d84 commit 3ad46f8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Rakefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ end
4646
desc "Publish a new version"
4747
task :publish => :build do
4848
tags = `git tag`.split
49-
system("git tag #{BootstrapWysihtml5Rails::Rails::VERSION}") unless tags.include?(BootstrapWysihtml5Rails::Rails::VERSION)
50-
system("gem push bootstrap-wysihtml5-rails-#{BootstrapWysihtml5Rails::Rails::VERSION}.gem")
49+
version = BootstrapWysihtml5Rails::Rails::VERSION
50+
system("git tag -a #{version} -m 'Release #{version}' ") unless tags.include?(version)
51+
system("gem push bootstrap-wysihtml5-rails-#{version}.gem")
5152
system("git push --follow-tags")
5253
end

bootstrap-wysihtml5-rails.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Gem::Specification.new do |gem|
77
gem.description = %q{A wysiwyg text editor for Twitter Bootstrap}
88
gem.homepage = "https://github.com/Nerian/bootstrap-wysihtml5-rails"
99
gem.summary = gem.description
10+
gem.license = 'MIT'
1011

1112
gem.name = "bootstrap-wysihtml5-rails"
1213
gem.require_paths = ["lib"]

0 commit comments

Comments
 (0)