<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div><div class=""><div class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class="">Default is "ruby 2.3.7p456"</span></font></div></div><blockquote type="cite" class=""><div class=""><div class=""><br class="">Today's Topics:<br class=""><br class="">   1.  Re: Bundle support plist broken on Mojave (Philippe Huibonhoa)<br class=""><br class="">----------------------------------------------------------------------<br class=""><br class="">Message: 1<br class="">Date: Wed, 30 Jan 2019 20:54:44 -0800<br class="">From: Philippe Huibonhoa <<a href="mailto:phuibonhoa@gmail.com" class="">phuibonhoa@gmail.com</a>><br class="">To: TextMate users <<a href="mailto:textmate@lists.macromates.com" class="">textmate@lists.macromates.com</a>><br class="">Subject: [TxMt] Re: Bundle support plist broken on Mojave<br class="">Message-ID:<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span><<a href="mailto:CABF6MVzbki=T+-DZ18Sg1AmJA+K2Jw7=WoYHDG+buNo+H9jHOg@mail.gmail.com" class="">CABF6MVzbki=T+-DZ18Sg1AmJA+K2Jw7=WoYHDG+buNo+H9jHOg@mail.gmail.com</a>><br class="">Content-Type: text/plain; charset="utf-8"<br class=""><br class="">Does Mojave still have Ruby 1.8 available?  I have bundle files<br class="">referencing /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby<br class="">but that directory does not exist.  I'm not sure how to proceed, since this<br class="">does break some functionality.<br class=""><br class="">On Sat, Dec 15, 2018 at 12:29 AM Jacob Carlborg <<a href="mailto:doob@me.com" class="">doob@me.com</a>> wrote:<br class=""><br class=""><blockquote type="cite" class="">On 15 Dec 2018, at 09:13, Allan Odgaard <<a href="mailto:mailinglist@textmate.org" class="">mailinglist@textmate.org</a>> wrote:<br class=""><br class="">The problem is that many bundle commands need ruby 1.8, so the bundle<br class="">support code needs to remain compatible with 1.8 as well.<br class=""><br class="">This is support code has been written by a dozen different people over<br class="">several years, I have no plans of rewriting it all to be compatible with<br class="">both ruby 1.8 and 2.x, which in itself is not a fun excercise, not even<br class="">sure we can make the plist extension compatible with both versions of ruby<br class="">without switching to a version written entirely in ruby.<br class=""><br class="">Understandable. I?ve been wanting to completely re-implement the support<br class="">code with support for 2.0 now for a while. But I?ve never prioritized it.<br class=""><br class="">My advice: If you want to use ruby 2.x for your custom commands, don?t use<br class="">the support code.<br class=""><br class="">Yeah, in fact, most of my commands are written in Ruby 2.0 but one of them<br class="">is using Ruby 1.8 to be able to use the completion window.<br class=""><br class="">In this case I see now that TextMate.detach is simple enough to copy to<br class="">the bundle and remove the dependency on TextMate::UI.<br class=""><br class="">In retrospect we probably shouldn?t have made a ?shared support?<br class="">directory, at least not without much much stricter discipline, as now we<br class="">have a ton of legacy stuff that is pretty difficult to get rid of, because<br class="">we have no idea about which third party bundles rely on it.<br class=""><br class="">The support code, at least the Ruby code, could be implemented as a<br class="">separate gem. Then it could be versioned like any other gem. I have a<br class="">bundle [1] where the whole Support directory is organized as a Ruby gem. It<br class="">uses Bundler and several gems as dependencies. The gems are bundled<br class="">directly in the Support directory and included in the Git repository. This<br class="">works out quite nicely.<br class=""><br class="">[1] <a href="https://github.com/jacob-carlborg/GitLab.tmbundle/tree/master/Support" class="">https://github.com/jacob-carlborg/GitLab.tmbundle/tree/master/Support</a><br class=""><br class="">--<br class="">/Jacob Carlborg<br class=""><br class=""></blockquote></div></div></blockquote></div><br class=""></body></html>