From 0a41dcd905a3745ea57a286cdd9d0a10f90cdc30 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 20 Feb 2026 12:58:25 +0900 Subject: [PATCH] Fix the source file name that contains the version --- rakelib/version.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rakelib/version.rake b/rakelib/version.rake index cbb5bb0..40ee173 100644 --- a/rakelib/version.rake +++ b/rakelib/version.rake @@ -1,10 +1,10 @@ class << (helper = Bundler::GemHelper.instance) - SOURCE_PATH = "ext/stringio/stringio.c" + SOURCE_PATH = "ext/win32ole/win32ole.c" def update_source_version path = SOURCE_PATH File.open(path, "r+b") do |f| d = f.read - if d.sub!(/^#define\s+STRINGIO_VERSION\s+\K".*"/) {version.to_s.dump} + if d.sub!(/^#define\s+WIN32OLE_VERSION\s+\K".*"/) {version.to_s.dump} f.rewind f.truncate(0) f.print(d)