From 4c68eaf3a1e7022d4db4c845403397740308dcd9 Mon Sep 17 00:00:00 2001 From: Christian Kruse Date: Thu, 15 Feb 2024 14:47:16 +0100 Subject: [PATCH] specify nkf for Ruby >= 3.4 Ruby 3.4 no longer comes with nkf gem bundled, so specify it in gemspec. Fixes #66 --- cfpropertylist.gemspec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cfpropertylist.gemspec b/cfpropertylist.gemspec index 6c33d42..8eced0c 100644 --- a/cfpropertylist.gemspec +++ b/cfpropertylist.gemspec @@ -16,6 +16,11 @@ Gem::Specification.new do |s| if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.0.0') s.add_runtime_dependency("rexml") # no longer bundled with Ruby 3 end + + if Gem::Version::new(RUBY_VERSION) >= Gem::Version::new('3.4.0') + s.add_runtime_dependency("nkf") # will no longer bundled with Ruby >= 3.4 + end + s.add_development_dependency("libxml-ruby") s.add_development_dependency("minitest") s.add_development_dependency("nokogiri")