Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed binary name bin/minigems to bin/minigem

  • Loading branch information...
commit 74c1106d922b390232ffe396cdd518502f4d7765 1 parent 12844b2
@fabien authored
Showing with 3 additions and 2 deletions.
  1. +2 −2 Rakefile
  2. +1 −0  bin/{minigems → minigem}
View
4 Rakefile
@@ -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
View
1  bin/minigems → bin/minigem
@@ -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) }
Please sign in to comment.
Something went wrong with that request. Please try again.