{"action":"created","comment":{"url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/pulls/comments/47845860","id":47845860,"diff_hunk":"@@ -1,7 +1,30 @@\n-# This file should contain all the record creation needed to seed the database with its default values.\n-# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).\n-#\n-# Examples:\n-#\n-#   cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])\n-#   Mayor.create(name: 'Emanuel', city: cities.first)\n+sb_lat = 35.9927473\n+sb_lng = -78.9061682\n+\n+100.times do\n+  AQO.create!(\n+    aqi: (0..200).to_a.sample\n+    date_observed: Faker::Time.between(Time.zone.now - 300, Time.zone.now)\n+    hour_observed: (0..25).to_a.sample\n+    lat: Faker::Address.latitude\n+    lng: Faker::Address.longitude\n+    local_time_zone: Faker::Address.time_zone\n+    parameter_name: '03'\n+    reporting_area: Faker::Address.city\n+    state_code: Faker::Address.state_abbr\n+  )\n+end\n+\n+14.times do\n+  AQO.create!(\n+    aqi: (0..200).to_a.sample\n+    date_observed: Faker::Time.between(Time.zone.now - 300, Time.zone.now)\n+    hour_observed: (0..25).to_a.sample\n+    lat: sb_lat\n+    lng: sb_lng\n+    local_time_zone: Faker::Address.time_zone","path":"db/seeds.rb","position":32,"original_position":32,"commit_id":"ee365103fe7cf7406768fbb622a43da1c6480203","original_commit_id":"ee365103fe7cf7406768fbb622a43da1c6480203","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"unexpected token tCOLON","created_at":"2015-12-16T22:48:12Z","updated_at":"2015-12-16T22:48:12Z","html_url":"https://github.com/smashingboxes/epa-prototype-api/pull/3#discussion_r47845860","pull_request_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/smashingboxes/epa-prototype-api/pulls/comments/47845860"},"html":{"href":"https://github.com/smashingboxes/epa-prototype-api/pull/3#discussion_r47845860"},"pull_request":{"href":"https://api.github.com/repos/smashingboxes/epa-prototype-api/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/pulls/3","id":53908952,"html_url":"https://github.com/smashingboxes/epa-prototype-api/pull/3","diff_url":"https://github.com/smashingboxes/epa-prototype-api/pull/3.diff","patch_url":"https://github.com/smashingboxes/epa-prototype-api/pull/3.patch","issue_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/issues/3","number":3,"state":"open","locked":false,"title":"Get data api endpoint","user":{"login":"BrandonMathis","id":362269,"avatar_url":"https://avatars.githubusercontent.com/u/362269?v=3","gravatar_id":"","url":"https://api.github.com/users/BrandonMathis","html_url":"https://github.com/BrandonMathis","followers_url":"https://api.github.com/users/BrandonMathis/followers","following_url":"https://api.github.com/users/BrandonMathis/following{/other_user}","gists_url":"https://api.github.com/users/BrandonMathis/gists{/gist_id}","starred_url":"https://api.github.com/users/BrandonMathis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrandonMathis/subscriptions","organizations_url":"https://api.github.com/users/BrandonMathis/orgs","repos_url":"https://api.github.com/users/BrandonMathis/repos","events_url":"https://api.github.com/users/BrandonMathis/events{/privacy}","received_events_url":"https://api.github.com/users/BrandonMathis/received_events","type":"User","site_admin":false},"body":"## What Changed\r\n* Add get query that will give you air quality readings based on gps\r\n* Limit responses to past 7 days\r\n\r\n## Why\r\n* Android app needs to be able to get air quality readings","created_at":"2015-12-16T22:35:12Z","updated_at":"2015-12-16T22:48:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"30db1259b5acd6d28938657a60d88b9404b6d51f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/pulls/3/commits","review_comments_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/pulls/3/comments","review_comment_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/issues/3/comments","statuses_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/statuses/ee365103fe7cf7406768fbb622a43da1c6480203","head":{"label":"smashingboxes:get-data-api-endpoint","ref":"get-data-api-endpoint","sha":"ee365103fe7cf7406768fbb622a43da1c6480203","user":{"login":"smashingboxes","id":784473,"avatar_url":"https://avatars.githubusercontent.com/u/784473?v=3","gravatar_id":"","url":"https://api.github.com/users/smashingboxes","html_url":"https://github.com/smashingboxes","followers_url":"https://api.github.com/users/smashingboxes/followers","following_url":"https://api.github.com/users/smashingboxes/following{/other_user}","gists_url":"https://api.github.com/users/smashingboxes/gists{/gist_id}","starred_url":"https://api.github.com/users/smashingboxes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smashingboxes/subscriptions","organizations_url":"https://api.github.com/users/smashingboxes/orgs","repos_url":"https://api.github.com/users/smashingboxes/repos","events_url":"https://api.github.com/users/smashingboxes/events{/privacy}","received_events_url":"https://api.github.com/users/smashingboxes/received_events","type":"Organization","site_admin":false},"repo":{"id":48000919,"name":"epa-prototype-api","full_name":"smashingboxes/epa-prototype-api","owner":{"login":"smashingboxes","id":784473,"avatar_url":"https://avatars.githubusercontent.com/u/784473?v=3","gravatar_id":"","url":"https://api.github.com/users/smashingboxes","html_url":"https://github.com/smashingboxes","followers_url":"https://api.github.com/users/smashingboxes/followers","following_url":"https://api.github.com/users/smashingboxes/following{/other_user}","gists_url":"https://api.github.com/users/smashingboxes/gists{/gist_id}","starred_url":"https://api.github.com/users/smashingboxes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smashingboxes/subscriptions","organizations_url":"https://api.github.com/users/smashingboxes/orgs","repos_url":"https://api.github.com/users/smashingboxes/repos","events_url":"https://api.github.com/users/smashingboxes/events{/privacy}","received_events_url":"https://api.github.com/users/smashingboxes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/smashingboxes/epa-prototype-api","description":"","fork":false,"url":"https://api.github.com/repos/smashingboxes/epa-prototype-api","forks_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/forks","keys_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/teams","hooks_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/hooks","issue_events_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/issues/events{/number}","events_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/events","assignees_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/assignees{/user}","branches_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/branches{/branch}","tags_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/tags","blobs_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/statuses/{sha}","languages_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/languages","stargazers_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/stargazers","contributors_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/contributors","subscribers_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/subscribers","subscription_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/subscription","commits_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/contents/{+path}","compare_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/merges","archive_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/downloads","issues_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/issues{/number}","pulls_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/pulls{/number}","milestones_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/milestones{/number}","notifications_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/labels{/name}","releases_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/releases{/id}","created_at":"2015-12-14T20:59:41Z","updated_at":"2015-12-15T21:34:15Z","pushed_at":"2015-12-16T22:48:07Z","git_url":"git://github.com/smashingboxes/epa-prototype-api.git","ssh_url":"git@github.com:smashingboxes/epa-prototype-api.git","clone_url":"https://github.com/smashingboxes/epa-prototype-api.git","svn_url":"https://github.com/smashingboxes/epa-prototype-api","homepage":null,"size":41,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"smashingboxes:master","ref":"master","sha":"7654bf5ae31d1047e89e7d567820a7124137c0c1","user":{"login":"smashingboxes","id":784473,"avatar_url":"https://avatars.githubusercontent.com/u/784473?v=3","gravatar_id":"","url":"https://api.github.com/users/smashingboxes","html_url":"https://github.com/smashingboxes","followers_url":"https://api.github.com/users/smashingboxes/followers","following_url":"https://api.github.com/users/smashingboxes/following{/other_user}","gists_url":"https://api.github.com/users/smashingboxes/gists{/gist_id}","starred_url":"https://api.github.com/users/smashingboxes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smashingboxes/subscriptions","organizations_url":"https://api.github.com/users/smashingboxes/orgs","repos_url":"https://api.github.com/users/smashingboxes/repos","events_url":"https://api.github.com/users/smashingboxes/events{/privacy}","received_events_url":"https://api.github.com/users/smashingboxes/received_events","type":"Organization","site_admin":false},"repo":{"id":48000919,"name":"epa-prototype-api","full_name":"smashingboxes/epa-prototype-api","owner":{"login":"smashingboxes","id":784473,"avatar_url":"https://avatars.githubusercontent.com/u/784473?v=3","gravatar_id":"","url":"https://api.github.com/users/smashingboxes","html_url":"https://github.com/smashingboxes","followers_url":"https://api.github.com/users/smashingboxes/followers","following_url":"https://api.github.com/users/smashingboxes/following{/other_user}","gists_url":"https://api.github.com/users/smashingboxes/gists{/gist_id}","starred_url":"https://api.github.com/users/smashingboxes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smashingboxes/subscriptions","organizations_url":"https://api.github.com/users/smashingboxes/orgs","repos_url":"https://api.github.com/users/smashingboxes/repos","events_url":"https://api.github.com/users/smashingboxes/events{/privacy}","received_events_url":"https://api.github.com/users/smashingboxes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/smashingboxes/epa-prototype-api","description":"","fork":false,"url":"https://api.github.com/repos/smashingboxes/epa-prototype-api","forks_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/forks","keys_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/teams","hooks_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/hooks","issue_events_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/issues/events{/number}","events_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/events","assignees_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/assignees{/user}","branches_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/branches{/branch}","tags_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/tags","blobs_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/statuses/{sha}","languages_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/languages","stargazers_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/stargazers","contributors_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/contributors","subscribers_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/subscribers","subscription_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/subscription","commits_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/contents/{+path}","compare_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/merges","archive_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/downloads","issues_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/issues{/number}","pulls_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/pulls{/number}","milestones_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/milestones{/number}","notifications_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/labels{/name}","releases_url":"https://api.github.com/repos/smashingboxes/epa-prototype-api/releases{/id}","created_at":"2015-12-14T20:59:41Z","updated_at":"2015-12-15T21:34:15Z","pushed_at":"2015-12-16T22:48:07Z","git_url":"git://github.com/smashingboxes/epa-prototype-api.git","ssh_url":"git@github.com:smashingboxes/epa-prototype-api.git","clone_url":"https://github.com/smashingboxes/epa-prototype-api.git","svn_url":"https://github.com/smashingboxes/epa-prototype-api","homepage":null,"size":41,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/smashingboxes/epa-prototype-api/pulls/3"},"html":{"href":"https://github.com/smashingboxes/epa-prototype-api/pull/3"},"issue":{"href":"https://api.github.com/repos/smashingboxes/epa-prototype-api/issues/3"},"comments":{"href":"https://api.github.com/repos/smashingboxes/epa-prototype-api/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/smashingboxes/epa-prototype-api/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/smashingboxes/epa-prototype-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/smashingboxes/epa-prototype-api/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/smashingboxes/epa-prototype-api/statuses/ee365103fe7cf7406768fbb622a43da1c6480203"}}}}