huginn

https://github.com/cantino/huginn

Ruby

Create agents that monitor and act on your behalf. Your agents are standing by!

Utils.jsonify

Output JSON that is ready for inclusion into HTML.  If you simply use to_json on an object, the
presence of </script> in the valid JSON can break the page and allow XSS attacks.
Optionally, pass `:skip_safe => true` to not call html_safe on the output.

Source | Google | Stack overflow

Edit

git clone [email protected]:cantino/huginn.git

cd huginn

open lib/utils.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Utils-jsonify-for-pr


# Commit to git

git add lib/utils.rbgit commit -m "better docs for Utils.jsonify"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Utils-jsonify-for-pr

hub pull-request


# Celebrate!