Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add an author because it's required now

  • Loading branch information...
commit 73181820ee77d89966f6cbee5c0b6d3d8bf619d6 1 parent 9525436
Evan Phoenix authored indirect committed
Showing with 12 additions and 0 deletions.
  1. +2 −0  lib/bundler/source.rb
  2. +10 −0 spec/support/builders.rb
View
2  lib/bundler/source.rb
@@ -180,6 +180,7 @@ def installed_specs
s.version = VERSION
s.platform = Gem::Platform::RUBY
s.source = self
+ s.authors = ["bundler team"]
s.loaded_from = File.expand_path("..", __FILE__)
end
idx << bundler
@@ -353,6 +354,7 @@ def load_spec_files
s.platform = Gem::Platform::RUBY
s.summary = "Fake gemspec for #{@name}"
s.relative_loaded_from = "#{@name}.gemspec"
+ s.authors = ["no one"]
if expanded_path.join("bin").exist?
binaries = expanded_path.join("bin").children
binaries.reject!{|p| File.directory?(p) }
View
10 spec/support/builders.rb
@@ -322,6 +322,9 @@ def build_with(builder, name, args, &blk)
Array(versions).each do |version|
spec = builder.new(self, name, version)
+ if !spec.authors or spec.authors.empty?
+ spec.authors = ["no one"]
+ end
yield spec if block_given?
spec._build(options)
end
@@ -454,6 +457,8 @@ def @spec.validate; end
@files = _default_files.merge(@files)
end
+ @spec.authors = ["no one"]
+
@files.each do |file, source|
file = Pathname.new(path).join(file)
FileUtils.mkdir_p(file.dirname)
@@ -563,6 +568,11 @@ def _build(opts)
Dir.chdir(lib_path) do
destination = opts[:path] || _default_path
FileUtils.mkdir_p(destination)
+
+ if !@spec.authors or @spec.authors.empty?
+ @spec.authors = ["that guy"]
+ end
+
Gem::Builder.new(@spec).build
if opts[:to_system]
`gem install --ignore-dependencies #{@spec.full_name}.gem`

0 comments on commit 7318182

Please sign in to comment.
Something went wrong with that request. Please try again.