diff --git a/lib/minigems.rb b/lib/minigems.rb index 8d888c8..f5e5b47 100644 --- a/lib/minigems.rb +++ b/lib/minigems.rb @@ -1,7 +1,8 @@ module Gem +unless const_defined?(:MiniGems) module MiniGems VERSION = "0.9.2" - + # The next line needs to be kept exactly as shown; it's being replaced # during minigems installation. FULL_RUBYGEMS_METHODS = [] @@ -10,9 +11,10 @@ def self.camel_case(str) return str if str !~ /_/ && str =~ /[A-Z]+.*/ str.split('_').map{|e| e.capitalize}.join end - + end end +end # Enable minigems unless rubygems has already loaded. unless $LOADED_FEATURES.include?("rubygems.rb")