bump required ruby version to 1.9.2 and use Array#sample instead of Array#pick in core/ext