summaryrefslogtreecommitdiff
path: root/spec/support/builders.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/builders.rb')
-rw-r--r--spec/support/builders.rb12
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]