Package: ruby-pygments.rb / 1.2.0-4

Metadata

Package Version Patches format
ruby-pygments.rb 1.2.0-4 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 Remove gemspec git ls files.patch | (download)

pygments.rb.gemspec | 8 6 + 2 - 0 !
1 file changed, 6 insertions(+), 2 deletions(-)

 remove-gemspec-git-ls-files


0002 Don t set PYGMENTS_PATH and remove sys.path appends.patch | (download)

lib/pygments/mentos.py | 15 8 + 7 - 0 !
lib/pygments/popen.rb | 5 3 + 2 - 0 !
2 files changed, 11 insertions(+), 9 deletions(-)

 don-t-set-pygments_path-and-remove-sys.path-appends


0003 Conditional use of lexers file path.patch | (download)

lib/pygments/popen.rb | 5 4 + 1 - 0 !
1 file changed, 4 insertions(+), 1 deletion(-)

 conditional-use-of-lexers-file-path


0004 Remove unshipped custom lexers.patch | (download)

lib/pygments/popen.rb | 10 5 + 5 - 0 !
1 file changed, 5 insertions(+), 5 deletions(-)

 remove unshipped custom lexers


0005 Use proper python shebang.patch | (download)

lib/pygments/mentos.py | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 use proper python shebang


0006 Invoke mentos directly on GNU Linux.patch | (download)

lib/pygments/popen.rb | 3 2 + 1 - 0 !
1 file changed, 2 insertions(+), 1 deletion(-)

 invoke mentos directly on gnu/linux

Invoking the script on GNU/Linux by passing it as an argument to
python(2) makes the process use 100% CPU for about tens of seconds when
it is supposed to timeout (test_returns_nil_on_timeout reproduces this).

On current Debian Sid python2 exists, so this can be used in mentos.py
shebang.

Brought back script invocation for windows.

This is forwarded upstream https://github.com/tmm1/pygments.rb/pull/119

0007 no relative path for require in tests.patch | (download)

test/test_pygments.rb | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 no relative path for require in tests

Let the interpreter find the library with loadpath in tests
So that the tests can be run with the installed package (autpkgtest)
0008 Set reasonable upper limit to RLIMIT_NOFILE.patch | (download)

lib/pygments/mentos.py | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 set reasonable upper limit to rlimit_nofile

When RLIMIT_NOFILE is too high, the number of files to close
can be too important and the process of closing could take more time
than the timeout set (default to 8s).

This causes asciidoctor to crash on some architectures

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876768

0009 Remove rubygem for ruby2.5.patch | (download)

Rakefile | 1 0 + 1 - 0 !
1 file changed, 1 deletion(-)

 remove rubygem for ruby2.5
0010 Disable the test expecting a timeout.patch | (download)

test/test_pygments.rb | 6 0 + 6 - 0 !
1 file changed, 6 deletions(-)

 disable the test expecting a timeout