svn commit: r397397 - in head/devel: . rubygem-protected_attributes
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun Sep 20 20:15:32 UTC 2015
Author: sunpoet
Date: Sun Sep 20 20:15:30 2015
New Revision: 397397
URL: https://svnweb.freebsd.org/changeset/ports/397397
Log:
- Add rubygem-protected_attributes 1.1.3
Protect attributes from mass-assignment in Active Record models.
This plugin adds the class methods attr_accessible and attr_protected to your
models to be able to declare white or black lists of attributes.
Note: This plugin will be officially supported until the release of Rails 5.0.
WWW: https://github.com/rails/protected_attributes
Added:
head/devel/rubygem-protected_attributes/
head/devel/rubygem-protected_attributes/Makefile (contents, props changed)
head/devel/rubygem-protected_attributes/distinfo (contents, props changed)
head/devel/rubygem-protected_attributes/pkg-descr (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Sun Sep 20 20:14:44 2015 (r397396)
+++ head/devel/Makefile Sun Sep 20 20:15:30 2015 (r397397)
@@ -4840,6 +4840,7 @@
SUBDIR += rubygem-power_assert
SUBDIR += rubygem-powerbar
SUBDIR += rubygem-progressbar
+ SUBDIR += rubygem-protected_attributes
SUBDIR += rubygem-prototype-rails
SUBDIR += rubygem-pry
SUBDIR += rubygem-pry-rails
Added: head/devel/rubygem-protected_attributes/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rubygem-protected_attributes/Makefile Sun Sep 20 20:15:30 2015 (r397397)
@@ -0,0 +1,22 @@
+# Created by: Sunpoet Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= protected_attributes
+PORTVERSION= 1.1.3
+CATEGORIES= devel rubygems
+MASTER_SITES= RG
+
+MAINTAINER= sunpoet at FreeBSD.org
+COMMENT= Protect attributes from mass assignment
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS= rubygem-activemodel4>=4.0.1:${PORTSDIR}/databases/rubygem-activemodel4
+
+NO_ARCH= yes
+USE_RUBY= yes
+USE_RUBYGEMS= yes
+RUBYGEM_AUTOPLIST= yes
+
+.include <bsd.port.mk>
Added: head/devel/rubygem-protected_attributes/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rubygem-protected_attributes/distinfo Sun Sep 20 20:15:30 2015 (r397397)
@@ -0,0 +1,2 @@
+SHA256 (rubygem/protected_attributes-1.1.3.gem) = e3bf636ae271a55005271a6bfa1b5aca884d7448d56a638f8ea28241a5bef7bd
+SIZE (rubygem/protected_attributes-1.1.3.gem) = 15360
Added: head/devel/rubygem-protected_attributes/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rubygem-protected_attributes/pkg-descr Sun Sep 20 20:15:30 2015 (r397397)
@@ -0,0 +1,8 @@
+Protect attributes from mass-assignment in Active Record models.
+
+This plugin adds the class methods attr_accessible and attr_protected to your
+models to be able to declare white or black lists of attributes.
+
+Note: This plugin will be officially supported until the release of Rails 5.0.
+
+WWW: https://github.com/rails/protected_attributes
More information about the svn-ports-all
mailing list