fix #368
build gemfile with mongoid