aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2017-03-23 05:03:48 +0800
committersunpoet <sunpoet@FreeBSD.org>2017-03-23 05:03:48 +0800
commit36cc1a5f0041eee532a57571b75b3fc51b371e2d (patch)
treee3901f6434ae3d245872116ecf484efc2d9b6190
parente4f0ad6c77da608842351444249167d228482664 (diff)
downloadfreebsd-ports-gnome-36cc1a5f0041eee532a57571b75b3fc51b371e2d.tar.gz
freebsd-ports-gnome-36cc1a5f0041eee532a57571b75b3fc51b371e2d.tar.zst
freebsd-ports-gnome-36cc1a5f0041eee532a57571b75b3fc51b371e2d.zip
Add rubygem-validates_hostname 1.0.6
Extension to ActiveRecord::Base for validating hostnames and domain names. Features: - Adds validation for hostnames to ActiveModel - Supports i18n for the error messages WWW: https://github.com/KimNorgaard/validates_hostname
-rw-r--r--dns/Makefile1
-rw-r--r--dns/rubygem-validates_hostname/Makefile22
-rw-r--r--dns/rubygem-validates_hostname/distinfo3
-rw-r--r--dns/rubygem-validates_hostname/pkg-descr7
4 files changed, 33 insertions, 0 deletions
diff --git a/dns/Makefile b/dns/Makefile
index 8805fe8f9851..52bf9b5ca30d 100644
--- a/dns/Makefile
+++ b/dns/Makefile
@@ -195,6 +195,7 @@
SUBDIR += rubygem-public_suffix
SUBDIR += rubygem-public_suffix_service
SUBDIR += rubygem-simpleidn
+ SUBDIR += rubygem-validates_hostname
SUBDIR += samba-nsupdate
SUBDIR += scavenge
SUBDIR += sheerdns
diff --git a/dns/rubygem-validates_hostname/Makefile b/dns/rubygem-validates_hostname/Makefile
new file mode 100644
index 000000000000..0e80b14e9999
--- /dev/null
+++ b/dns/rubygem-validates_hostname/Makefile
@@ -0,0 +1,22 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= validates_hostname
+PORTVERSION= 1.0.6
+CATEGORIES= dns rubygems
+MASTER_SITES= RG
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Extension to ActiveRecord::Base for validating hostnames
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/MIT-LICENSE
+
+RUN_DEPENDS= rubygem-activerecord4>=3.0:databases/rubygem-activerecord4 \
+ rubygem-activesupport4>=3.0:devel/rubygem-activesupport4
+
+NO_ARCH= yes
+USE_RUBY= yes
+USES= gem
+
+.include <bsd.port.mk>
diff --git a/dns/rubygem-validates_hostname/distinfo b/dns/rubygem-validates_hostname/distinfo
new file mode 100644
index 000000000000..73e736faf20b
--- /dev/null
+++ b/dns/rubygem-validates_hostname/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1490205275
+SHA256 (rubygem/validates_hostname-1.0.6.gem) = 4a4e8f7c4c6a3f5f0756f0fcd7eebaf995fe7c4d2f063dd5768e489436a0e112
+SIZE (rubygem/validates_hostname-1.0.6.gem) = 12288
diff --git a/dns/rubygem-validates_hostname/pkg-descr b/dns/rubygem-validates_hostname/pkg-descr
new file mode 100644
index 000000000000..90299acc3ad2
--- /dev/null
+++ b/dns/rubygem-validates_hostname/pkg-descr
@@ -0,0 +1,7 @@
+Extension to ActiveRecord::Base for validating hostnames and domain names.
+
+Features:
+- Adds validation for hostnames to ActiveModel
+- Supports i18n for the error messages
+
+WWW: https://github.com/KimNorgaard/validates_hostname