From d61eb0e9a62f5f66324fb561d86ff55fc28225e2 Mon Sep 17 00:00:00 2001 From: Neha Pansare Date: Fri, 9 Aug 2024 20:40:40 +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 ff4e74c3..8000b517 100644 --- a/knife-windows.gemspec +++ b/knife-windows.gemspec @@ -15,6 +15,7 @@ Gem::Specification.new do |s| s.required_ruby_version = ">= 3.1" s.add_dependency "chef", ">= 18.2" 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"