Closed mojavelinux closed 7 years ago
Please note of the following facts:
I recognize that Rouge is now the preferred gem over pygments.rb. However, there are still integrations which rely on this gem that haven't had a chance to make the switch. Support for JRuby would really help in this transition period.
This gem depends on the very POSIX process model. If you want to execute pygments for JRuby, it should be better that you call pygmentize(1)
command directly.
Or, consider https://github.com/jneen/rouge, which is written in pure Ruby.
Seriously?!? Come on. This fix is critical for compatibility across Ruby platforms (esp during the transition to Rouge, which can't happen overnight). I spent a lot of time to figure this solution out and I think it is very reasonable. Can you please respect that effort and not close the door on JRuby? I urge you to reconsider.
Hmm, okay, will try to get compatibility with JRuby and keep it as much as possible.
However, dynamic dependencies in gemspec are useless. Can you fix some points?
open4
Thank you. I'd be glad to update the patch. Stay tuned.
The idea of this PR is included in #170. Thanks to the suggestion.
When RUBY_ENGINE == 'jruby', do the following:
Additionally, add rake and test-unit as development dependencies so rake and tests can be run via Bundler, respectively.