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
Result#filter_metadata
Allows filtering an array inside a JSON object based on a
(potentially nested) value or set of values
Params:
+data+:: The JSON object to filter
+keys+:: The key(s) under which a value is stored in the array element
+values+:: The values which are valid and should cause the element to be included in the filtered array
if values is nil we will just test to see if the element exists
+filter_on+:: The key(s) under which the array to be filtered is stored in the JSON element (data)Edit
git clone [email protected]:netflix-skunkworks/scumblr.git
cd scumblr
open app/models/result.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Result-filter_metadata-for-pr
# Commit to gitgit add app/models/result.rbgit commit -m "better docs for Result#filter_metadata"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Result-filter_metadata-for-pr
hub pull-request
# Celebrate!