Created
March 9, 2010 01:41
-
-
Save defunkt/326059 to your computer and use it in GitHub Desktop.
Revisions
-
defunkt revised this gist
May 14, 2010 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -27,7 +27,7 @@ require "#{name}/version" Gem::Specification.new do |s| s.name = "#{name}" s.version = #{name.capitalize}::VERSION s.date = Time.now.strftime('%Y-%m-%d') s.summary = "Feed me." s.homepage = "http://github.com/#{login}/#{name}" -
defunkt revised this gist
May 13, 2010 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -52,8 +52,8 @@ if save if File.exist? file = "#{name}.gemspec" abort "* #{file} exists!" else File.open(file, 'w') { |f| f.puts gemspec } end else puts gemspec end -
defunkt revised this gist
May 13, 2010 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ #!/usr/bin/env ruby # Usage: gemspec [-s] GEMNAME # # Prints a basic gemspec for GEMNAME based on your git-config info. # If -s is passed, saves it as a GEMNAME.gemspec in the current # directory. Otherwise prints to standard output. -
defunkt revised this gist
May 13, 2010 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,7 @@ # $ gem build GEMNAME.gemspec # $ gem push GEMNAME-VERSION.gem # # Wants you to have a "lib/GEMNAME/version.rb" file in your project # which sets the GEMNAME::VERSION constant. fullname = `git config --get user.name`.chomp @@ -52,8 +52,8 @@ if save if File.exist? file = "#{name}.gemspec" abort "* #{file} exists!" else File.open("#{name}.gemspec", 'w') { |f| f.puts gemspec } end else puts gemspec end -
defunkt revised this gist
May 13, 2010 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ #!/usr/bin/env ruby # # Usage: gemspec [-s] GEMNAME # Prints a basic gemspec for GEMNAME based on your git-config info. # If -s is passed, saves it as a GEMNAME.gemspec in the current # directory. Otherwise prints to standard output. @@ -10,6 +10,9 @@ # # $ gem build GEMNAME.gemspec # $ gem push GEMNAME-VERSION.gem # # Wants you to have a "lib/GEMNAME/version.rb" file in your project # which sets the GEMNAME::VERSION constant. fullname = `git config --get user.name`.chomp email = `git config --get user.email`.chomp @@ -19,6 +22,7 @@ save = ARGV.delete('-s') abort "* Pass a gem name." unless name = ARGV[0] gemspec = <<spec $LOAD_PATH.unshift 'lib' require "#{name}/version" Gem::Specification.new do |s| -
defunkt revised this gist
May 13, 2010 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,6 @@ #!/usr/bin/env ruby # Usage: gemspec [-s] GEMNAME # # Prints a basic gemspec for GEMNAME based on your git-config info. # If -s is passed, saves it as a GEMNAME.gemspec in the current # directory. Otherwise prints to standard output. -
defunkt revised this gist
May 13, 2010 . 2 changed files with 54 additions and 31 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,54 @@ #!/usr/bin/env ruby # Usage: gemspec [-s] GEMNAME # Prints a basic gemspec for GEMNAME based on your git-config info. # If -s is passed, saves it as a GEMNAME.gemspec in the current # directory. Otherwise prints to standard output. # # Once you check this gemspec into your project, releasing a new gem # is dead simple: # # $ gem build GEMNAME.gemspec # $ gem push GEMNAME-VERSION.gem fullname = `git config --get user.name`.chomp email = `git config --get user.email`.chomp login = `git config --get github.user`.chomp save = ARGV.delete('-s') abort "* Pass a gem name." unless name = ARGV[0] gemspec = <<spec require "#{name}/version" Gem::Specification.new do |s| s.name = "#{name}" s.version = "#{name.capitalize}::Version" s.date = Time.now.strftime('%Y-%m-%d') s.summary = "Feed me." s.homepage = "http://github.com/#{login}/#{name}" s.email = "#{email}" s.authors = [ "#{fullname}" ] 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 if save if File.exist? file = "#{name}.gemspec" abort "* #{file} exists!" else File.open("#{name}.gemspec") { |f| f.puts gemspec } end else puts gemspec end This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,31 +0,0 @@ -
defunkt revised this gist
May 13, 2010 . 1 changed file with 4 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -5,10 +5,12 @@ abort "pass a name" unless name = ARGV[0] date = Time.now.strftime('%Y-%m-%d') puts <<spec require "#{name}/version" Gem::Specification.new do |s| s.name = "#{name}" s.version = "#{name.capitalize}::Version" s.date = Time.now.strftime('%Y-%m-%d') s.summary = "Feed me." s.homepage = "http://github.com/defunkt/#{name}" s.email = "[email protected]" -
defunkt created this gist
Mar 9, 2010 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ #!/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