From 9de47cda762165b2245f31cf8f1965f1e1b472ed Mon Sep 17 00:00:00 2001 From: Neha Pansare Date: Fri, 9 Aug 2024 20:11:19 +0530 Subject: [PATCH] Add dependency to pin rexml at <= 3.3.1 as latest versions throw execption when parsing invalid xml. Without the ping latest gem gets pulled in. Signed-off-by: Neha Pansare --- knife-windows.gemspec | 1 + 1 file changed, 1 insertion(+) diff --git a/knife-windows.gemspec b/knife-windows.gemspec index 6312d398..26092a7c 100644 --- a/knife-windows.gemspec +++ b/knife-windows.gemspec @@ -15,6 +15,7 @@ Gem::Specification.new do |s| s.required_ruby_version = ">= 2.7", "< 3.1" s.add_dependency "chef", "~> 17.10" s.add_dependency "winrm", "~> 2.1" + s.add_dependency "rexml", "<= 3.3.1" # A non xml string parsing will throw an error 3.3.2 onward. https://github.com/ruby/rexml/issues/180 s.add_dependency "winrm-elevated", "~> 1.0" s.add_development_dependency "pry"