./www/ruby-pygments.rb, Ruby wrapper for Pygments syntax highlighter

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


Branch: CURRENT, Version: 2.2.0, Package name: ruby27-pygments.rb-2.2.0, 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/python27] [textproc/ruby-multi_json] [lang/ruby24-base]

Required to build:
[pkgtools/cwrappers]

Master sites:

RMD160: 2da93e2710d0c6ea0cc714a5968fcc489b4ea2cc
Filesize: 864.5 KB

Version history: (Expand)


CVS history: (Expand)


   2021-10-07 17:09:00 by Nia Alarie | Files touched by this commit (1033)
Log message:
www: Remove SHA1 hashes for distfiles
   2021-09-19 20:52:44 by David H. Gutteridge | Files touched by this commit (1) | Package updated
Log message:
 ruby-pygments.rb: update some metadata (NFC)

 Update description and home page, per request from the current
 upstream developer of this package. Addresses a PR submitted as
 https://github.com/NetBSD/pkgsrc/pull/88. While here, address a
 pkglint warning that it's associated with the wrong category.
   2021-03-21 14:12:10 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
www/ruby-pygments.rb: update to 2.2.0

2.2.0 (2021-03-18)

* Add support for custom lexers (#187)
* Update Pygments to 2.8.1
   2021-03-07 14:48:27 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
www/ruby-pygments.rb: update to 2.1.0

2.1.0 (2021-02-14)

* Update Pygments to 2.8.0
   2021-01-16 14:08:40 by Takahiro Kambe | Files touched by this commit (5) | Package updated
Log message:
www/ruby-pygments.rb: update to 2.0.0

pkgsrc change: remove python27 restriction.

2.0.0 (2021-01-08) - @slonopotamus

* stop sending/receiving ids between Ruby and Python
* use close_others Ruby mechanism to prevent file descriptor leaking to
  Python

2.0.0.rc3 (2021-01-08) - @slonopotamus

* fix watchdog race condition leading to ThreadError(<killed thread>) on
  JRuby (#215)

2.0.0.rc2 (2021-01-07) - @slonopotamus

* Fix release workflow

2.0.0.rc1 (2021-01-07) - @slonopotamus

* Modify mentos.py to run on Python 3.x instead of Python 2.7
* Add :timeout parameter to allow for configurable timeouts
* Add several Python 3.x versions to test matrix
* Drop dependency on MultiJson
* Fix hanging on JRuby + Windows
* Update Pygments to 2.7.3
* Drop GitHub custom lexers
* Rework timeout handling
* Improve error message when Python is not found
* Breaking change Pygments.rb no longer sets default timeout for its
  operations
* Breaking change Now pygments.rb raises MentosError instead of returning
  nil on timeout
   2020-12-04 21:45:51 by Nia Alarie | Files touched by this commit (456)
Log message:
Revbump packages with a runtime Python dep but no version prefix.

For the Python 3.8 default switch.
   2019-11-04 23:10:16 by Roland Illig | Files touched by this commit (243)
Log message:
www: align variable assignments

pkglint -Wall -F --only aligned --only indent -r

Manually excluded phraseanet since pkglint got the indentation wrong.
   2019-09-02 15:20:22 by Adam Ciarcinski | Files touched by this commit (415)
Log message:
Changed PYTHON_VERSIONS_INCOMPATIBLE to PYTHON_VERSIONS_ACCEPTED; needed for \ 
future Python 3.8