diff --git a/lib/const.rb b/lib/const.rb index 6d6b962ba..837329c32 100644 --- a/lib/const.rb +++ b/lib/const.rb @@ -4,7 +4,7 @@ require 'etc' require 'open3' OLD_CREW_VERSION = defined?(CREW_VERSION) ? CREW_VERSION : '1.0' -CREW_VERSION = '1.68.4' unless defined?(CREW_VERSION) && CREW_VERSION == OLD_CREW_VERSION +CREW_VERSION = '1.68.5' unless defined?(CREW_VERSION) && CREW_VERSION == OLD_CREW_VERSION # Kernel architecture. KERN_ARCH = Etc.uname[:machine] diff --git a/lib/convenience_functions.rb b/lib/convenience_functions.rb index c729ea470..55b98c781 100644 --- a/lib/convenience_functions.rb +++ b/lib/convenience_functions.rb @@ -97,8 +97,8 @@ class ConvenienceFunctions s.gsub!("#{CREW_LIB_PREFIX}/", '') end return if libnames.empty? - dlname = libnames.grep(/.so./).first - libname = dlname.gsub(/.so.\d+/, '') + dlname = libnames.grep(/.so(.)?/).first + libname = dlname.gsub(/.so(.\d+)?/, '') longest_libname = libnames.max_by(&:length) libvars = longest_libname.rpartition('.so.')[2].split('.')