{"action":"opened","issue":{"url":"https://api.github.com/repos/asciidoctor/jekyll-asciidoc/issues/142","repository_url":"https://api.github.com/repos/asciidoctor/jekyll-asciidoc","labels_url":"https://api.github.com/repos/asciidoctor/jekyll-asciidoc/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/asciidoctor/jekyll-asciidoc/issues/142/comments","events_url":"https://api.github.com/repos/asciidoctor/jekyll-asciidoc/issues/142/events","html_url":"https://github.com/asciidoctor/jekyll-asciidoc/issues/142","id":194782094,"number":142,"title":"undefined method `nil_or_empty?' for String","user":{"login":"nfrankel","id":752258,"avatar_url":"https://avatars.githubusercontent.com/u/752258?v=3","gravatar_id":"","url":"https://api.github.com/users/nfrankel","html_url":"https://github.com/nfrankel","followers_url":"https://api.github.com/users/nfrankel/followers","following_url":"https://api.github.com/users/nfrankel/following{/other_user}","gists_url":"https://api.github.com/users/nfrankel/gists{/gist_id}","starred_url":"https://api.github.com/users/nfrankel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfrankel/subscriptions","organizations_url":"https://api.github.com/users/nfrankel/orgs","repos_url":"https://api.github.com/users/nfrankel/repos","events_url":"https://api.github.com/users/nfrankel/events{/privacy}","received_events_url":"https://api.github.com/users/nfrankel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-10T17:53:11Z","updated_at":"2016-12-10T17:53:11Z","closed_at":null,"body":"Hello,\r\n\r\nI'm trying to make Jekyll excerpts work, but I unfortunately come upon this trace:\r\n\r\n```\r\nConversion error: Jekyll::AsciiDoc::Converter encountered an error while converting '_posts/2012-03-11-html5-still-a-non-event.adoc':\r\n                    undefined method `nil_or_empty?' for #<String:0x007fa72f7dfdb0>\r\n  Liquid Exception: undefined method `nil_or_empty?' for #<String:0x007fa72f7dfdb0> in tag/html-5/index.html\r\n/Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-asciidoc-2.0.1/lib/jekyll-asciidoc/converter.rb:207:in `convert': undefined method `nil_or_empty?' for #<String:0x007fa72f7dfdb0> (NoMethodError)\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/renderer.rb:109:in `block in convert'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/renderer.rb:107:in `each'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/renderer.rb:107:in `reduce'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/renderer.rb:107:in `convert'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/renderer.rb:86:in `run'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/excerpt.rb:72:in `output'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/excerpt.rb:59:in `to_s'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/drops/document_drop.rb:22:in `excerpt'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/drops/drop.rb:52:in `public_send'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/drops/drop.rb:52:in `[]'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/context.rb:201:in `lookup_and_evaluate'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/variable_lookup.rb:48:in `block in evaluate'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/variable_lookup.rb:38:in `each_index'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/variable_lookup.rb:38:in `evaluate'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/context.rb:168:in `evaluate'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/context.rb:160:in `[]'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/condition.rb:101:in `interpret_condition'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/condition.rb:39:in `evaluate'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/tags/if.rb:38:in `block (2 levels) in render'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/tags/if.rb:37:in `each'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/tags/if.rb:37:in `block in render'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/context.rb:132:in `stack'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/tags/if.rb:36:in `render'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:151:in `render_token'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/profiler/hooks.rb:5:in `block in render_token_with_profiling'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/profiler.rb:80:in `profile_token_render'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/profiler/hooks.rb:4:in `render_token_with_profiling'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:135:in `block in render_all'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:122:in `each'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:122:in `render_all'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:108:in `render'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/template.rb:210:in `block in render'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/template.rb:262:in `with_profiling'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/template.rb:209:in `render'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/template.rb:222:in `render!'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/liquid_renderer/file.rb:28:in `block (2 levels) in render!'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/liquid_renderer/file.rb:40:in `measure_bytes'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/liquid_renderer/file.rb:27:in `block in render!'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/liquid_renderer/file.rb:47:in `measure_time'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/liquid_renderer/file.rb:26:in `render!'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/tags/include.rb:138:in `block in render'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/context.rb:132:in `stack'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/tags/include.rb:136:in `render'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:151:in `render_token'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/profiler/hooks.rb:5:in `block in render_token_with_profiling'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/profiler.rb:80:in `profile_token_render'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/profiler/hooks.rb:4:in `render_token_with_profiling'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:135:in `block in render_all'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:122:in `each'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:122:in `render_all'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/tags/for.rb:113:in `block (2 levels) in render'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/tags/for.rb:100:in `each'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/tags/for.rb:100:in `each_with_index'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/tags/for.rb:100:in `block in render'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/context.rb:132:in `stack'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/tags/for.rb:99:in `render'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:151:in `render_token'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/profiler/hooks.rb:5:in `block in render_token_with_profiling'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/profiler.rb:80:in `profile_token_render'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/profiler/hooks.rb:4:in `render_token_with_profiling'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:135:in `block in render_all'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:122:in `each'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:122:in `render_all'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/block.rb:108:in `render'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/template.rb:210:in `block in render'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/template.rb:262:in `with_profiling'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/template.rb:209:in `render'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/liquid-3.0.6/lib/liquid/template.rb:222:in `render!'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/liquid_renderer/file.rb:28:in `block (2 levels) in render!'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/liquid_renderer/file.rb:40:in `measure_bytes'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/liquid_renderer/file.rb:27:in `block in render!'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/liquid_renderer/file.rb:47:in `measure_time'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/liquid_renderer/file.rb:26:in `render!'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/renderer.rb:134:in `render_liquid'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/renderer.rb:82:in `run'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/convertible.rb:211:in `do_layout'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/page.rb:135:in `render'\r\n\tfrom /Users/i303869/projects/private/nfrankel.gitlab.io/_plugins/tags.rb:43:in `write_tag_index'\r\n\tfrom /Users/i303869/projects/private/nfrankel.gitlab.io/_plugins/tags.rb:36:in `block in generate'\r\n\tfrom /Users/i303869/projects/private/nfrankel.gitlab.io/_plugins/tags.rb:35:in `each'\r\n\tfrom /Users/i303869/projects/private/nfrankel.gitlab.io/_plugins/tags.rb:35:in `generate'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/site.rb:174:in `block in generate'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/site.rb:172:in `each'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/site.rb:172:in `generate'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/site.rb:68:in `process'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/command.rb:26:in `process_site'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/commands/build.rb:63:in `build'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/commands/build.rb:34:in `process'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/lib/jekyll/commands/serve.rb:37:in `block (2 levels) in init_with_program'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `call'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'\r\n\tfrom /Users/i303869/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.3.1/exe/jekyll:13:in `<top (required)>'\r\n\tfrom /usr/local/bin/jekyll:22:in `load'\r\n\tfrom /usr/local/bin/jekyll:22:in `<main>'\r\n```\r\n\r\nI'm using:\r\n\r\n* Ruby 2.2.3\r\n* Jekyll 3.3.1\r\n* jekyll-asciidoctor plugin 2.0.1\r\n\r\nInterestingly enough, it works if:\r\n\r\n* Either I remove *.adoc files\r\n* Or don't try to write excerpts\r\n\r\nHints welcome, many thanks. "}}
{"actor":{"display_login":"nfrankel"}}