Unified · Split
| @@ -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 | end | 440 | 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 | end | 446 | 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 | end | 455 | 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 | end | 462 | end |
| 463 | end | 463 | end |