I'm wondering why wouldn't RubyGems implement some basic form of malware detection? This type of code shouldn't be too hard to classify.
Even simple open(), sleep(), eval() could be easily obfuscated.