def find_gem_name(base)
      spec = Dir[File.join(base, '*.gemspec')].first
      File.basename(spec, '.gemspec') if spec
    end
def find_gem_name(base)
      spec = Dir[File.join(base, '*.gemspec')].first
      File.basename(spec, '.gemspec') if spec
    end
Search a directory for a .gemspec file to determine the gem name.
 Returns nil if no gemspec is found.

 @param base [String] Folder to search.
 @return [String, nil]