From ffb1e30d6e04c947359012e39a6fb7dd2577d650 Mon Sep 17 00:00:00 2001 From: Vasundhara Jagdale Date: Mon, 23 Oct 2023 17:01:06 +0000 Subject: [PATCH] Thor recent release 1.3.0 has changes related to aliases(https://github.com/rails/thor/pull/800) which started breaking the test. Till we find if recent release is stable and don't break any functionality we are pinning thor to < 1.3.0 (#6818) Signed-off-by: Vasu1105 --- inspec-core.gemspec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inspec-core.gemspec b/inspec-core.gemspec index 6f582af72..23e884ddc 100644 --- a/inspec-core.gemspec +++ b/inspec-core.gemspec @@ -25,7 +25,9 @@ Gem::Specification.new do |spec| # Implementation dependencies spec.add_dependency "chef-telemetry", "~> 1.0", ">= 1.0.8" # 1.0.8+ removes the http dep spec.add_dependency "license-acceptance", ">= 0.2.13", "< 3.0" - spec.add_dependency "thor", ">= 0.20", "< 2.0" + # TODO: We should remove the thor pinning in next upcoming releases currently it's breaking our unit test in cli_args_test for aliases due to + # recent changes made in thor library REF: https://github.com/rails/thor/releases/tag/v1.3.0 & https://github.com/rails/thor/pull/800 + spec.add_dependency "thor", ">= 0.20", "< 1.3.0" spec.add_dependency "method_source", ">= 0.8", "< 2.0" spec.add_dependency "rubyzip", ">= 1.2.2", "< 3.0" spec.add_dependency "rspec", ">= 3.9", "<= 3.13"