Permalink
Browse files

[Statistics] Robustness.

  • Loading branch information...
fabiopelosin committed Oct 4, 2012
1 parent 9181672 commit 11edebab28c936d14e4887e863f06b7e96bad48d
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cocoapods/specification/statistics.rb
@@ -90,7 +90,7 @@ def compute_creation_date(set, save = true)
def github_stats_if_needed(set)
return if get_value(set, :gh_date) && get_value(set, :gh_date) > Time.now - cache_expiration
spec = set.specification
- url = spec.source.reject {|k,_| k == :commit || k == :tag }.values.first
+ url = spec.source[:git] || ''
repo_id = url[/github.com\/([^\/\.]*\/[^\/\.]*)\.*/, 1]
return unless repo_id

0 comments on commit 11edeba

Please sign in to comment.