Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jul 2017 17:21:22 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r445882 - in head/devel: . rubygem-hashie-forbidden_attributes
Message-ID:  <201707151721.v6FHLMf1056957@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sat Jul 15 17:21:22 2017
New Revision: 445882
URL: https://svnweb.freebsd.org/changeset/ports/445882

Log:
  Add rubygem-hashie-forbidden_attributes 0.1.1
  
  If you're using Rails 4 strong parameters, you will get a
  ForbiddenAttributesProtection exceptions when mass-assigning attributes. This
  gem allows mass assignment. It prevents Mash from responding to :permitted? and
  therefore triggering this behavior in ForbiddenAttributesProtection.
  
  WWW: https://github.com/Maxim-Filimonov/hashie-forbidden_attributes

Added:
  head/devel/rubygem-hashie-forbidden_attributes/
  head/devel/rubygem-hashie-forbidden_attributes/Makefile   (contents, props changed)
  head/devel/rubygem-hashie-forbidden_attributes/distinfo   (contents, props changed)
  head/devel/rubygem-hashie-forbidden_attributes/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sat Jul 15 17:20:26 2017	(r445881)
+++ head/devel/Makefile	Sat Jul 15 17:21:22 2017	(r445882)
@@ -5393,6 +5393,7 @@
     SUBDIR += rubygem-hashdiff
     SUBDIR += rubygem-hashery
     SUBDIR += rubygem-hashie
+    SUBDIR += rubygem-hashie-forbidden_attributes
     SUBDIR += rubygem-hashie2
     SUBDIR += rubygem-health_check
     SUBDIR += rubygem-health_check22

Added: head/devel/rubygem-hashie-forbidden_attributes/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rubygem-hashie-forbidden_attributes/Makefile	Sat Jul 15 17:21:22 2017	(r445882)
@@ -0,0 +1,21 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	hashie-forbidden_attributes
+PORTVERSION=	0.1.1
+CATEGORIES=	devel rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Hashie compatibility layer for forbidden attributes protection
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/MIT-LICENSE
+
+RUN_DEPENDS=	rubygem-hashie>=3.0:devel/rubygem-hashie
+
+NO_ARCH=	yes
+USE_RUBY=	yes
+USES=		gem
+
+.include <bsd.port.mk>

Added: head/devel/rubygem-hashie-forbidden_attributes/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rubygem-hashie-forbidden_attributes/distinfo	Sat Jul 15 17:21:22 2017	(r445882)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1500129707
+SHA256 (rubygem/hashie-forbidden_attributes-0.1.1.gem) = 3a6ed37f3a314e4fb1dd1e2df6eb7721bcadd023a30bc0b951b2b5285a790fb2
+SIZE (rubygem/hashie-forbidden_attributes-0.1.1.gem) = 14848

Added: head/devel/rubygem-hashie-forbidden_attributes/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rubygem-hashie-forbidden_attributes/pkg-descr	Sat Jul 15 17:21:22 2017	(r445882)
@@ -0,0 +1,6 @@
+If you're using Rails 4 strong parameters, you will get a
+ForbiddenAttributesProtection exceptions when mass-assigning attributes. This
+gem allows mass assignment. It prevents Mash from responding to :permitted? and
+therefore triggering this behavior in ForbiddenAttributesProtection.
+
+WWW: https://github.com/Maxim-Filimonov/hashie-forbidden_attributes



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707151721.v6FHLMf1056957>