From ca4387cb7d216c8b1fcd3c7607316ea418bb14cb Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 18 Mar 2018 16:35:40 -0400 Subject: [PATCH] Change Atom feed to HTTPS --- lib/app.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/app.rb b/lib/app.rb index 662b1d86..8e1a1f87 100644 --- a/lib/app.rb +++ b/lib/app.rb @@ -435,13 +435,13 @@ class App < Sinatra::Application maker.channel.links.new_link do |link| link.rel = 'self' - link.href = 'http://devdocs.io/feed.atom' + link.href = 'https://devdocs.io/feed.atom' link.type = 'application/atom+xml' end maker.channel.links.new_link do |link| link.rel = 'alternate' - link.href = 'http://devdocs.io/' + link.href = 'https://devdocs.io/' link.type = 'text/html' end @@ -450,14 +450,14 @@ class App < Sinatra::Application item.id = "tag:devdocs.io,2014:News/#{settings.news.length - i}" item.title = news[1].split("\n").first.gsub(/<\/?[^>]*>/, '') item.description do |desc| - desc.content = news[1..-1].join.gsub("\n", '
').gsub('href="/', 'href="http://devdocs.io/') + desc.content = news[1..-1].join.gsub("\n", '
').gsub('href="/', 'href="https://devdocs.io/') desc.type = 'html' end item.updated = "#{news.first}T14:00:00Z" item.published = "#{news.first}T14:00:00Z" item.links.new_link do |link| link.rel = 'alternate' - link.href = 'http://devdocs.io/' + link.href = 'https://devdocs.io/' link.type = 'text/html' end end