aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ext/stringio/stringio.gemspec2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/stringio/stringio.gemspec b/ext/stringio/stringio.gemspec
index 75fe8b9d76..96beb3674a 100644
--- a/ext/stringio/stringio.gemspec
+++ b/ext/stringio/stringio.gemspec
@@ -5,7 +5,7 @@ source_version = ["", "ext/stringio/"].find do |dir|
begin
break File.open(File.join(__dir__, "#{dir}stringio.c")) {|f|
f.gets("\n#define STRINGIO_VERSION ")
- f.gets[/\s*(".+")/, 1].undump
+ f.gets[/\s*"(.+)"/, 1]
}
rescue Errno::ENOENT
end