Package: ruby-kramdown
Version: 1.4.2-1
Severity: important

Here's the error I got while trying to convert a kramdown document to HTML

sed -e 's/\[\[/\\[\\[/g' -e 's/\]\]/\\]\\]/g' ./spec.markdown | kramdown 
--parse-block-html --template='template.erb' > index.html
/usr/lib/ruby/vendor_ruby/kramdown/document.rb:56:in `data_dir': Use RbConfig 
instead of obsolete and deprecated Config.
/usr/lib/ruby/vendor_ruby/kramdown/document.rb:56:in `data_dir': Use RbConfig 
instead of obsolete and deprecated Config.
/usr/lib/ruby/vendor_ruby/kramdown/document.rb:57:in `data_dir': kramdown data 
directory not found! This is a bug, please report it! (RuntimeError)
        from /usr/lib/ruby/vendor_ruby/kramdown/converter/base.rb:134:in 
`get_template'
        from /usr/lib/ruby/vendor_ruby/kramdown/converter/base.rb:123:in 
`apply_template'
        from /usr/lib/ruby/vendor_ruby/kramdown/converter/base.rb:106:in 
`convert'
        from /usr/lib/ruby/vendor_ruby/kramdown/document.rb:120:in 
`method_missing'
        from /usr/bin/kramdown:61:in `block in <main>'
        from /usr/bin/kramdown:61:in `each'
        from /usr/bin/kramdown:61:in `<main>'

Steps to reproduce:

  $ mkdir test
  $ cd test/
  $ git clone https://github.com/w3c/webappsec.git
  Cloning into 'webappsec'...
  remote: Counting objects: 3738, done.
  remote: Total 3738 (delta 0), reused 0 (delta 0)
  Receiving objects: 100% (3738/3738), 3.18 MiB | 978.00 KiB/s, done.
  Resolving deltas: 100% (2183/2183), done.
  Checking connectivity... done.
  $ cd webappsec/specs/subresourceintegrity/
  $ make 

The above works fine with kramdown 1.5.0 if I install it with:

  sudo gem install kramdown

Francois

-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_CA.utf8, LC_CTYPE=fr_CA.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ruby-kramdown depends on:
ii  libjs-jquery                1.7.2+dfsg-3.2
ii  ruby                        1:2.1.0.4
ii  ruby-coderay                1.1.0-2
ii  ruby-prawn                  1.3.0+dfsg-1
ii  ruby-prawn-table            0.2.0-1
ii  ruby-stringex               2.5.2-2
ii  ruby2.1 [ruby-interpreter]  2.1.5-1

ruby-kramdown recommends no packages.

ruby-kramdown suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to