From e35accc9a7608f49a06b6b660e188d6e3f4674b0 Mon Sep 17 00:00:00 2001 From: Christian Meier Date: Sat, 30 Nov 2024 19:01:06 +0100 Subject: [PATCH] Update classpath_spec.rb to remove color directives from output --- specs/classpath_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specs/classpath_spec.rb b/specs/classpath_spec.rb index 6f8bd29..8827785 100644 --- a/specs/classpath_spec.rb +++ b/specs/classpath_spec.rb @@ -13,7 +13,8 @@ def self.prepare!(array) org/jruby/yecht/yecht.jar ] result = array.collect do |a| - a.sub(/-native.jar$/, '.jar') + a.sub(/\.jar.*$/, '.jar') + .sub(/-native.jar$/, '.jar') .sub(/-[^-]+$/, '.jar') .sub(%r{[^/]+/([^/]+)$}, '\1') .sub(/^.*META-INF.jruby.home.lib.ruby.s....../, '')