share/gemspec/templates/init/gemspec.gemspec in gemspec-0.2.1 vs share/gemspec/templates/init/gemspec.gemspec in gemspec-0.2.2
- old
+ new
@@ -20,11 +20,12 @@
s.description = %q{TODO: Write a description}
s.licenses = %w[MIT]
#####Unlikely to change
- s.email = [ `git config user.email` ]
- s.homepage = "https://github.com/#{`git config github.username`}/#{s.name}.git"
+ s.email = [ `git config user.email`.chomp ]
+ s.homepage = "https://github.com/#{`git config github.username`.chomp}/#{s.name}.git"
+ $? == 0 or s.homepage = nil
###################################
#Dependencies
s.add_development_dependency 'rake', '~> 10.4'
s.add_development_dependency 'minitest-documentation'