class Gem::Specification

def to_gemfile(path = nil)

def to_gemfile(path = nil)
  gemfile = "source 'https://rubygems.org'\n"
  gemfile << dependencies_to_gemfile(nondevelopment_dependencies)
  unless development_dependencies.empty?
    gemfile << "\n"
    gemfile << dependencies_to_gemfile(development_dependencies, :development)
  end
  gemfile
end