Skip to content

Commit

Permalink
Merge pull request #61 from Slivo-fr/release/v2.2.4
Browse files Browse the repository at this point in the history
Release/v2.2.4
  • Loading branch information
Slivo-fr authored Sep 12, 2022
2 parents 2a3cc18 + ff0d180 commit 07cc545
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
6 changes: 3 additions & 3 deletions TranqRotate.toc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Interface: 11401
## Title: TranqRotate |cff00aa002.2.3|r
## Interface: 11403
## Title: TranqRotate |cff00aa002.2.4|r
## Notes: A tranqshot rotation assistant
## Author: Slivo
## Version: 2.2.3
## Version: 2.2.4
## SavedVariables: TranqRotateDb
## OptionalDeps: Ace3

Expand Down
6 changes: 3 additions & 3 deletions TranqRotate_TBC.toc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Interface: 20502
## Title: TranqRotate |cff00aa002.2.3|r
## Interface: 20504
## Title: TranqRotate |cff00aa002.2.4|r
## Notes: A tranqshot rotation assistant
## Author: Slivo
## Version: 2.2.3
## Version: 2.2.4
## SavedVariables: TranqRotateDb
## OptionalDeps: Ace3

Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## TranqRotate Changelog

#### v2.2.4

- Minor fix regarding version checks
- Bump toc for 1.14.3 & 2.5.4

#### v2.2.3

- Incapacitated backup alert should now work properly
Expand Down
6 changes: 4 additions & 2 deletions src/tranqRotate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -313,16 +313,18 @@ end
-- @return major, minor, fix, isStable
function TranqRotate:parseVersionString(versionString)

local version, type = strsplit("-", versionString)
local version, versionType = strsplit("-", versionString)
local major, minor, fix = strsplit( ".", version)

return tonumber(major), tonumber(minor), tonumber(fix), type == nil
return tonumber(major), tonumber(minor), tonumber(fix), versionType == nil
end

-- Check if the given version would require updating
-- @return requireUpdate, breakingUpdate
function TranqRotate:isUpdateRequired(versionString)

if (nil == versionString) then return false, false end

local remoteMajor, remoteMinor, remoteFix, isRemoteStable = self:parseVersionString(versionString)
local localMajor, localMinor, localFix, isLocalStable = self:parseVersionString(TranqRotate.version)

Expand Down

0 comments on commit 07cc545

Please sign in to comment.