pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/ruby-hashery
Module Name: pkgsrc
Committed By: taca
Date: Thu Nov 19 15:41:41 UTC 2026
Modified Files:
pkgsrc/devel/ruby-hashery: Makefile PLIST distinfo
Log Message:
devel/ruby-hashery: update to 2.2.2
2.2.0 / 2026-11-16
This release concentrates on LRUHash, by far the most used part of the
Hashery. Its public API is unchanged, but it has been reimplemented on top
of Ruby's ordered Hash instead of a linked list of nodes, which makes it
about twice as fast, and a number of bugs have been fixed. It also
modernizes the project: Ruby 2.7 or newer is now required, the gem is built
from a plain gemspec, and CI runs on GitHub Actions.
Changes:
* LRUHash is about 2x faster, using Ruby's ordered Hash internally.
* Fix LRUHash#dup and #clone, which shared state with the original.
* Fix LRUHash#inspect and #to_s, which showed keys and values with #to_s and
failed under frozen string literals.
* LRUHash#keys and #values now list most recently used first, like #each.
* LRUHash#fetch accepts a default argument and its KeyError names the key.
* LRUHash#delete accepts a block for missing keys, like Hash#delete.
* LRUHash#delete_if returns an Enumerator when called without a block.
* Add LRUHash#length.
* Fix IniHash.new with a Hash, and so IniHash.text and .write_to_file.
* Fix IniHash.write_to_file with a comment (used String#each).
* Fix require 'hashery/static_hash' on its own.
* Prepare for frozen string literals and fix warnings under ruby -w.
* Require Ruby 2.7 or newer.
* Replace Indexer metadata (.index, Index.yml) with hashery.gemspec.
* Replace Travis CI with GitHub Actions.
2.2.1 (2026-11-17)
This release fixes a number of bugs in Dictionary. Most notably, a
Dictionary kept in order with order_by_key or order_by_value could no longer
be read at all (not even inspected) once it held a key or value that didn't
compare with the others, such as nil (#7). Now sorting by such an order
raises and leaves the Dictionary as it was, and adding an entry the order
can't place raises without storing it. LRUHash is unchanged.
Changes:
* Fix Dictionary sort orders that can't sort the entries (#7).
* Fix Dictionary#dup and #clone, which shared state with the original
(clone), or dropped the sort order and default (dup).
* Fix Dictionary#reject!, which returned a filtered copy instead of removing
entries.
* Fix Dictionary#shift on an empty Dictionary, and #shift and #pop with a
nil key.
* Fix Dictionary[hash] and #replace, which shared the given hash or order
instead of copying it.
* Fix Dictionary#insert with an existing key or an index past the end.
* Fix Dictionary#[]= with an index and a nil or false value.
* Fix Dictionary#delete removing 1.0 from the order along with 1.
* Fix Dictionary#== for a sorted Dictionary changed since it was read.
2.2.2 (2026-11-17)
This release fixes PathHash, which had been broken for years: reading any
key raised NameError. PathHash also has tests of its own now. LRUHash is
unchanged.
Changes:
* Fix PathHash. [], ==, expand, ordered! and index raised errors; size,
each, key?, values and to_a saw no entries; copies shared entries with the
original; a key also matched longer keys that started with it (a matched
ab); fetch ignored its block; and delete returned an empty PathHash
instead of nil for a missing key.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/ruby-hashery/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/ruby-hashery/PLIST
cvs rdiff -u -r1.7 -r1.8 pkgsrc/devel/ruby-hashery/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/ruby-hashery/Makefile
diff -u pkgsrc/devel/ruby-hashery/Makefile:1.6 pkgsrc/devel/ruby-hashery/Makefile:1.7
--- pkgsrc/devel/ruby-hashery/Makefile:1.6 Fri Feb 6 08:33:26 2026
+++ pkgsrc/devel/ruby-hashery/Makefile Thu Nov 19 15:41:41 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.6 2026/02/06 08:33:26 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2026/11/19 15:41:41 taca Exp $
-DISTNAME= hashery-2.1.2
+DISTNAME= hashery-2.2.2
CATEGORIES= devel
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
Index: pkgsrc/devel/ruby-hashery/PLIST
diff -u pkgsrc/devel/ruby-hashery/PLIST:1.4 pkgsrc/devel/ruby-hashery/PLIST:1.5
--- pkgsrc/devel/ruby-hashery/PLIST:1.4 Sun Oct 9 14:24:02 2016
+++ pkgsrc/devel/ruby-hashery/PLIST Thu Nov 19 15:41:41 2026
@@ -1,9 +1,7 @@
-@comment $NetBSD: PLIST,v 1.4 2016/10/09 14:24:02 taca Exp $
+@comment $NetBSD: PLIST,v 1.5 2026/11/19 15:41:41 taca Exp $
${GEM_HOME}/cache/${GEM_NAME}.gem
-${GEM_LIBDIR}/.index
${GEM_LIBDIR}/.yardopts
${GEM_LIBDIR}/HISTORY.md
-${GEM_LIBDIR}/Index.yml
${GEM_LIBDIR}/LICENSE.txt
${GEM_LIBDIR}/NOTICE.txt
${GEM_LIBDIR}/README.md
@@ -31,7 +29,6 @@ ${GEM_LIBDIR}/demo/10_association.rdoc
${GEM_LIBDIR}/demo/applique/ae.rb
${GEM_LIBDIR}/demo/applique/hashery.rb
${GEM_LIBDIR}/lib/hashery.rb
-${GEM_LIBDIR}/lib/hashery.yml
${GEM_LIBDIR}/lib/hashery/association.rb
${GEM_LIBDIR}/lib/hashery/casting_hash.rb
${GEM_LIBDIR}/lib/hashery/core_ext.rb
@@ -50,6 +47,7 @@ ${GEM_LIBDIR}/lib/hashery/property_hash.
${GEM_LIBDIR}/lib/hashery/query_hash.rb
${GEM_LIBDIR}/lib/hashery/stash.rb
${GEM_LIBDIR}/lib/hashery/static_hash.rb
+${GEM_LIBDIR}/lib/hashery/version.rb
${GEM_LIBDIR}/test/case_association.rb
${GEM_LIBDIR}/test/case_casting_hash.rb
${GEM_LIBDIR}/test/case_core_ext.rb
@@ -61,6 +59,7 @@ ${GEM_LIBDIR}/test/case_linked_list.rb
${GEM_LIBDIR}/test/case_lru_hash.rb
${GEM_LIBDIR}/test/case_open_cascade.rb
${GEM_LIBDIR}/test/case_open_hash.rb
+${GEM_LIBDIR}/test/case_path_hash.rb
${GEM_LIBDIR}/test/case_property_hash.rb
${GEM_LIBDIR}/test/case_query_hash.rb
${GEM_LIBDIR}/test/fixture/example.ini
Index: pkgsrc/devel/ruby-hashery/distinfo
diff -u pkgsrc/devel/ruby-hashery/distinfo:1.7 pkgsrc/devel/ruby-hashery/distinfo:1.8
--- pkgsrc/devel/ruby-hashery/distinfo:1.7 Tue Oct 26 10:19:33 2021
+++ pkgsrc/devel/ruby-hashery/distinfo Thu Nov 19 15:41:41 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.7 2021/10/26 10:19:33 nia Exp $
+$NetBSD: distinfo,v 1.8 2026/11/19 15:41:41 taca Exp $
-BLAKE2s (hashery-2.1.2.gem) = 3cdc3ae8cd41af771692d71a89cb15ac25c53da174afd929312670224782843e
-SHA512 (hashery-2.1.2.gem) = 953fb7024aeeff8720c14880f8cbf0ee03cc09624ba33152215439a2e252cea22167258e8e8c1cb023129a51cd95b2d9d33ca794a6b38560a8eb1e0fe44f290b
-Size (hashery-2.1.2.gem) = 43008 bytes
+BLAKE2s (hashery-2.2.2.gem) = 9a234fb075a34376a26d192cb73ac4b09048429cdcfbf053eb9ce81476b6f334
+SHA512 (hashery-2.2.2.gem) = d7ad6f7a385756b53ca2461473520ba1d9d11800d831cb5afb0746ebbdfac20b794602e0c01434520d0c50d395ee2725e1ab015d2356daace859d7bf563493f1
+Size (hashery-2.2.2.gem) = 48128 bytes
Home |
Main Index |
Thread Index |
Old Index