Skip to content
Browse files

Fixed const already initialized warnings

  • Loading branch information...
1 parent 4a087de commit e1fae28384b33b4f44d64e4e3dd8a701c0699b50 @fabien committed
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/minigems.rb
View
6 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")

0 comments on commit e1fae28

Please sign in to comment.
Something went wrong with that request. Please try again.