Skip to content

Commit 9154f87

Browse files
committed
Select most recent tag to use as gem version.
1 parent f2f50c5 commit 9154f87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

freeagent-cli.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
1717
spec.email = git.call(:log, format: '%ae').uniq
1818

1919
version_tag = 'v?.*'
20-
nearest = git.call(:tag, '--list', version_tag).first
20+
nearest = git.call(:tag, '--list', version_tag, sort: 'version:refname').last
2121
spec.version = nearest[1..]
2222

2323
readme = File.read('README.txt').split("\n")

0 commit comments

Comments
 (0)