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

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


Branch: pkgsrc-2014Q2, Version: 0.5.2nb1, Package name: ruby200-pygments.rb-0.5.2nb1, 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:
[textproc/ruby-yajl] [devel/ruby-posix-spawn] [lang/python27] [lang/ruby200-base]

Master sites: (Expand)

SHA1: 8354290a48bf7667f9a222c0cc680deddcaa9f5b
RMD160: fb894befe95ec3430116524f9ac6bdb7cd6d656f
Filesize: 1458.5 KB

Version history: (Expand)