From 0d4ad2f09bf5f9aa6bbfd9affd2df3265cf3173b Mon Sep 17 00:00:00 2001 From: Alex Legler Date: Sat, 14 Mar 2015 17:04:40 +0100 Subject: Correct ze math. --- lib/glsa_repository.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/glsa_repository.rb b/lib/glsa_repository.rb index ee1096b..9fe571a 100644 --- a/lib/glsa_repository.rb +++ b/lib/glsa_repository.rb @@ -44,7 +44,7 @@ class GLSARepository end def latest(n = 10) - @latest[0..n].map {|id| @advisories[id] } + @latest[0...n].map {|id| @advisories[id] } end def[](id) -- cgit v1.2.3-65-gdbad