lib/ffi-icu/lib.rb in ffi-icu-0.1.9 vs lib/ffi-icu/lib.rb in ffi-icu-0.1.10

- old
+ new

@@ -97,10 +97,10 @@ # So we need to figure out which one it is. # Here are the possible suffixes suffixes = [""] if version - suffixes << "_#{version}" << "_#{version[0].chr}_#{version[1].chr}" + suffixes << "_#{version}" << "_#{version[0].chr}_#{version[1].chr}" << "_#{version.split('.')[0]}" end # Try to find the u_errorName function using the possible suffixes suffixes.find do |suffix| function_name = "u_errorName#{suffix}"