<div dir="ltr">Does Mojave still have Ruby 1.8 available?  I have bundle files referencing /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby but that directory does not exist.  I'm not sure how to proceed, since this does break some functionality.  </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Dec 15, 2018 at 12:29 AM Jacob Carlborg <<a href="mailto:doob@me.com">doob@me.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><div><blockquote type="cite"><div>On 15 Dec 2018, at 09:13, Allan Odgaard <<a href="mailto:mailinglist@textmate.org" target="_blank">mailinglist@textmate.org</a>> wrote:</div><div>




<div>
<div style="font-family:sans-serif"><div style="white-space:normal"><p dir="auto">The problem is that many bundle commands need ruby 1.8, so the bundle support code needs to remain compatible with 1.8 as well.</p><p dir="auto">This is support code has been written by a dozen different people over several years, I have no plans of rewriting it all to be compatible with both ruby 1.8 and 2.x, which in itself is not a fun excercise, not even sure we can make the plist extension compatible with both versions of ruby without switching to a version written entirely in ruby.</p></div></div></div></div></blockquote></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div>Understandable. I’ve been wanting to completely re-implement the support code with support for 2.0 now for a while. But I’ve never prioritized it.</div></div><div style="word-wrap:break-word;line-break:after-white-space"><div><br><blockquote type="cite"><div><div><div style="font-family:sans-serif"><div style="white-space:normal"><p dir="auto">My advice: If you want to use ruby 2.x for your custom commands, don’t use the support code.</p></div></div></div></div></blockquote></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div>Yeah, in fact, most of my commands are written in Ruby 2.0 but one of them is using Ruby 1.8 to be able to use the completion window.</div><div><br></div><div>In this case I see now that TextMate.detach is simple enough to copy to the bundle and remove the dependency on TextMate::UI.</div></div><div style="word-wrap:break-word;line-break:after-white-space"><div><br><blockquote type="cite"><div><div><div style="font-family:sans-serif"><div style="white-space:normal"><p dir="auto">In retrospect we probably shouldn’t have made a “shared support” directory, at least not without much much stricter discipline, as now we have a ton of legacy stuff that is pretty difficult to get rid of, because we have no idea about which third party bundles rely on it.</p></div></div></div></div></blockquote></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div></div><div>The support code, at least the Ruby code, could be implemented as a separate gem. Then it could be versioned like any other gem. I have a bundle [1] where the whole Support directory is organized as a Ruby gem. It uses Bundler and several gems as dependencies. The gems are bundled directly in the Support directory and included in the Git repository. This works out quite nicely.</div><div><br></div><div>[1] <a href="https://github.com/jacob-carlborg/GitLab.tmbundle/tree/master/Support" target="_blank">https://github.com/jacob-carlborg/GitLab.tmbundle/tree/master/Support</a></div></div><div style="word-wrap:break-word;line-break:after-white-space"><br><div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">-- <br>/Jacob Carlborg</div>

</div>
<br></div><br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a><br>
<a href="https://lists.macromates.com/listinfo/textmate" rel="noreferrer" target="_blank">https://lists.macromates.com/listinfo/textmate</a></blockquote></div>