Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rakelib/version.rake
Original file line number Diff line number Diff line change
@@ -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)
Expand Down