Skip to content

Instantly share code, notes, and snippets.

@jnunemaker
Forked from defunkt/gemspec
Created March 30, 2010 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnunemaker/349481 to your computer and use it in GitHub Desktop.
Save jnunemaker/349481 to your computer and use it in GitHub Desktop.
simple gemspec generator
#!/usr/bin/env ruby
# Usage: generate a blank gemspec, for defunkt
abort "pass a name" unless name = ARGV[0]
date = Time.now.strftime('%Y-%m-%d')
puts <<spec
Gem::Specification.new do |s|
s.name = "#{name}"
s.version = "0.1.0"
s.date = "#{date}"
s.summary = "Feed me."
s.homepage = "http://github.com/defunkt/#{name}"
s.email = "chris@ozmm.org"
s.authors = [ "Chris Wanstrath" ]
s.has_rdoc = false
s.files = %w( README.md Rakefile LICENSE )
s.files += Dir.glob("lib/**/*")
s.files += Dir.glob("bin/**/*")
s.files += Dir.glob("man/**/*")
s.files += Dir.glob("test/**/*")
# s.executables = %w( #{name} )
s.description = <<desc
Feed me.
desc
end
spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment