diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2015-11-26 12:39:25 -0600 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2015-11-26 12:39:25 -0600 |
commit | 404903c84e85004f1d451bf75a6b534c87efb089 (patch) | |
tree | 1354131080f43015b1416574a07e9a9e988c6ae8 /spec/support/builders.rb | |
parent | 29eaf79e9c1b6c4e73256ad02cbd502577e6f454 (diff) | |
download | bundler-404903c84e85004f1d451bf75a6b534c87efb089.tar.gz |
[RuboCop] Enable Style/IfUnlessModifier
Diffstat (limited to 'spec/support/builders.rb')
-rw-r--r-- | spec/support/builders.rb | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/spec/support/builders.rb b/spec/support/builders.rb index 6c503c9217..4f5dace604 100644 --- a/spec/support/builders.rb +++ b/spec/support/builders.rb @@ -408,9 +408,7 @@ module Spec Array(versions).each do |version| spec = builder.new(self, name, version) - if !spec.authors || spec.authors.empty? - spec.authors = ["no one"] - end + spec.authors = ["no one"] if !spec.authors || spec.authors.empty? yield spec if block_given? spec._build(options) end @@ -551,9 +549,7 @@ module Spec @files["#{name}.gemspec"] = @spec.to_ruby end - unless options[:no_default] - @files = _default_files.merge(@files) - end + @files = _default_files.merge(@files) unless options[:no_default] @spec.authors = ["no one"] @@ -666,9 +662,7 @@ module Spec destination = opts[:path] || _default_path FileUtils.mkdir_p(destination) - if !@spec.authors || @spec.authors.empty? - @spec.authors = ["that guy"] - end + @spec.authors = ["that guy"] if !@spec.authors || @spec.authors.empty? Bundler.rubygems.build(@spec, opts[:skip_validation]) if opts[:to_system] |