# File lib/gemnasium/configuration.rb, line 47
    def store_value!(key, value, comment = nil)
      pattern = /\A#{ key }:.*\Z/
      new_line = "#{ key }: #{ value }"
      new_line += " # #{ comment }" if comment

      content = File.readlines(path).map do |line|
        line.rstrip.sub pattern, new_line
      end.join("\n") + "\n"

      File.write path, content
    end