added ruby and JSON dependencies from PR #2