scumblr
https://github.com/netflix-skunkworks/scumblr
Ruby
Web framework that allows performing periodic syncs of data sources and performing analysis on the identified results
ScumblrWorkers::AsyncSidekiqWorker#update_trends
This will at take a key and a hash with values and puts these values into the trends hash
if the key already exists in the trends hash it will sum the values together
example: @trends = {updated: {results: 1, tasks:10}}, key= :updated, count= {results: 5, tasks: 2}
@trends will be updated to {updated: {results: 6, tasks: 12}}Edit
git clone [email protected]:netflix-skunkworks/scumblr.git
cd scumblr
open lib/scumblr_tasks/async_sidekiq.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-ScumblrWorkers--AsyncSidekiqWorker-update_trends-for-pr
# Commit to gitgit add lib/scumblr_tasks/async_sidekiq.rbgit commit -m "better docs for ScumblrWorkers::AsyncSidekiqWorker#update_trends"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-ScumblrWorkers--AsyncSidekiqWorker-update_trends-for-pr
hub pull-request
# Celebrate!