Skip to content

Commit 04fbf93

Browse files
committed
[ci skip] wip
1 parent 379e7c1 commit 04fbf93

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

rakelib/version.rake

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
class << (helper = Bundler::GemHelper.instance)
2+
PATH = "ext/io/console/console.c"
23
def update_gemspec
3-
path = gemspec.loaded_from
4-
File.open(path, "r+b") do |f|
4+
File.open(PATH, "r+b") do |f|
55
d = f.read
6-
if d.sub!(/^(_VERSION\s*=\s*)".*"/) {$1 + gemspec.version.to_s.dump}
6+
if d.sub!(/^(IO_CONSOLE_VERSION\s*=\s*)".*"/) {$1 + gemspec.version.to_s.dump}
77
f.rewind
88
f.truncate(0)
99
f.print(d)
@@ -12,8 +12,7 @@ class << (helper = Bundler::GemHelper.instance)
1212
end
1313

1414
def commit_bump
15-
sh(%W[git commit -m bump\ up\ to\ #{gemspec.version}
16-
#{gemspec.loaded_from}])
15+
sh(%W[git commit -m bump\ up\ to\ #{gemspec.version} #{PATH}])
1716
end
1817

1918
def version=(v)

0 commit comments

Comments
 (0)