diff options
author | Homu <homu@barosl.com> | 2016-03-30 06:19:40 +0900 |
---|---|---|
committer | Homu <homu@barosl.com> | 2016-03-30 06:19:40 +0900 |
commit | 7cc7716bbfa4484a61bd277e4706249bdfb01b52 (patch) | |
tree | 795c0e232c115a94598674c7e1676b0742bef585 | |
parent | 8e5ae78f89ae89ed689c3b2eeff2260bd74a48f7 (diff) | |
parent | e469222292e5bb3fbac26c47563de39a956b3aad (diff) | |
download | bundler-7cc7716bbfa4484a61bd277e4706249bdfb01b52.tar.gz |
Auto merge of #4399 - spk:fix-80-column-newgem-gemspec, r=segiddins
Fix 80 column on newgem gemspec
80 column is not respected on newgem created, this have to be changed every new gem for those respecting this convention.
Cheers
-rw-r--r-- | lib/bundler/templates/newgem/newgem.gemspec.tt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/bundler/templates/newgem/newgem.gemspec.tt b/lib/bundler/templates/newgem/newgem.gemspec.tt index 22916f12..9d6d491d 100644 --- a/lib/bundler/templates/newgem/newgem.gemspec.tt +++ b/lib/bundler/templates/newgem/newgem.gemspec.tt @@ -21,10 +21,13 @@ Gem::Specification.new do |spec| if spec.respond_to?(:metadata) spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'" else - raise "RubyGems 2.0 or newer is required to protect against public gem pushes." + raise "RubyGems 2.0 or newer is required to protect against " \ + "public gem pushes." end - spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } + spec.files = `git ls-files -z`.split("\x0").reject do |f| + f.match(%r{^(test|spec|features)/}) + end spec.bindir = "exe" spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] |