Use 2.1 ruby version string on travis ci.
Make the regular expression for external link url matching configurable.