Added, if this is the syntax:

#ignore gemfile
/gemfile
/gemfile.lock