{"action":"created","issue":{"url":"https://api.github.com/repos/boothale/faexport/issues/6","repository_url":"https://api.github.com/repos/boothale/faexport","labels_url":"https://api.github.com/repos/boothale/faexport/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/boothale/faexport/issues/6/comments","events_url":"https://api.github.com/repos/boothale/faexport/issues/6/events","html_url":"https://github.com/boothale/faexport/pull/6","id":139763289,"number":6,"title":"Watchers URL change","user":{"login":"fortinj1354","id":733915,"avatar_url":"https://avatars.githubusercontent.com/u/733915?v=3","gravatar_id":"","url":"https://api.github.com/users/fortinj1354","html_url":"https://github.com/fortinj1354","followers_url":"https://api.github.com/users/fortinj1354/followers","following_url":"https://api.github.com/users/fortinj1354/following{/other_user}","gists_url":"https://api.github.com/users/fortinj1354/gists{/gist_id}","starred_url":"https://api.github.com/users/fortinj1354/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fortinj1354/subscriptions","organizations_url":"https://api.github.com/users/fortinj1354/orgs","repos_url":"https://api.github.com/users/fortinj1354/repos","events_url":"https://api.github.com/users/fortinj1354/events{/privacy}","received_events_url":"https://api.github.com/users/fortinj1354/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-10T02:21:24Z","updated_at":"2016-03-13T18:27:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/boothale/faexport/pulls/6","html_url":"https://github.com/boothale/faexport/pull/6","diff_url":"https://github.com/boothale/faexport/pull/6.diff","patch_url":"https://github.com/boothale/faexport/pull/6.patch"},"body":"FA seems to have changed the URL for getting watchers/is watching for a user, so I made a few tweaks to handle that. The goal was to change as little of the existing code as possible. \r\n\r\nAdditionally I kept getting errors about 3 parameters being passed to post from the login function, and removing the nil parameter fixed that. \r\n\r\nFinally, in older versions of ruby (versions before Ruby 2, which still ships with the current Ubuntu LTS) you get errors about an encoding mismatch in the regex, which is fixed by adding an encoding tag to the top of the file. (Ruby 2 changes the default encoding to UTF-8)\r\n\r\nThis is my first time doing anything with Ruby, so apologies in advance if I've done something horribly wrong."},"comment":{"url":"https://api.github.com/repos/boothale/faexport/issues/comments/196016194","html_url":"https://github.com/boothale/faexport/pull/6#issuecomment-196016194","issue_url":"https://api.github.com/repos/boothale/faexport/issues/6","id":196016194,"user":{"login":"boothale","id":11081061,"avatar_url":"https://avatars.githubusercontent.com/u/11081061?v=3","gravatar_id":"","url":"https://api.github.com/users/boothale","html_url":"https://github.com/boothale","followers_url":"https://api.github.com/users/boothale/followers","following_url":"https://api.github.com/users/boothale/following{/other_user}","gists_url":"https://api.github.com/users/boothale/gists{/gist_id}","starred_url":"https://api.github.com/users/boothale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boothale/subscriptions","organizations_url":"https://api.github.com/users/boothale/orgs","repos_url":"https://api.github.com/users/boothale/repos","events_url":"https://api.github.com/users/boothale/events{/privacy}","received_events_url":"https://api.github.com/users/boothale/received_events","type":"User","site_admin":false},"created_at":"2016-03-13T18:27:42Z","updated_at":"2016-03-13T18:27:42Z","body":"> Might be a good idea to check if the username or password has changed since the last startup, and if it has dump the stored cookie and re-login.\r\n\r\nI'll see if I can add this, it's a good idea.  Probably just store the hash of username + password.  Don't need either to be recoverable in this case.\r\n\r\n"}}