anchor.diff:      ENV['GEM_HOME']="#{prefix}"
       ENV['GEM_PATH']="#{prefix}"
   
  -    rubybindir = '<%= use_homebrew_ruby ? "#{homebrew_prefix}/bin" : "/usr/bin" %>'
  -    gem_path = "#{rubybindir}/gem"
  -    ruby_path = "#{rubybindir}/ruby"
  -    system gem_path, "install", cached_download,
  +    system BREWGEM_GEM_PATH, "install", cached_download,
                "--no-ri",
                "--no-rdoc",
                "--no-wrapper",
  
positive.code: 
  require 'formula'
  require 'fileutils'
  
  class RubyGemsDownloadStrategy < AbstractDownloadStrategy
    def fetch
      ohai "Fetching <%= name %> from gem source"
      HOMEBREW_CACHE.cd do
        ENV['GEM_SPEC_CACHE'] = "#{HOMEBREW_CACHE}/gem_spec_cache"
        system "gem", "fetch", "<%= name %>", "--version", resource.version
      end
    end
  
  
negative.code:       file = Pathname.new("#{brew_gem_prefix}/#{gemspec.bindir}/#{exe}")
        (bin+file.basename).open('w') do |f|
          f << <<-RUBY
  #!#{BREWGEM_RUBY_PATH} --disable-gems
  ENV['GEM_HOME']="#{prefix}"
  ENV['GEM_PATH']="#{prefix}"
  require 'rubygems'
  