compatibility with rubygems 2.x
Merge pull request #2420 from tmacedo/rubygems_2_compatibility

core: compatibility with rubygems 2.x