Maybe I’m missing something here but:
The code served by rubygems for 4.1.11 version or Rails (https://rubygems.org/downloads/activerecord-4.1.11.gem)
does not match the repo’s code
E.g. Check the blacklist here:
compact should be missing in rubygems too but it is still there. Maybe a failed gem build?