pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/ruby-tins



Module Name:    pkgsrc
Committed By:   taca
Date:           Sat Nov  7 14:25:42 UTC 2026

Modified Files:
        pkgsrc/devel/ruby-tins: Makefile PLIST distinfo

Log Message:
devel/ruby-tins: update to 1.62.0

1.62.0 (2026-11-06)

Features

* Added Tins::EnumJoined module providing #joined for human-friendly
  sentence-style joining of Enumerable objects.

* Added Tins::Duration#to_human for generating human-readable duration
  strings with configurable styles and connectors.

* Added Tins::Duration.parse_human class method to parse human-readable
  duration strings (inverse of #to_human).

* Added Tins::Duration.from_string class method to create a Duration
  instance from a parsed string.

* Tins::Duration.parse now accepts an Array of template strings, trying them
  in order until a match is found.

* Added Tins::Duration::HUMAN_CONNECTORS constant with :none, :spaces, and
  :prose presets.

* Added Tins::Duration::STYLE_DEFAULT_CONNECTOR constant mapping styles to
  default connector presets.

Fixes

* Tins::Duration.parse: Fixed a bug where a literal mismatch raised a
  RuntimeError instead of Tins::Duration::ParserError.

* Tins::Null: Fixed documentation example to correctly show user.name.to_s
  instead of user.name.

Improvements

* Tins::Duration: Refactored parsing logic to extract parse_template as a
  private method.

* Tins::Duration: Updated to_f documentation to clarify that it returns the
  magnitude (always non-negative) and that sign is tracked via negative?.

* Tins::Duration: Changed template: default in parse to nil to support
  multi-template detection.

* Tins::Duration: Extracted connector resolution logic into a private
  ConnectorResolver module.

Build & CI

* Bumped development dependency gem_hadar to require version 2.21.0 or
  later.

Testing

* Added tests for Tins::EnumJoined#joined covering empty, single, multiple
  elements, custom connectors, and type coercion.

* Added tests for Tins::Duration#to_human covering styles, connectors, max
  units, and negative durations.

* Added tests for Tins::Duration.parse_human covering roundtrips, custom
  connectors, and error cases.

* Added tests for Tins::Duration.from_string covering default and custom
  templates.

* Added tests for Tins::Duration.parse with template arrays, including order
  sensitivity and error handling.

* Added tests for Tins::Duration::ParserError inheritance and specific
  mismatch scenarios.

Documentation

* Tins::Attempt: Rewrote documentation using YARD tags and added examples
  for fixed sleep, exponential backoff, and return-value mode.

* Tins::EnumSqueeze: Added module-level documentation explaining
  squeeze/squeeze! semantics and usage examples.

* Tins::DslKit: Fixed documentation examples for Eigenclass, ClassMethod,
  ThreadGlobal, Delegate, Scope, DynamicScope, and Deflect to accurately
  reflect API usage.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 pkgsrc/devel/ruby-tins/Makefile
cvs rdiff -u -r1.25 -r1.26 pkgsrc/devel/ruby-tins/PLIST
cvs rdiff -u -r1.46 -r1.47 pkgsrc/devel/ruby-tins/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-tins/Makefile
diff -u pkgsrc/devel/ruby-tins/Makefile:1.43 pkgsrc/devel/ruby-tins/Makefile:1.44
--- pkgsrc/devel/ruby-tins/Makefile:1.43        Wed Nov  4 15:05:37 2026
+++ pkgsrc/devel/ruby-tins/Makefile     Sat Nov  7 14:25:42 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.43 2026/11/04 15:05:37 taca Exp $
+# $NetBSD: Makefile,v 1.44 2026/11/07 14:25:42 taca Exp $
 
-DISTNAME=      tins-1.61.0
+DISTNAME=      tins-1.62.0
 CATEGORIES=    devel
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost

Index: pkgsrc/devel/ruby-tins/PLIST
diff -u pkgsrc/devel/ruby-tins/PLIST:1.25 pkgsrc/devel/ruby-tins/PLIST:1.26
--- pkgsrc/devel/ruby-tins/PLIST:1.25   Wed Nov  4 15:05:37 2026
+++ pkgsrc/devel/ruby-tins/PLIST        Sat Nov  7 14:25:42 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.25 2026/11/04 15:05:37 taca Exp $
+@comment $NetBSD: PLIST,v 1.26 2026/11/07 14:25:42 taca Exp $
 ${GEM_HOME}/cache/${GEM_NAME}.gem
 ${GEM_LIBDIR}/.envrc
 ${GEM_LIBDIR}/CHANGES.md
@@ -51,6 +51,7 @@ ${GEM_LIBDIR}/lib/tins/deep_transform.rb
 ${GEM_LIBDIR}/lib/tins/deprecate.rb
 ${GEM_LIBDIR}/lib/tins/dslkit.rb
 ${GEM_LIBDIR}/lib/tins/duration.rb
+${GEM_LIBDIR}/lib/tins/enum_joined.rb
 ${GEM_LIBDIR}/lib/tins/enum_squeeze.rb
 ${GEM_LIBDIR}/lib/tins/expose.rb
 ${GEM_LIBDIR}/lib/tins/extract_last_argument_options.rb
@@ -114,6 +115,7 @@ ${GEM_LIBDIR}/lib/tins/xt/deep_dup.rb
 ${GEM_LIBDIR}/lib/tins/xt/deep_transform.rb
 ${GEM_LIBDIR}/lib/tins/xt/deprecate.rb
 ${GEM_LIBDIR}/lib/tins/xt/dslkit.rb
+${GEM_LIBDIR}/lib/tins/xt/enum_joined.rb
 ${GEM_LIBDIR}/lib/tins/xt/enum_squeeze.rb
 ${GEM_LIBDIR}/lib/tins/xt/expose.rb
 ${GEM_LIBDIR}/lib/tins/xt/extract_last_argument_options.rb
@@ -167,6 +169,7 @@ ${GEM_LIBDIR}/tests/deprecate_test.rb
 ${GEM_LIBDIR}/tests/dslkit_test.rb
 ${GEM_LIBDIR}/tests/duration_test.rb
 ${GEM_LIBDIR}/tests/dynamic_scope_test.rb
+${GEM_LIBDIR}/tests/enum_joined_test.rb
 ${GEM_LIBDIR}/tests/enum_squeeze_test.rb
 ${GEM_LIBDIR}/tests/expose_test.rb
 ${GEM_LIBDIR}/tests/extract_last_argument_options_test.rb

Index: pkgsrc/devel/ruby-tins/distinfo
diff -u pkgsrc/devel/ruby-tins/distinfo:1.46 pkgsrc/devel/ruby-tins/distinfo:1.47
--- pkgsrc/devel/ruby-tins/distinfo:1.46        Wed Nov  4 15:05:37 2026
+++ pkgsrc/devel/ruby-tins/distinfo     Sat Nov  7 14:25:42 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.46 2026/11/04 15:05:37 taca Exp $
+$NetBSD: distinfo,v 1.47 2026/11/07 14:25:42 taca Exp $
 
-BLAKE2s (tins-1.61.0.gem) = 45af6ed56e46fb15ab5c91955b566746a34d19cc5312647ee69330e8424ba8fa
-SHA512 (tins-1.61.0.gem) = ea4bb7034f8146547d719c35fdadc4c80b2fab1d679d68b33711d284245baf2d0cb21e6843552fc88dce05effb453c962ffeada1932581b0ea1315a74db9e43a
-Size (tins-1.61.0.gem) = 364544 bytes
+BLAKE2s (tins-1.62.0.gem) = 3c090fe95998e75ca1d9d8811059b54165bf3c0bb5b772dfc6ebae0e86f1681d
+SHA512 (tins-1.62.0.gem) = 47367a7262bd52a0e8e8b3e82cc26e94dbeada510b1d5702151564b315f09c6ebcf16eb882dfdd173a9270b4f79873aab4bc18b538823ef314cd064dee06d20d
+Size (tins-1.62.0.gem) = 372224 bytes



Home | Main Index | Thread Index | Old Index