adaoraul/rack-jekyll

compatibility with Jekyll 2.0

jnozsc opened this issue · 14 comments

Jekyll 2.0 has been released, any update for rack-jekyll?

Thanks

Hi there, I'm also interested in the update for Jekyll 2.0.

@majioa Thanks!
@adaoraul maybe a new (pre) version gem could be released? just suggest

@majioa Thank you very much!

use this git repo as source to install rack-jekyll, the following is the error message

2014-07-26T18:48:06.096753+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `read_directories'
2014-07-26T18:48:06.096564+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `each'
2014-07-26T18:48:06.096621+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `each'
2014-07-26T18:48:06.096715+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:144:in `block in read_directories'
2014-07-26T18:48:06.096696+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `read_directories'
2014-07-26T18:48:06.096600+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:144:in `block in read_directories'
2014-07-26T18:48:06.096772+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:144:in `block in read_directories'
2014-07-26T18:48:06.096734+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `each'
2014-07-26T18:48:06.096810+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `read_directories'
2014-07-26T18:48:06.096829+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:144:in `block in read_directories'
2014-07-26T18:48:06.096791+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `each'
2014-07-26T18:48:06.096867+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `read_directories'
2014-07-
26T18:48:06.096886+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:119:in `read'
2014-07-26T18:48:06.096905+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:41:in `process'
2014-07-26T18:48:06.096848+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `each'
2014-07-26T18:48:06.096924+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/bundler/gems/rack-jekyll-f5064cd72dae/lib/rack/jekyll.rb:29:in `initialize'
2014-07-26T18:48:06.096943+00:00 app[web.1]:    from /app/config.ru:3:in `new'
2014-07-26T18:48:06.096962+00:00 app[web.1]:    from /app/config.ru:3:in `block in <main>'
2014-07-26T18:48:06.096982+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
2014-07-26T18:48:06.097020+00:00 app[web.1]:    from /app/config.ru:in `new'
2014-07-26T18:48:06.097001+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
2014-07-26T18:48:06.097039+00:00 app[web.1]:    from /app/config.ru:in `<main>'
2014-07-26T18:48:06.097058+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
2014-07-26T18:48:06.097077+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
2014-07-26T18:48:06.097096+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
2014-07-26T18:48:06.097116+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
2014-07-26T18:48:06.097135+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
2014-07-26T18:48:06.097154+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
2014-07-26T18:48:06.097174+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/server.rb:250:in `start'
2014-07-26T18:48:06.097193+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/server.rb:141:in `start'
2014-07-26T18:48:06.097231+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/bin/rackup:23:in `load'
2014-07-26T18:48:06.097212+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/bin/rackup:4:in `<top (required)>'
2014-07-26T18:48:06.097250+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/bin/rackup:23:in `<main>'
2014-07-26T18:48:06.114385+00:00 app[web.1]: Configuration file: /app/_config.yml
2014-07-26T18:48:04.426443+00:00 heroku[web.1]: Process exited with status 143
2014-07-26T18:48:02.285922+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2014-07-26T18:48:07.540225+00:00 heroku[web.1]: Process exited with status 1
2014-07-26T18:48:02.961861+00:00 heroku[web.1]: Starting process with command `bundle exec rackup config.ru -p 26709`
2014-07-26T18:48:07.552566+00:00 heroku[web.1]: State changed from starting to crashed
2014-07-26T18:48:07.552686+00:00 heroku[web.1]: State changed from crashed to starting
2014-07-26T18:48:10.161417+00:00 heroku[web.1]: Starting process with command `bundle exec rackup config.ru -p 11664`
2014-07-26T18:48:12.434226+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:187:in `read_content'
2014-07-26T18:48:12.434235+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:144:in `block in read_directories'
2014-07-26T18:48:12.434246+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `each'
2014-07-26T18:48:12.434255+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `each'
2014-07-26T18:48:12.434261+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:144:in `block in read_directories'
2014-07-26T18:48:12.434174+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:188:in `new'
2014-07-26T18:48:12.429994+00:00 app
[web.1]: Error reading file /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/test/fixtures/broken_front_matter2.erb: (<unknown>): did not find expected node content while parsing a flow node at line 3 column 1
2014-07-26T18:48:12.430124+00:00 app[web.1]: Error reading file /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/test/fixtures/broken_front_matter3.erb: invalid byte sequence in UTF-8
2014-07-26T18:48:12.434237+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `each'
2014-07-26T18:48:12.434181+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:187:in `map'
2014-07-26T18:48:12.434232+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:135:in `read_directories'
2014-07-26T18:48:12.434242+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:144:in `block in read_directories'
2014-07-26T18:48:12.434258+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `read_directories'
2014-07-26T18:48:12.434170+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/post.rb:56:in `initialize'
2014-07-26T18:48:12.434177+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:188:in `block in read_content'
2014-07-26T18:48:12.434251+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:144:in `block in read_directories'
2014-07-26T18:48:12.434158+00:00 app[web.1]: /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/post.rb:169:in `rescue in process': Post '/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/site_template/0000-00-00-welcome-to-jekyll.markdown.erb' does not have a valid date. (Jekyll::FatalException)
2014-07-26T18:48:12.435848+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
2014-07-26T18:48:12.435796+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `read_directories'
2014-07-26T18:48:12.434163+00:00 app[web.1]: Fix the date, or exclude the file or directory from being processed
2014-07-26T18:48:12.435810+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:144:in `block in read_directories'
2014-07-26T18:48:12.434230+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:163:in `read_posts'
2014-07-26T18:48:12.435814+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `each'
2014-07-26T18:48:12.435803+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `each'
2014-07-26T18:48:12.435821+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `read_directories'
2014-07-26T18:48:12.435804+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `read_directories'
2014-07-26T18:48:12.435807+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `each'
2014-07-26T18:48:12.434167+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/post.rb:161:in `process'
2014-07-26T18:48:12.435815+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `read_directories'
2014-07-26T18:48:12.435824+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:41:in `process'
2014-07-26T18:48:12.435827+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/bundler/gems/rack-jekyll-f5064cd72dae/lib/rack/jekyll.rb:29:in `initialize'
2014-07-26T18:48:12.435829+00:00 app[web.1]:    from /app/config.ru:3:in `new'
2014-07-26T18:48:12.435805+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:144:in `block in read_directories'
2014-07-26T18:48:12.435808+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `read_directories'
2014-07-26T18:48:12.435816+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:144:in `block in read_directories'
2014-07-26T18:48:12.435862+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
2014-07-26T18:48:12.435830+00:00 app[web.1]:    from /app/config.ru:3:in `block in <main>'
2014-07-26T18:48:12.435838+00:00 app[web.1]:    from /app/config.ru:in `new'
2014-07-26T18:48:12.435845+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
2014-07-26T18:48:12.435851+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
2014-07-26T18:48:12.435876+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/bin/rackup:23:in `load'
2014-07-26T18:48:12.435834+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
2014-07-26T18:48:12.435837+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
2014-07-26T18:48:12.435841+00:00 app[web.1]:    from /app/config.ru:in `<main>'
2014-07-26T18:48:12.434241+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `read_directories'
2014-07-26T18:48:12.435872+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/bin/rackup:4:in `<top (required)>'
2014-07-26T18:48:12.435823+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:119:in `read'
2014-07-26T18:48:12.435868+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
2014-07-26T18:48:12.450367+00:00 app[web.1]: Configuration file: /app/_config.yml
2014-07-26T18:48:12.435871+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/server.rb:141:in `start'
2014-07-26T18:48:12.435867+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
2014-07-26T18:48:12.434250+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `read_directories'
2014-07-26T18:48:12.435870+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/server.rb:250:in `start'
2014-07-26T18:48:12.435794+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `each'
2014-07-26T18:48:12.435877+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/bin/rackup:23:in `<main>'
2014-07-26T18:48:12.435798+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:144:in `block in read_directories'
2014-07-26T18:48:12.435818+00:00 app[web.1]:    from /app/vendor/bundle/ruby/2.1.0/gems/jekyll-2.1.1/lib/jekyll/site.rb:140:in `each'
2014-07-26T18:48:13.724571+00:00 heroku[web.1]: State changed from starting to crashed

