Skip to content

Commit

Permalink
Use version sorting to determine latest tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmich committed Mar 19, 2021
1 parent fadd4ae commit 6150592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spicy-proton.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'spicy-proton'
s.version = (`git tag`.split("\n").last || '0.0.1').strip
s.version = `git tag`.split("\n").map { |v| Gem::Version.new(v) }.sort.last.to_s.strip
s.date = Time.now.strftime('%Y-%m-%d')
s.summary = 'Generate a random English adjective-noun word pair.'
s.description = <<-END
Expand Down

0 comments on commit 6150592

Please sign in to comment.