Skip to content

Commit

Permalink
rake: Automatically set version (groonga#2219)
Browse files Browse the repository at this point in the history
We can get the next version with `String#succ`.

```
irb(main):001:0> "15.0.0".succ
=> "15.0.1"
irb(main):002:0> "15.0.9".succ
=> "15.1.0"
```

It is no longer necessary to specify in `NEW_VERSION`.
  • Loading branch information
abetomo authored Feb 12, 2025
1 parent 593e184 commit bcde904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ namespace :dev do
namespace :version do
desc "Bump version for new development"
task :bump do
File.write("base_version", env_var("NEW_VERSION"))
File.write("base_version", env_var("NEW_VERSION", version.succ))
end
end

Expand Down

0 comments on commit bcde904

Please sign in to comment.