@jnozsc show your Gemfile/gemspec , and config.ru

@majioa Thanks for helping me.

Gemfile

source 'https://rubygems.org'

ruby "2.1.2"
gem 'jekyll'
gem 'rack'
gem 'rack-jekyll', :git => 'https://github.com/adaoraul/rack-jekyll.git'

config.ru

require "rack/jekyll"

run Rack::Jekyll.new

Gemfile.lock

GIT
  remote: https://github.com/adaoraul/rack-jekyll.git
  revision: f5064cd72daee87eaf87bb838453af3caebee536
  specs:
    rack-jekyll (0.4.1)
      jekyll (>= 1.3)
      rack (~> 1.5)

GEM
  remote: https://rubygems.org/
  specs:
    blankslate (2.1.2.4)
    celluloid (0.15.2)
      timers (~> 1.1.0)
    classifier (1.3.4)
      fast-stemmer (>= 1.0.0)
    coffee-script (2.3.0)
      coffee-script-source
      execjs
    coffee-script-source (1.7.1)
    colorator (0.1)
    execjs (2.2.1)
    fast-stemmer (1.0.2)
    ffi (1.9.3)
    jekyll (2.1.1)
      classifier (~> 1.3)
      colorator (~> 0.1)
      jekyll-coffeescript (~> 1.0)
      jekyll-gist (~> 1.0)
      jekyll-paginate (~> 1.0)
      jekyll-sass-converter (~> 1.0)
      jekyll-watch (~> 1.0)
      kramdown (~> 1.3)
      liquid (~> 2.6.1)
      mercenary (~> 0.3.3)
      pygments.rb (~> 0.6.0)
      redcarpet (~> 3.1)
      safe_yaml (~> 1.0)
      toml (~> 0.1.0)
    jekyll-coffeescript (1.0.0)
      coffee-script (~> 2.2)
    jekyll-gist (1.1.0)
    jekyll-paginate (1.0.0)
    jekyll-sass-converter (1.0.0)
      sass (~> 3.2)
    jekyll-watch (1.0.0)
      listen (~> 2.7)
    kramdown (1.4.0)
    liquid (2.6.1)
    listen (2.7.9)
      celluloid (>= 0.15.2)
      rb-fsevent (>= 0.9.3)
      rb-inotify (>= 0.9)
    mercenary (0.3.4)
    parslet (1.5.0)
      blankslate (~> 2.0)
    posix-spawn (0.3.8)
    pygments.rb (0.6.0)
      posix-spawn (~> 0.3.6)
      yajl-ruby (~> 1.1.0)
    rack (1.5.2)
    rb-fsevent (0.9.4)
    rb-inotify (0.9.5)
      ffi (>= 0.5.0)
    redcarpet (3.1.2)
    safe_yaml (1.0.3)
    sass (3.3.11)
    timers (1.1.0)
    toml (0.1.1)
      parslet (~> 1.5.0)
    yajl-ruby (1.1.0)

PLATFORMS
  ruby

DEPENDENCIES
  jekyll
  rack
  rack-jekyll!

Lateset works for me with my config.ru looking like this:

require 'bundler'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __FILE__)
require 'bundler/setup'
require 'yaml'
require 'rack/jekyll'
run Rack::Jekyll.new

@adaoraul Is there anything blocking a release? Also, it'd be nice if there were tags that corresponded to published gem versions.

well
After adding

exclude: [vendor]

to my _config.yml

the github repo version works well with jekyll 2.0

I hope that my issue is not the reason blocking a release :)

Excuse my lack of time, I will release the new version of gem this week. Thank you!

Hello @adaoraul,
Have you already released a new version of this gem for Jekyll 2.0?

@iloveip svetlana вы можете использовать тот (top of trunk) не дожидаясь релиза