summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/helpers.rb')
-rw-r--r--lib/helpers.rb17
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/helpers.rb b/lib/helpers.rb
index 5ad9e82..d19e8f5 100644
--- a/lib/helpers.rb
+++ b/lib/helpers.rb
@@ -20,7 +20,7 @@ helpers do
end
def u(text)
- ERB::Util::url_encode(text)
+ ERB::Util.url_encode(text)
end
def h2(text)
@@ -57,21 +57,20 @@ helpers do
def feed(type, items)
RSS::Maker.make(type) do |maker|
- maker.channel.author = "Gentoo Security Team"
- maker.channel.about = "https://security.gentoo.org/glsa"
- maker.channel.link = "https://security.gentoo.org/glsa"
- maker.channel.description = "This feed contains new Gentoo Linux Security Advisories. Contact security@gentoo.org with questions."
- maker.channel.title = "Gentoo Linux Security Advisories"
+ maker.channel.author = 'Gentoo Security Team'
+ maker.channel.about = 'https://security.gentoo.org/glsa'
+ maker.channel.link = 'https://security.gentoo.org/glsa'
+ maker.channel.description = 'This feed contains new Gentoo Linux Security Advisories. Contact security@gentoo.org with questions.'
+ maker.channel.title = 'Gentoo Linux Security Advisories'
maker.channel.updated = items.first.revised.to_s
items.each do |input_item|
maker.items.new_item do |item|
item.link = BASE_URL + 'glsa/' + input_item.id
- item.title = "GLSA %s: %s" % [input_item.id, input_item.title]
+ item.title = 'GLSA %s: %s' % [input_item.id, input_item.title]
item.updated = input_item.revised.to_s
end
end
end.to_s
end
-
-end \ No newline at end of file
+end