浏览代码

Change Atom feed to HTTPS

Thibaut Courouble 7 年之前
父节点
当前提交
ca4387cb7d
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      lib/app.rb

+ 4 - 4
lib/app.rb

@@ -435,13 +435,13 @@ class App < Sinatra::Application
 
 
       maker.channel.links.new_link do |link|
       maker.channel.links.new_link do |link|
         link.rel = 'self'
         link.rel = 'self'
-        link.href = 'http://devdocs.io/feed.atom'
+        link.href = 'https://devdocs.io/feed.atom'
         link.type = 'application/atom+xml'
         link.type = 'application/atom+xml'
       end
       end
 
 
       maker.channel.links.new_link do |link|
       maker.channel.links.new_link do |link|
         link.rel = 'alternate'
         link.rel = 'alternate'
-        link.href = 'http://devdocs.io/'
+        link.href = 'https://devdocs.io/'
         link.type = 'text/html'
         link.type = 'text/html'
       end
       end
 
 
@@ -450,14 +450,14 @@ class App < Sinatra::Application
           item.id = "tag:devdocs.io,2014:News/#{settings.news.length - i}"
           item.id = "tag:devdocs.io,2014:News/#{settings.news.length - i}"
           item.title = news[1].split("\n").first.gsub(/<\/?[^>]*>/, '')
           item.title = news[1].split("\n").first.gsub(/<\/?[^>]*>/, '')
           item.description do |desc|
           item.description do |desc|
-            desc.content = news[1..-1].join.gsub("\n", '<br>').gsub('href="/', 'href="http://devdocs.io/')
+            desc.content = news[1..-1].join.gsub("\n", '<br>').gsub('href="/', 'href="https://devdocs.io/')
             desc.type = 'html'
             desc.type = 'html'
           end
           end
           item.updated = "#{news.first}T14:00:00Z"
           item.updated = "#{news.first}T14:00:00Z"
           item.published = "#{news.first}T14:00:00Z"
           item.published = "#{news.first}T14:00:00Z"
           item.links.new_link do |link|
           item.links.new_link do |link|
             link.rel = 'alternate'
             link.rel = 'alternate'
-            link.href = 'http://devdocs.io/'
+            link.href = 'https://devdocs.io/'
             link.type = 'text/html'
             link.type = 'text/html'
           end
           end
         end
         end