./www/ruby-pygments.rb, Pygments wrapper for ruby

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: pkgsrc-2017Q1, Version: 1.1.1, Package name: ruby23-pygments.rb-1.1.1, Maintainer: pkgsrc-users

# pygments.rb

A Ruby wrapper for the Python [pygments syntax
highlighter](http://pygments.org/).

pygments.rb works by talking over a simple pipe to a long-lived Python child
process. This library replaces
[github/albino](https://github.com/github/albino), as well as a version of
pygments.rb that used an embedded Python interpreter.

Each Ruby process that runs has its own 'personal Python'; for example, 4
Unicorn workers will have one Python process each. If a Python process dies,
a new one will be spawned on the next pygments.rb request.


Required to run:
[lang/ruby23-base] [lang/python27] [textproc/ruby-multi_json]

Master sites:

SHA1: 09984d5d67f0198274386c499f4b6ca9205d0f70
RMD160: 1190df222afef214cd49f706c4d158f8ce7b2e31
Filesize: 1142.5 KB

Version history: (Expand)