versioneye / crawl_r

VersionEye crawlers implemented in Ruby.
https://www.versioneye.com
Other
10 stars 7 forks source link

Add GithubLicenseCrawler for specific version commits #42

Open timgluz opened 7 years ago

timgluz commented 7 years ago

Hi,

I added additional methods for GithubVersionCrawler, which can fetch license files for specific tagged commit.

I added example worker and producer to show usage:

prod_key = 'github.com/gorilla/mux'
gopkg = Product.where(language: 'Go', prod_key: prod_key).first
msg = GithubLicenseCrawlProducer.build_msg(gopkg, gopkg[:repo_name])
GithubLicenseCrawlProducer.new msg
GithubLicenseCrawlWorker.new.work
timgluz commented 7 years ago

will update its versioneye-core