sheerun/githubsocial

View on GitHub
bin/overgazers

Summary

Maintainability
Test Coverage
require 'redis'

redis = Redis.new(:driver => :hiredis)

redis.keys('starred:*').each { |key|
  if redis.scard(key) > 1000
    id = key.split(':')[1]
    puts id
    redis.sadd('overgazers', id)
  end
}