Skip to content

Commit

Permalink
Fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
davydovanton committed Apr 3, 2017
1 parent e0b2ea6 commit 93ab298
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/contributors/repositories/contributor_repository.rb
Expand Up @@ -14,8 +14,8 @@ def with_commit_range(range)
.join(commits)
.where(commits[:created_at].qualified => range)
.as(Contributor).to_a
.sort_by { |c| c.commits.count }.reverse!
.uniq! { |c| c.github }
.sort { |first, second| second.commits.count <=> first.commits.count }
.uniq { |c| c.github }
end

def find_by_github(github)
Expand Down

0 comments on commit 93ab298

Please sign in to comment.