Skip to content

Commit

Permalink
Update release script to correctly order tags by semver
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Anema committed Mar 10, 2017
1 parent 3ea5dc3 commit e409277
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ ruby '2.3.1'
gem 'dotenv'
gem 'fog-aws'
gem 'git'
gem 'semverly'
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ GEM
net-ssh (2.9.2)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
semverly (1.0.0)

PLATFORMS
ruby
Expand All @@ -41,6 +42,7 @@ DEPENDENCIES
dotenv
fog-aws
git
semverly

RUBY VERSION
ruby 2.2.3p172
Expand Down
3 changes: 2 additions & 1 deletion scripts/release
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ require 'dotenv'
require 'json'
require 'digest'
require 'git'
require 'semverly'

Dotenv.load

Expand Down Expand Up @@ -61,7 +62,7 @@ class Repository

private
def latest_tag
@git.tags.last
@git.tags.sort { |a, b| SemVer.parse(a.name) <=> SemVer.parse(b.name)}.last
end

def ensure_head_is_at_latest_version
Expand Down

0 comments on commit e409277

Please sign in to comment.