pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/ruby-equatable devel/ruby-equatable: add package...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4b9c24fae172
branches:  trunk
changeset: 343852:4b9c24fae172
user:      taca <taca%pkgsrc.org@localhost>
date:      Tue Nov 12 15:21:00 2019 +0000

description:
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.

diffstat:

 devel/ruby-equatable/DESCR    |  12 ++++++++++++
 devel/ruby-equatable/Makefile |  14 ++++++++++++++
 devel/ruby-equatable/PLIST    |  19 +++++++++++++++++++
 devel/ruby-equatable/distinfo |   6 ++++++
 4 files changed, 51 insertions(+), 0 deletions(-)

diffs (67 lines):

diff -r 4ba2e14d7cf4 -r 4b9c24fae172 devel/ruby-equatable/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-equatable/DESCR        Tue Nov 12 15:21:00 2019 +0000
@@ -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.
diff -r 4ba2e14d7cf4 -r 4b9c24fae172 devel/ruby-equatable/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-equatable/Makefile     Tue Nov 12 15:21:00 2019 +0000
@@ -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"
diff -r 4ba2e14d7cf4 -r 4b9c24fae172 devel/ruby-equatable/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-equatable/PLIST        Tue Nov 12 15:21:00 2019 +0000
@@ -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
diff -r 4ba2e14d7cf4 -r 4b9c24fae172 devel/ruby-equatable/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-equatable/distinfo     Tue Nov 12 15:21:00 2019 +0000
@@ -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