[DRE-commits] [librarian-puppet] 134/153: Issue #324 Try a different map/reduce to see if speed improves

Stig Sandbeck Mathisen ssm at debian.org
Wed Jun 1 20:30:58 UTC 2016


This is an automated email from the git hooks/post-receive script.

ssm pushed a commit to branch master
in repository librarian-puppet.

commit 7705d663e52cdc78a5b0af552d57a93c3367f879
Author: Carlos Sanchez <carlos at apache.org>
Date:   Wed Sep 23 20:03:48 2015 +0200

    Issue #324 Try a different map/reduce to see if speed improves
---
 lib/librarian/puppet/source/forge/repo_v3.rb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/librarian/puppet/source/forge/repo_v3.rb b/lib/librarian/puppet/source/forge/repo_v3.rb
index 37f57a1..533bdd7 100644
--- a/lib/librarian/puppet/source/forge/repo_v3.rb
+++ b/lib/librarian/puppet/source/forge/repo_v3.rb
@@ -16,9 +16,7 @@ module Librarian
           end
 
           def get_versions
-            get_module.releases.map do |r|
-              r.version unless r.deleted_at != nil
-            end.compact
+            get_module.releases.select{|r| r.deleted_at.nil?}.map{|r| r.version}
           end
 
           def dependencies(version)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/librarian-puppet.git



More information about the Pkg-ruby-extras-commits mailing list