Skip to content

Instantly share code, notes, and snippets.

@marocchino
Created February 23, 2012 09:13
Show Gist options
  • Save marocchino/1891772 to your computer and use it in GitHub Desktop.
Save marocchino/1891772 to your computer and use it in GitHub Desktop.
이건 무슨 뻘짓인가 'ㅅ'
Gem.module_eval do
class << Gem
alias_method :orig_activate, :activate
def activate(gem, *version_requirements)
orig_activate(gem, *version_requirements)
rescue Gem::LoadError => e
if (gem.is_a?(String) ? gem : gem.name) == 'rack'
false
else
raise e
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment