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#_traverse_metadata

Walk through the metadata and return the keys requested
r is the current set of data (should be nil)
Examples:
traverse_metadata(nil, {:a=>{b:1,c:2}},[:a,:b])
=> {a: { b: 1 } }
traverse_metadata(nil, {:a=>["hello","there","foo", "bar"],[:a,[0,2]])
=> {a: {0: "hello", 2: "foo"} }
traverse_metadata(nil, {:a=>[{z:1, s:1},{x: 5, s:3},{y:2, s:5}],[:a,[0,2],[z,s]])
=> {a: {0: {z:1, s:1}, 2: {z: nil, s:5} }}

Source | Google | Stack overflow

Edit

git clone [email protected]:netflix-skunkworks/scumblr.git

cd scumblr

open app/models/result.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Result-_traverse_metadata-for-pr


# Commit to git

git add app/models/result.rbgit commit -m "better docs for Result#_traverse_metadata"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Result-_traverse_metadata-for-pr

hub pull-request


# Celebrate!