@@ -10,6 +10,7 @@ -(void) installRubiesBundled;
1010-(void ) installGemsBundled ;
1111-(void ) installBinariesBundled ;
1212-(void ) applyRubyConfigPatches ;
13+ -(void ) guaranteeRubySymlinkToCurrent ;
1314@end
1415
1516@implementation TKDEnsureAppSupportUpdated
@@ -39,6 +40,8 @@ -(void) execute {
3940 [self installBinariesBundled ];
4041 [self applyRubyConfigPatches ];
4142
43+ [self guaranteeRubySymlinkToCurrent ];
44+
4245 [_view finished_ensuring_app_support_is_updated ];
4346}
4447
@@ -65,12 +68,19 @@ -(void) installRubiesBundled {
6568 [_view finished_ruby_installations ];
6669}
6770
71+ -(void ) guaranteeRubySymlinkToCurrent {
72+ TKDRubyBinary *binary = [[TKDRubyBinary alloc ] initWithName: [[self configuration ] rubyVersion ]];
73+ TKDInstallRuby *current = [[TKDInstallRuby alloc ] initWithRubyBinary: binary withView: _view];
74+
75+ [current symlink ];
76+ }
77+
6878-(void ) installGemsBundled {
69- NSString *gemsInstalledDirectoryPath = [[self configuration ] gemsInstalledDirectoryPath ];
79+ NSString *gemsGlobalInstalledDirectoryPath = [[self configuration ] gemsGlobalInstalledDirectoryPath ];
7080 NSString *bundledGemsZipfile = [[self configuration ] bundledGemsFile ];
7181
7282 [_view checking_gems_installation ];
73- [self .fileManager createDirectoryAtPathIfNonExistant: gemsInstalledDirectoryPath ];
83+ [self .fileManager createDirectoryAtPathIfNonExistant: gemsGlobalInstalledDirectoryPath ];
7484 [_view unzipping_gems_bundled ];
7585 [self .fileManager unzipFileAtPath: bundledGemsZipfile
7686 inDirectoryPath: [[self configuration ] tokaidoLocalHomeDirectoryPath ]];
0 commit comments