In preparation for gitlab 11.7 upgrade switch rails4 to rails50.
If required upgraded version to work correctly with rails50.
Fixed some cosmetic issue to make portlint happy.
Reviewed by: sunpoet
Differential Revision: https://reviews.freebsd.org/D18957
Add rubygem-validates_hostname 1.0.6
Extension to ActiveRecord::Base for validating hostnames and domain names.
- Adds validation for hostnames to ActiveModel
- Supports i18n for the error messages