Skip to content

Commit

Permalink
Fixed const already initialized warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fabien committed Sep 27, 2008
1 parent 4a087de commit e1fae28
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions 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 = []
Expand All @@ -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")
Expand Down

0 comments on commit e1fae28

Please sign in to comment.