Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Mar 2018 20:34:39 +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: r464281 - in head/devel: . rubygem-equatable
Message-ID:  <201803122034.w2CKYdGl001943@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Mon Mar 12 20:34:39 2018
New Revision: 464281
URL: https://svnweb.freebsd.org/changeset/ports/464281

Log:
  Add rubygem-equatable 0.5.0
  
  Equatable allows ruby objects to implement equality comparison and inspection
  methods.
  
  By including this module, a class indicates that its instances have explicit
  general contracts for hash, == and eql? methods. Specifically eql? contract
  requires that it implements an equivalence relation. By default each instance of
  the class is equal only to itself. This is a right behaviour when you have
  distinct objects. Howerver, it is the responsibility of any class to clearly
  define their equality. Failure to do so may prevent instances to behave as
  expected when for instance Array#uniq is invoked or when they are used as Hash
  keys.
  
  WWW: https://github.com/piotrmurach/equatable

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

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Mon Mar 12 20:33:49 2018	(r464280)
+++ head/devel/Makefile	Mon Mar 12 20:34:39 2018	(r464281)
@@ -5407,6 +5407,7 @@
     SUBDIR += rubygem-elif
     SUBDIR += rubygem-enumerize
     SUBDIR += rubygem-equalizer
+    SUBDIR += rubygem-equatable
     SUBDIR += rubygem-errand
     SUBDIR += rubygem-et-orbi
     SUBDIR += rubygem-eventmachine

Added: head/devel/rubygem-equatable/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rubygem-equatable/Makefile	Mon Mar 12 20:34:39 2018	(r464281)
@@ -0,0 +1,19 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	equatable
+PORTVERSION=	0.5.0
+CATEGORIES=	devel rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Implement equality comparison and inspection methods
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+NO_ARCH=	yes
+USE_RUBY=	yes
+USES=		gem
+
+.include <bsd.port.mk>

Added: head/devel/rubygem-equatable/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rubygem-equatable/distinfo	Mon Mar 12 20:34:39 2018	(r464281)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1520738611
+SHA256 (rubygem/equatable-0.5.0.gem) = fdc8669f9bdc993be5cb6c08ec86343a7e87756e33c68ff5f63dfaa9e44f55ea
+SIZE (rubygem/equatable-0.5.0.gem) = 10240

Added: head/devel/rubygem-equatable/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rubygem-equatable/pkg-descr	Mon Mar 12 20:34:39 2018	(r464281)
@@ -0,0 +1,13 @@
+Equatable allows ruby objects to implement equality comparison and inspection
+methods.
+
+By including this module, a class indicates that its instances have explicit
+general contracts for hash, == and eql? methods. Specifically eql? contract
+requires that it implements an equivalence relation. By default each instance of
+the class is equal only to itself. This is a right behaviour when you have
+distinct objects. Howerver, it is the responsibility of any class to clearly
+define their equality. Failure to do so may prevent instances to behave as
+expected when for instance Array#uniq is invoked or when they are used as Hash
+keys.
+
+WWW: https://github.com/piotrmurach/equatable



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