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
435 435
436 maker.channel.links.new_link do |link|436 maker.channel.links.new_link do |link|
437 link.rel = 'self'437 link.rel = 'self'
438 link.href = 'http://devdocs.io/feed.atom'438 link.href = 'https://devdocs.io/feed.atom'
439 link.type = 'application/atom+xml'439 link.type = 'application/atom+xml'
440 end440 end
441 441
442 maker.channel.links.new_link do |link|442 maker.channel.links.new_link do |link|
443 link.rel = 'alternate'443 link.rel = 'alternate'
444 link.href = 'http://devdocs.io/'444 link.href = 'https://devdocs.io/'
445 link.type = 'text/html'445 link.type = 'text/html'
446 end446 end
447 447
@@ -450,14 +450,14 @@ class App < Sinatra::Application · 2 unmodified lines
450 item.id = "tag:devdocs.io,2014:News/#{settings.news.length - i}"450 item.id = "tag:devdocs.io,2014:News/#{settings.news.length - i}"
451 item.title = news[1].split("\n").first.gsub(/<\/?[^>]*>/, '')451 item.title = news[1].split("\n").first.gsub(/<\/?[^>]*>/, '')
452 item.description do |desc|452 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/')
454 desc.type = 'html'454 desc.type = 'html'
455 end455 end
456 item.updated = "#{news.first}T14:00:00Z"456 item.updated = "#{news.first}T14:00:00Z"
457 item.published = "#{news.first}T14:00:00Z"457 item.published = "#{news.first}T14:00:00Z"
458 item.links.new_link do |link|458 item.links.new_link do |link|
459 link.rel = 'alternate'459 link.rel = 'alternate'
460 link.href = 'http://devdocs.io/'460 link.href = 'https://devdocs.io/'
461 link.type = 'text/html'461 link.type = 'text/html'
462 end462 end
463 end463 end