Fix rubygems source
Remove broken test config 'glueoutputbuf'
Fix deprecation in tests: mock -> double