Permalink
Browse files

Changed binary name bin/minigems to bin/minigem

  • Loading branch information...
1 parent 12844b2 commit 74c1106d922b390232ffe396cdd518502f4d7765 @fabien committed Aug 30, 2008
Showing with 3 additions and 2 deletions.
  1. +2 −2 Rakefile
  2. +1 −0 bin/{minigems → minigem}
View
@@ -32,10 +32,10 @@ spec = Gem::Specification.new do |s|
s.email = GEM_EMAIL
s.homepage = PROJECT_URL
s.bindir = "bin"
- s.executables = %w( minigems )
+ s.executables = %w( minigem )
s.require_path = "lib"
s.files = %w(LICENSE README Rakefile) + Dir.glob("{lib,bin,spec}/**/*")
- s.post_install_message = "Run 'minigems' for instructions on how to proceed."
+ s.post_install_message = "Run 'minigem' for instructions on how to proceed."
end
def sudo
@@ -48,6 +48,7 @@ end
def adapt_executables_for(gemspec)
gemspec.executables.each do |executable|
+ next if executable == 'minigem' # can't ever modify itself
if File.exists?(wrapper_path = File.join(Gem.bindir, executable))
wrapper_code = File.read(wrapper_path).gsub(/require\s+['"]rubygems['"]/, "require 'minigems'").gsub("RubyGems", "MiniGems")
if File.open(wrapper_path, 'w') { |f| f.write(wrapper_code) }

0 comments on commit 74c1106

Please sign in to comment.