Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make dependency list active count 1.8.6 compatible

  • Loading branch information...
commit a9b609b928e26b1fac29485c86f4d9d86144641d 1 parent 16decb0
@lsegal lsegal authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/rubygems/dependency_list.rb
View
2  lib/rubygems/dependency_list.rb
@@ -201,7 +201,7 @@ def tsort_each_child(node, &block)
# +ignored+.
def active_count(specs, ignored)
- specs.count { |spec| ignored[spec.full_name].nil? }
+ specs.inject(0) {|c, spec| ignored[spec.full_name].nil? ? c + 1 : c }
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.