Uninitialized constant Psych::Syck

Hello, I made a gem with ruby 1.9.2p136 and successfully pushed it to
rubygems, but when I’m trying to install it (with the same ruby version,
on the same machine) there’s an error:

$ gem install mongoid_misc
ERROR:  While executing gem ... (NameError)
    uninitialized constant Psych::Syck

I found some discussion about it in the internet but still can’t fix
it.

I fixed it with this

require 'yaml'
require 'psych'
YAML::ENGINE.yamler = 'syck'