-
-
Save jnunemaker/349481 to your computer and use it in GitHub Desktop.
simple gemspec generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 = "[email protected]" | |
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