From 4d3795b6d1f16d1e803c7a86362048fff25a0138 Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Sat, 27 Jun 2026 16:53:32 +0800 Subject: [PATCH 1/2] fix: declare logger as runtime dependency Ruby 4.0 removed logger from default gems. The rdf gem (a runtime dependency of unitsdb via lib/unitsdb/commands/check_si/si_ttl_parser.rb) requires logger at load time but does not declare it as a dependency. Without this declaration, unitsdb fails on Ruby 4.0 with: LoadError: cannot load such file -- logger (from rdf-3.3.1/lib/rdf/util/logger.rb:2) Adding logger as an explicit runtime dependency makes unitsdb usable on Ruby 4.0 without behavior change on earlier versions. --- unitsdb.gemspec | 1 + 1 file changed, 1 insertion(+) diff --git a/unitsdb.gemspec b/unitsdb.gemspec index 32723fb..fbf61a6 100644 --- a/unitsdb.gemspec +++ b/unitsdb.gemspec @@ -34,6 +34,7 @@ Gem::Specification.new do |spec| spec.require_paths = ["lib"] spec.add_dependency "fuzzy_match" + spec.add_dependency "logger" spec.add_dependency "lutaml-model", "~> 0.8.0" spec.add_dependency "rdf", "~> 3.1" spec.add_dependency "rdf-turtle", "~> 3.1" From 620cbf3be5e538aa48dabf7f99196c2ddeeba41d Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Sat, 27 Jun 2026 16:59:50 +0800 Subject: [PATCH 2/2] fix: point Gemfile at lutaml-model main The fix/global-context-register-lookup-fallback branch was deleted upstream after merging, so bundle install on main fails with: Git error: ... Revision fix/global-context-register-lookup-fallback does not exist in the repository This change repoints the Gemfile at lutaml-model main so bundle install resolves again. --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 2e84117..28e5797 100644 --- a/Gemfile +++ b/Gemfile @@ -6,7 +6,7 @@ source "https://rubygems.org" gemspec gem "canon" -gem "lutaml-model", github: "lutaml/lutaml-model", branch: "fix/global-context-register-lookup-fallback" +gem "lutaml-model", github: "lutaml/lutaml-model", branch: "main" gem "nokogiri" gem "rake" gem "rspec"