History

Change Atom feed to HTTPS

Thibaut Courouble committed 8 years ago

Commit ca4387c1 parent e8bb76f1 file · +4 −4Browse files

Unified · Split

lib/app.rb+4−4
@@ -435,13 +435,13 @@ class App < Sinatra::Application · 434 unmodified lines
435435
436436 maker.channel.links.new_link do |link|
437437 link.rel = 'self'
438− link.href = 'http://devdocs.io/feed.atom'
438+ link.href = 'https://devdocs.io/feed.atom'
439439 link.type = 'application/atom+xml'
440440 end
441441
442442 maker.channel.links.new_link do |link|
443443 link.rel = 'alternate'
444− link.href = 'http://devdocs.io/'
444+ link.href = 'https://devdocs.io/'
445445 link.type = 'text/html'
446446 end
447447
@@ -450,14 +450,14 @@ class App < Sinatra::Application · 2 unmodified lines
450450 item.id = "tag:devdocs.io,2014:News/#{settings.news.length - i}"
451451 item.title = news[1].split("\n").first.gsub(/<\/?[^>]*>/, '')
452452 item.description do |desc|
453− desc.content = news[1..-1].join.gsub("\n", '<br>').gsub('href="/', 'href="http://devdocs.io/')
453+ desc.content = news[1..-1].join.gsub("\n", '<br>').gsub('href="/', 'href="https://devdocs.io/')
454454 desc.type = 'html'
455455 end
456456 item.updated = "#{news.first}T14:00:00Z"
457457 item.published = "#{news.first}T14:00:00Z"
458458 item.links.new_link do |link|
459459 link.rel = 'alternate'
460− link.href = 'http://devdocs.io/'
460+ link.href = 'https://devdocs.io/'
461461 link.type = 'text/html'
462462 end
463463 end