This repository has been archived by the owner on Nov 12, 2017. It is now read-only.
Specify Ruby version for scripts using Ruby 1.8 #20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This pull request makes the bundle compatible with Texmate 2 running on newer versions of macOS, where the default Ruby version is 2.x, i.e. every version starting from Mavericks.
Details
Commands used by the bundle rely on Ruby 1.8.x. This Ruby version is not bundled with newer versions of macOS. Texmate 2 provides this older Ruby version for compatibility with older bundles. However, the bundles may need to opt in by specifying
ruby18
in the shebang line.This bundle was showing the error:
ruby: warning: -K is specified; it is for 1.8 compatibility and may cause odd behavior
.This pull requests enforces the use of Ruby 1.8 and makes all commands work again.