Skip to content

Commit

Permalink
[Statistics] Robustness.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopelosin committed Oct 4, 2012
1 parent 9181672 commit 11edeba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cocoapods/specification/statistics.rb
Expand Up @@ -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

Expand Down

0 comments on commit 11edeba

Please sign in to comment.