textmate / json.tmbundle

TextMate support for JSON
122 stars 26 forks source link

Use Native Ruby #20

Open Dakta opened 5 years ago

Dakta commented 5 years ago

ruby20 was an old Homebrew-installed version for getting Ruby 2 on old macOS (see https://stackoverflow.com/a/14138490). This fix simply uses system installed Ruby, which ensures macOS compatibility on supported versions since 10.9

For reference, this is one of many uses throughout the TM Bundle codebase, which guarantee that the affected Bundle Commands will not run on any version of vanilla macOS: https://github.com/search?q=org%3Atextmate+ruby20&type=Code

Before this change, attempting to run any affected Bundle Command results in an error: "Unable to Run Command: This command requires OS X 10.9 or higher." which appears to be caught by a compatibility check. Since TextMate now targets 10.9 or later, this compatibility check/error handler should be removed, but I am unable to locate in the codebase. See attached:

Screen Shot 2019-07-23 at 11 35 36 AM