pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/ruby-equatable



Module Name:    pkgsrc
Committed By:   taca
Date:           Tue Nov 12 15:21:00 UTC 2019

Added Files:
        pkgsrc/devel/ruby-equatable: DESCR Makefile PLIST distinfo

Log Message:
devel/ruby-equatable: add package version 0.6.1

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.  However, 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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/ruby-equatable/DESCR \
    pkgsrc/devel/ruby-equatable/Makefile pkgsrc/devel/ruby-equatable/PLIST \
    pkgsrc/devel/ruby-equatable/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/ruby-equatable/DESCR
diff -u /dev/null pkgsrc/devel/ruby-equatable/DESCR:1.1
--- /dev/null   Tue Nov 12 15:21:00 2019
+++ pkgsrc/devel/ruby-equatable/DESCR   Tue Nov 12 15:21:00 2019
@@ -0,0 +1,12 @@
+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.  However, 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.
Index: pkgsrc/devel/ruby-equatable/Makefile
diff -u /dev/null pkgsrc/devel/ruby-equatable/Makefile:1.1
--- /dev/null   Tue Nov 12 15:21:00 2019
+++ pkgsrc/devel/ruby-equatable/Makefile        Tue Nov 12 15:21:00 2019
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1 2019/11/12 15:21:00 taca Exp $
+
+DISTNAME=      equatable-0.6.1
+CATEGORIES=    devel
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/piotrmurach/equatable
+COMMENT=       Extends equality comparison and inspection methods
+LICENSE=       mit
+
+USE_LANGUAGES= # none
+
+.include "../../lang/ruby/gem.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/ruby-equatable/PLIST
diff -u /dev/null pkgsrc/devel/ruby-equatable/PLIST:1.1
--- /dev/null   Tue Nov 12 15:21:00 2019
+++ pkgsrc/devel/ruby-equatable/PLIST   Tue Nov 12 15:21:00 2019
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1 2019/11/12 15:21:00 taca Exp $
+${GEM_HOME}/cache/${GEM_NAME}.gem
+${GEM_LIBDIR}/CHANGELOG.md
+${GEM_LIBDIR}/LICENSE.txt
+${GEM_LIBDIR}/README.md
+${GEM_LIBDIR}/Rakefile
+${GEM_LIBDIR}/equatable.gemspec
+${GEM_LIBDIR}/examples/point.rb
+${GEM_LIBDIR}/lib/equatable.rb
+${GEM_LIBDIR}/lib/equatable/version.rb
+${GEM_LIBDIR}/spec/equatable/eql_spec.rb
+${GEM_LIBDIR}/spec/equatable/equal_spec.rb
+${GEM_LIBDIR}/spec/equatable/include_spec.rb
+${GEM_LIBDIR}/spec/equatable/subclass_spec.rb
+${GEM_LIBDIR}/spec/spec_helper.rb
+${GEM_LIBDIR}/tasks/console.rake
+${GEM_LIBDIR}/tasks/coverage.rake
+${GEM_LIBDIR}/tasks/spec.rake
+${GEM_HOME}/specifications/${GEM_NAME}.gemspec
Index: pkgsrc/devel/ruby-equatable/distinfo
diff -u /dev/null pkgsrc/devel/ruby-equatable/distinfo:1.1
--- /dev/null   Tue Nov 12 15:21:00 2019
+++ pkgsrc/devel/ruby-equatable/distinfo        Tue Nov 12 15:21:00 2019
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2019/11/12 15:21:00 taca Exp $
+
+SHA1 (equatable-0.6.1.gem) = 98bd73e29193649abf462dc8ed9cfe084e23dab4
+RMD160 (equatable-0.6.1.gem) = d242f4682a1e5c781f620ae78d83837046824ca9
+SHA512 (equatable-0.6.1.gem) = 442a6c9afd31ec2c41f3802703515827cb8d100bea3932c1fadeb036bb96a045883050712f480ebe4f7ea9bda5dab335b0f0d9dcc90a42bf45ce6bcc504fe0d4
+Size (equatable-0.6.1.gem) = 10752 bytes



Home | Main Index | Thread Index | Old Index