{"action":"created","issue":{"url":"https://api.github.com/repos/maptime/maptime.github.io/issues/192","labels_url":"https://api.github.com/repos/maptime/maptime.github.io/issues/192/labels{/name}","comments_url":"https://api.github.com/repos/maptime/maptime.github.io/issues/192/comments","events_url":"https://api.github.com/repos/maptime/maptime.github.io/issues/192/events","html_url":"https://github.com/maptime/maptime.github.io/pull/192","id":77085259,"number":192,"title":"Created an upcoming events widget","user":{"login":"rhewitt22","id":3673374,"avatar_url":"https://avatars.githubusercontent.com/u/3673374?v=3","gravatar_id":"","url":"https://api.github.com/users/rhewitt22","html_url":"https://github.com/rhewitt22","followers_url":"https://api.github.com/users/rhewitt22/followers","following_url":"https://api.github.com/users/rhewitt22/following{/other_user}","gists_url":"https://api.github.com/users/rhewitt22/gists{/gist_id}","starred_url":"https://api.github.com/users/rhewitt22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhewitt22/subscriptions","organizations_url":"https://api.github.com/users/rhewitt22/orgs","repos_url":"https://api.github.com/users/rhewitt22/repos","events_url":"https://api.github.com/users/rhewitt22/events{/privacy}","received_events_url":"https://api.github.com/users/rhewitt22/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/maptime/maptime.github.io/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/maptime/maptime.github.io/labels/ready%20for%20review","name":"ready for review","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-16T17:21:34Z","updated_at":"2015-06-01T19:59:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/maptime/maptime.github.io/pulls/192","html_url":"https://github.com/maptime/maptime.github.io/pull/192","diff_url":"https://github.com/maptime/maptime.github.io/pull/192.diff","patch_url":"https://github.com/maptime/maptime.github.io/pull/192.patch"},"body":"Addresses #105. \r\n\r\nUpdated `site.js` to query a google spreadsheet using tabletop.js for maptime events.  The script ditches events that have already occurred, and sorts them by date before rendering them in a list in the sidebar.\r\n\r\nEvents list is hidden by default on mobile, they are shown when you click the Upcoming events header. Shown by default in a scrollable list in the sidebar on larger screens.\r\n\r\nCaveat: since last november when the google form was created Google changed they way they save dates to the spreadsheet.  They used to save in an ISO format that moment.js liked.  Now dates are saved in the following format *6/8/2015 18:30:00*, which causes moment.js to throw a warning:\r\n\r\n``` javascript\r\nDeprecation warning: moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.\r\n```"},"comment":{"url":"https://api.github.com/repos/maptime/maptime.github.io/issues/comments/107688490","html_url":"https://github.com/maptime/maptime.github.io/pull/192#issuecomment-107688490","issue_url":"https://api.github.com/repos/maptime/maptime.github.io/issues/192","id":107688490,"user":{"login":"danswick","id":2365503,"avatar_url":"https://avatars.githubusercontent.com/u/2365503?v=3","gravatar_id":"","url":"https://api.github.com/users/danswick","html_url":"https://github.com/danswick","followers_url":"https://api.github.com/users/danswick/followers","following_url":"https://api.github.com/users/danswick/following{/other_user}","gists_url":"https://api.github.com/users/danswick/gists{/gist_id}","starred_url":"https://api.github.com/users/danswick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danswick/subscriptions","organizations_url":"https://api.github.com/users/danswick/orgs","repos_url":"https://api.github.com/users/danswick/repos","events_url":"https://api.github.com/users/danswick/events{/privacy}","received_events_url":"https://api.github.com/users/danswick/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T19:59:01Z","updated_at":"2015-06-01T19:59:01Z","body":"Looking good, @geobrando! Problems getting Ruby dependencies lined up I'm guessing? I totally wasn't up all night doing the same thing last night...\r\n\r\nAnywho, for Maptime Chicago's events, I'm using the YAML header date variable that (I think?) @geografa set up in the starter template. I bet we could pull that info into the widget, though it might be more work than it's worth.  \r\n\r\n```\r\n---\r\nlayout: event\r\ncategory: event\r\ntitle: OpenStreetMap for Humanitarian Response\r\nrsvp: https://www.eventbrite.com/e/openstreetmap-for-humanitarian-response-tickets-17129945127\r\n\r\n---\r\n```\r\nThe event info is mostly here and the date comes from the filename as is Jekyll's wont. "}}