{"action":"created","issue":{"url":"https://api.github.com/repos/ankane/pgsync/issues/4","repository_url":"https://api.github.com/repos/ankane/pgsync","labels_url":"https://api.github.com/repos/ankane/pgsync/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/ankane/pgsync/issues/4/comments","events_url":"https://api.github.com/repos/ankane/pgsync/issues/4/events","html_url":"https://github.com/ankane/pgsync/pull/4","id":161078513,"number":4,"title":"Erb parse yaml file","user":{"login":"hendricius","id":816859,"avatar_url":"https://avatars.githubusercontent.com/u/816859?v=3","gravatar_id":"","url":"https://api.github.com/users/hendricius","html_url":"https://github.com/hendricius","followers_url":"https://api.github.com/users/hendricius/followers","following_url":"https://api.github.com/users/hendricius/following{/other_user}","gists_url":"https://api.github.com/users/hendricius/gists{/gist_id}","starred_url":"https://api.github.com/users/hendricius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hendricius/subscriptions","organizations_url":"https://api.github.com/users/hendricius/orgs","repos_url":"https://api.github.com/users/hendricius/repos","events_url":"https://api.github.com/users/hendricius/events{/privacy}","received_events_url":"https://api.github.com/users/hendricius/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-19T15:41:44Z","updated_at":"2016-07-28T07:53:17Z","closed_at":"2016-07-24T02:01:28Z","pull_request":{"url":"https://api.github.com/repos/ankane/pgsync/pulls/4","html_url":"https://github.com/ankane/pgsync/pull/4","diff_url":"https://github.com/ankane/pgsync/pull/4.diff","patch_url":"https://github.com/ankane/pgsync/pull/4.patch"},"body":"Added functionality to parse the `.yml` files with `ERB` before loading them into `YAML`. We have sensitive variables for the connection options. We rather pass them via shell environment variables.\r\n\r\nThis way the users can now do something like this:\r\n\r\n```\r\n# source database URL\r\n# database URLs take the format of:\r\n#   postgres://user:password@host:port/dbname\r\n# we recommend a command which outputs a database URL\r\n# so sensitive information is not included in this file\r\nfrom: <%= ENV['PGSYNC_FROM_DATABASE'] %>\r\n\r\n# destination database URL\r\nto: <%= ENV['PGSYNC_TO_DATABASE'] %>\r\n\r\n# exclude tables\r\n# exclude:\r\n#   - schema_migrations\r\n\r\n# define groups\r\n# groups:\r\n#   group1:\r\n#     - table1\r\n#     - table2\r\n\r\n# protect sensitive information\r\ndata_rules:\r\n  email: unique_email\r\n  phone: unique_phone\r\n  last_name: random_letter\r\n  birthday: random_date\r\n  encrypted_*: null\r\n```\r\n\r\nCheers for the great gem. Really loving it."},"comment":{"url":"https://api.github.com/repos/ankane/pgsync/issues/comments/235825212","html_url":"https://github.com/ankane/pgsync/pull/4#issuecomment-235825212","issue_url":"https://api.github.com/repos/ankane/pgsync/issues/4","id":235825212,"user":{"login":"hendricius","id":816859,"avatar_url":"https://avatars.githubusercontent.com/u/816859?v=3","gravatar_id":"","url":"https://api.github.com/users/hendricius","html_url":"https://github.com/hendricius","followers_url":"https://api.github.com/users/hendricius/followers","following_url":"https://api.github.com/users/hendricius/following{/other_user}","gists_url":"https://api.github.com/users/hendricius/gists{/gist_id}","starred_url":"https://api.github.com/users/hendricius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hendricius/subscriptions","organizations_url":"https://api.github.com/users/hendricius/orgs","repos_url":"https://api.github.com/users/hendricius/repos","events_url":"https://api.github.com/users/hendricius/events{/privacy}","received_events_url":"https://api.github.com/users/hendricius/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T07:53:16Z","updated_at":"2016-07-28T07:53:16Z","body":"No problem - thanks!"}}
{"actor":{"display_login":"hendricius"}}