Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswayoub committed Feb 20, 2016
2 parents dadb0fc + 452959d commit 169ce89
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions Vagrant Manager/Util.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,20 @@ + (NSString*)trimTrailingSlash:(NSString*)path {
}

+ (NSComparisonResult)compareVersion:(NSString*)version1 toVersion:(NSString*)version2 {
if(!version1 || !version2) {
//if either version is nil, don't upgrade
return NSOrderedDescending;
}

return [self compareVersion:version1 toVersion:version2 skipExpansion:NO];
}

+ (NSComparisonResult)compareVersion:(NSString*)version1 toVersion:(NSString*)version2 skipExpansion:(BOOL)skipExpansion {
if(!version1 || !version2) {
//if either version is nil, don't upgrade
return NSOrderedDescending;
}

NSMutableArray *version1parts = [[version1 componentsSeparatedByString:@"."] mutableCopy];
NSMutableArray *version2parts = [[version2 componentsSeparatedByString:@"."] mutableCopy];

Expand Down
4 changes: 2 additions & 2 deletions Vagrant Manager/Vagrant Manager-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.5.2</string>
<string>2.5.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>2.5.2</string>
<string>2.5.3</string>
<key>Configuration</key>
<string>${CONFIGURATION}</string>
<key>LSApplicationCategoryType</key>
Expand Down

0 comments on commit 169ce89

Please sign in to comment.