I try to build a news web page, but somehow the generated html page does not contain actual feeds - though pluto fetches them.
What I did:
starting RHEL docker image with ruby 2.3
installing pluto with gem install pluto
pluto i news
pluto b ruby-news.ini -t news -o planet
The output is:
$ pluto b ruby-news.ini -t news -o planet
activerecord-utils/0.4.0 (activerecord/5.1.4) on Ruby 2.3.1 (2016-04-26) [x86_64-linux]
activityutils/0.1.1 on Ruby 2.3.1 (2016-04-26) [x86_64-linux]
pluto/1.2.3 on Ruby 2.3.1 (2016-04-26) [x86_64-linux]
db settings:
{:adapter=>"sqlite3", :database=>"./ruby-news.db"}
dump >ruby-news.ini<:
{"title"=>"Planet Ruby News",
"source"=>"https://raw.github.com/planetruby/planet/master/ruby-news.ini",
"rubylang"=>
{"title"=>"Ruby Lang News",
"link"=>"http://www.ruby-lang.org/en/news",
"feed"=>"http://www.ruby-lang.org/en/feeds/news.rss"},
"jruby"=>
{"title"=>"JRuby News",
"link"=>"http://www.jruby.org",
"feed"=>"http://www.jruby.org/atom.xml"}}
Updating feed subscription >rubylang< - >http://www.ruby-lang.org/en/feeds/news.rss<...
Updating feed subscription >jruby< - >http://www.jruby.org/atom.xml<...
[info] found cache entry for >http://www.ruby-lang.org/en/feeds/news.rss<
OK - fetching feed 'rubylang' - HTTP status 200 OK
http header - server: Cowboy - String
http header - etag: W/"d720d3b57a3f3a09f4d7fcf8c064d3d4" - String
http header - last-modified: - NilClass
Before parsing feed >rubylang<...
** NEW | Ruby 2.5.0-preview1 Released
** NEW | CVE-2017-10784: Escape sequence injection vulnerability in the Basic authentication of WEBrick
** NEW | CVE-2017-0898: Buffer underrun vulnerability in Kernel.sprintf
** NEW | Ruby 2.3.5 Released
** NEW | Ruby 2.2.8 Released
** NEW | CVE-2017-14033: Buffer underrun vulnerability in OpenSSL ASN1 decode
** NEW | CVE-2017-14064: Heap exposure vulnerability in generating JSON
** NEW | Ruby 2.4.2 Released
** NEW | Multiple vulnerabilities in RubyGems
** NEW | Nominations now being accepted for Ruby Prize 2017
[info] found cache entry for >http://www.jruby.org/atom.xml<
OK - fetching feed 'jruby' - HTTP status 200 OK
http header - server: GitHub.com - String
http header - etag: - NilClass
http header - last-modified: Wed, 06 Sep 2017 20:14:16 GMT - String
Before parsing feed >jruby<...
** NEW | JRuby 9.1.13.0 Released
** NEW | JRuby 9.1.12.0 Released
** NEW | JRuby 9.1.11.0 Released
** NEW | JRuby 9.1.10.0 Released
** NEW | JRuby 9.1.9.0 Released
** NEW | JRuby 1.7.27 Released
** NEW | JRuby 9.1.8.0 Released
** NEW | JRuby 9.1.7.0 Released
** NEW | JRuby 9.1.6.0 Released
** NEW | JRuby 9.1.5.0 Released
*** warn: no site with key 'ruby-news' found; using untitled site record
Merging template pack 'news'
Loading template manifest /opt/app-root/src/.pluto/news/news.txt...
Merging to ruby-news.news.html...
Loading template (from file) >/opt/app-root/src/.pluto/news/news.html.erb<...
Copying to css/news.css from /opt/app-root/src/.pluto/news/css/news.css...
Copying to i/view-headlines.png from /opt/app-root/src/.pluto/news/i/view-headlines.png...
Copying to i/view-snippets.png from /opt/app-root/src/.pluto/news/i/view-snippets.png...
Copying to i/view-standard.png from /opt/app-root/src/.pluto/news/i/view-standard.png...
Copying to js/jquery-2.0.3.min.js from /opt/app-root/src/.pluto/news/js/jquery-2.0.3.min.js...
Copying to js/news.js from /opt/app-root/src/.pluto/news/js/news.js...
Done (in 0.007640118 s).
Done.
Thus everything seems to run fine. However, the html file itself seems to be empty besides the template data:
I try to build a news web page, but somehow the generated html page does not contain actual feeds - though pluto fetches them.
What I did:
gem install pluto
pluto i news
pluto b ruby-news.ini -t news -o planet
The output is:Thus everything seems to run fine. However, the html file itself seems to be empty besides the template data:
Planet Untitled