{"action":"created","comment":{"url":"https://api.github.com/repos/ryanflach/fest_suggest/pulls/comments/92778619","pull_request_review_id":13299228,"id":92778619,"diff_hunk":"@@ -1,25 +1,30 @@\n class Festival\n   attr_reader :score,\n               :top_artists,\n-              :rec_artists\n+              :rec_artists,\n+              :festival\n \n-  def initialize(params, score=nil, top_artists=nil, rec_artists=nil)\n+  def initialize(params, data={})\n     @festival = params\n-    @score = score\n-    @top_artists = top_artists\n-    @rec_artists = rec_artists\n+    @score = data[:score]\n+    @top_artists = data[:top_artists]\n+    @rec_artists = data[:rec_artists]\n   end\n \n   def self.top_festivals(all_artists)\n     return [] if all_artists.empty?\n     festivals = FestivalEngine.new(all_artists).top_5_festivals\n     festivals.map do |festival|\n-      Festival.new(\n-        festival,\n-        festival[:score],\n-        festival[:top_artists],\n-        festival[:rec_artists]\n-      )\n+      Rails.cache.fetch(festival[:displayName], expires_in: 1.hour) do\n+        Festival.new(\n+          festival,\n+          {","path":"app/models/festival.rb","position":32,"original_position":32,"commit_id":"78daaba914b2580532314544b83bf1566b6e115a","original_commit_id":"78daaba914b2580532314544b83bf1566b6e115a","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Redundant curly braces around a hash parameter.","created_at":"2016-12-16T09:35:09Z","updated_at":"2016-12-16T09:35:09Z","html_url":"https://github.com/ryanflach/fest_suggest/pull/42#discussion_r92778619","pull_request_url":"https://api.github.com/repos/ryanflach/fest_suggest/pulls/42","_links":{"self":{"href":"https://api.github.com/repos/ryanflach/fest_suggest/pulls/comments/92778619"},"html":{"href":"https://github.com/ryanflach/fest_suggest/pull/42#discussion_r92778619"},"pull_request":{"href":"https://api.github.com/repos/ryanflach/fest_suggest/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/ryanflach/fest_suggest/pulls/42","id":98303243,"html_url":"https://github.com/ryanflach/fest_suggest/pull/42","diff_url":"https://github.com/ryanflach/fest_suggest/pull/42.diff","patch_url":"https://github.com/ryanflach/fest_suggest/pull/42.patch","issue_url":"https://api.github.com/repos/ryanflach/fest_suggest/issues/42","number":42,"state":"open","locked":false,"title":"Close #41. Add playlist functionality.","user":{"login":"ryanflach","id":11306104,"avatar_url":"https://avatars.githubusercontent.com/u/11306104?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanflach","html_url":"https://github.com/ryanflach","followers_url":"https://api.github.com/users/ryanflach/followers","following_url":"https://api.github.com/users/ryanflach/following{/other_user}","gists_url":"https://api.github.com/users/ryanflach/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanflach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanflach/subscriptions","organizations_url":"https://api.github.com/users/ryanflach/orgs","repos_url":"https://api.github.com/users/ryanflach/repos","events_url":"https://api.github.com/users/ryanflach/events{/privacy}","received_events_url":"https://api.github.com/users/ryanflach/received_events","type":"User","site_admin":false},"body":"Allows a user to follow or unfollow a Spotify playlist of up to 100 tracks (each festival artist's [up to 100] top track) for each festival.\r\n\r\nMaintains login state of an additional Spotify account (site admin) for creation of playlists on Spotify.\r\nUtilizes a background worker to add tracks to created playlists. \r\n- Background worker operates in serial and has built-in sleep functions. This is due to rate limitations with the Spotify API.\r\nCreated playlists are tracked in a local database.","created_at":"2016-12-16T09:34:50Z","updated_at":"2016-12-16T09:35:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8ffe2ef505985d3db95d2e744483f03aada51f81","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ryanflach/fest_suggest/pulls/42/commits","review_comments_url":"https://api.github.com/repos/ryanflach/fest_suggest/pulls/42/comments","review_comment_url":"https://api.github.com/repos/ryanflach/fest_suggest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ryanflach/fest_suggest/issues/42/comments","statuses_url":"https://api.github.com/repos/ryanflach/fest_suggest/statuses/78daaba914b2580532314544b83bf1566b6e115a","head":{"label":"ryanflach:playlists","ref":"playlists","sha":"78daaba914b2580532314544b83bf1566b6e115a","user":{"login":"ryanflach","id":11306104,"avatar_url":"https://avatars.githubusercontent.com/u/11306104?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanflach","html_url":"https://github.com/ryanflach","followers_url":"https://api.github.com/users/ryanflach/followers","following_url":"https://api.github.com/users/ryanflach/following{/other_user}","gists_url":"https://api.github.com/users/ryanflach/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanflach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanflach/subscriptions","organizations_url":"https://api.github.com/users/ryanflach/orgs","repos_url":"https://api.github.com/users/ryanflach/repos","events_url":"https://api.github.com/users/ryanflach/events{/privacy}","received_events_url":"https://api.github.com/users/ryanflach/received_events","type":"User","site_admin":false},"repo":{"id":67900733,"name":"fest_suggest","full_name":"ryanflach/fest_suggest","owner":{"login":"ryanflach","id":11306104,"avatar_url":"https://avatars.githubusercontent.com/u/11306104?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanflach","html_url":"https://github.com/ryanflach","followers_url":"https://api.github.com/users/ryanflach/followers","following_url":"https://api.github.com/users/ryanflach/following{/other_user}","gists_url":"https://api.github.com/users/ryanflach/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanflach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanflach/subscriptions","organizations_url":"https://api.github.com/users/ryanflach/orgs","repos_url":"https://api.github.com/users/ryanflach/repos","events_url":"https://api.github.com/users/ryanflach/events{/privacy}","received_events_url":"https://api.github.com/users/ryanflach/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ryanflach/fest_suggest","description":"Curated music festival suggestions for Spotify users","fork":false,"url":"https://api.github.com/repos/ryanflach/fest_suggest","forks_url":"https://api.github.com/repos/ryanflach/fest_suggest/forks","keys_url":"https://api.github.com/repos/ryanflach/fest_suggest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ryanflach/fest_suggest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ryanflach/fest_suggest/teams","hooks_url":"https://api.github.com/repos/ryanflach/fest_suggest/hooks","issue_events_url":"https://api.github.com/repos/ryanflach/fest_suggest/issues/events{/number}","events_url":"https://api.github.com/repos/ryanflach/fest_suggest/events","assignees_url":"https://api.github.com/repos/ryanflach/fest_suggest/assignees{/user}","branches_url":"https://api.github.com/repos/ryanflach/fest_suggest/branches{/branch}","tags_url":"https://api.github.com/repos/ryanflach/fest_suggest/tags","blobs_url":"https://api.github.com/repos/ryanflach/fest_suggest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ryanflach/fest_suggest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ryanflach/fest_suggest/git/refs{/sha}","trees_url":"https://api.github.com/repos/ryanflach/fest_suggest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ryanflach/fest_suggest/statuses/{sha}","languages_url":"https://api.github.com/repos/ryanflach/fest_suggest/languages","stargazers_url":"https://api.github.com/repos/ryanflach/fest_suggest/stargazers","contributors_url":"https://api.github.com/repos/ryanflach/fest_suggest/contributors","subscribers_url":"https://api.github.com/repos/ryanflach/fest_suggest/subscribers","subscription_url":"https://api.github.com/repos/ryanflach/fest_suggest/subscription","commits_url":"https://api.github.com/repos/ryanflach/fest_suggest/commits{/sha}","git_commits_url":"https://api.github.com/repos/ryanflach/fest_suggest/git/commits{/sha}","comments_url":"https://api.github.com/repos/ryanflach/fest_suggest/comments{/number}","issue_comment_url":"https://api.github.com/repos/ryanflach/fest_suggest/issues/comments{/number}","contents_url":"https://api.github.com/repos/ryanflach/fest_suggest/contents/{+path}","compare_url":"https://api.github.com/repos/ryanflach/fest_suggest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ryanflach/fest_suggest/merges","archive_url":"https://api.github.com/repos/ryanflach/fest_suggest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ryanflach/fest_suggest/downloads","issues_url":"https://api.github.com/repos/ryanflach/fest_suggest/issues{/number}","pulls_url":"https://api.github.com/repos/ryanflach/fest_suggest/pulls{/number}","milestones_url":"https://api.github.com/repos/ryanflach/fest_suggest/milestones{/number}","notifications_url":"https://api.github.com/repos/ryanflach/fest_suggest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ryanflach/fest_suggest/labels{/name}","releases_url":"https://api.github.com/repos/ryanflach/fest_suggest/releases{/id}","deployments_url":"https://api.github.com/repos/ryanflach/fest_suggest/deployments","created_at":"2016-09-11T00:04:47Z","updated_at":"2016-11-17T23:54:42Z","pushed_at":"2016-12-16T09:34:50Z","git_url":"git://github.com/ryanflach/fest_suggest.git","ssh_url":"git@github.com:ryanflach/fest_suggest.git","clone_url":"https://github.com/ryanflach/fest_suggest.git","svn_url":"https://github.com/ryanflach/fest_suggest","homepage":"http://www.festsuggest.com","size":3362,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"ryanflach:master","ref":"master","sha":"ad899b67355e1530398aae37c727430f3120bbf9","user":{"login":"ryanflach","id":11306104,"avatar_url":"https://avatars.githubusercontent.com/u/11306104?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanflach","html_url":"https://github.com/ryanflach","followers_url":"https://api.github.com/users/ryanflach/followers","following_url":"https://api.github.com/users/ryanflach/following{/other_user}","gists_url":"https://api.github.com/users/ryanflach/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanflach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanflach/subscriptions","organizations_url":"https://api.github.com/users/ryanflach/orgs","repos_url":"https://api.github.com/users/ryanflach/repos","events_url":"https://api.github.com/users/ryanflach/events{/privacy}","received_events_url":"https://api.github.com/users/ryanflach/received_events","type":"User","site_admin":false},"repo":{"id":67900733,"name":"fest_suggest","full_name":"ryanflach/fest_suggest","owner":{"login":"ryanflach","id":11306104,"avatar_url":"https://avatars.githubusercontent.com/u/11306104?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanflach","html_url":"https://github.com/ryanflach","followers_url":"https://api.github.com/users/ryanflach/followers","following_url":"https://api.github.com/users/ryanflach/following{/other_user}","gists_url":"https://api.github.com/users/ryanflach/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanflach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanflach/subscriptions","organizations_url":"https://api.github.com/users/ryanflach/orgs","repos_url":"https://api.github.com/users/ryanflach/repos","events_url":"https://api.github.com/users/ryanflach/events{/privacy}","received_events_url":"https://api.github.com/users/ryanflach/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ryanflach/fest_suggest","description":"Curated music festival suggestions for Spotify users","fork":false,"url":"https://api.github.com/repos/ryanflach/fest_suggest","forks_url":"https://api.github.com/repos/ryanflach/fest_suggest/forks","keys_url":"https://api.github.com/repos/ryanflach/fest_suggest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ryanflach/fest_suggest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ryanflach/fest_suggest/teams","hooks_url":"https://api.github.com/repos/ryanflach/fest_suggest/hooks","issue_events_url":"https://api.github.com/repos/ryanflach/fest_suggest/issues/events{/number}","events_url":"https://api.github.com/repos/ryanflach/fest_suggest/events","assignees_url":"https://api.github.com/repos/ryanflach/fest_suggest/assignees{/user}","branches_url":"https://api.github.com/repos/ryanflach/fest_suggest/branches{/branch}","tags_url":"https://api.github.com/repos/ryanflach/fest_suggest/tags","blobs_url":"https://api.github.com/repos/ryanflach/fest_suggest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ryanflach/fest_suggest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ryanflach/fest_suggest/git/refs{/sha}","trees_url":"https://api.github.com/repos/ryanflach/fest_suggest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ryanflach/fest_suggest/statuses/{sha}","languages_url":"https://api.github.com/repos/ryanflach/fest_suggest/languages","stargazers_url":"https://api.github.com/repos/ryanflach/fest_suggest/stargazers","contributors_url":"https://api.github.com/repos/ryanflach/fest_suggest/contributors","subscribers_url":"https://api.github.com/repos/ryanflach/fest_suggest/subscribers","subscription_url":"https://api.github.com/repos/ryanflach/fest_suggest/subscription","commits_url":"https://api.github.com/repos/ryanflach/fest_suggest/commits{/sha}","git_commits_url":"https://api.github.com/repos/ryanflach/fest_suggest/git/commits{/sha}","comments_url":"https://api.github.com/repos/ryanflach/fest_suggest/comments{/number}","issue_comment_url":"https://api.github.com/repos/ryanflach/fest_suggest/issues/comments{/number}","contents_url":"https://api.github.com/repos/ryanflach/fest_suggest/contents/{+path}","compare_url":"https://api.github.com/repos/ryanflach/fest_suggest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ryanflach/fest_suggest/merges","archive_url":"https://api.github.com/repos/ryanflach/fest_suggest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ryanflach/fest_suggest/downloads","issues_url":"https://api.github.com/repos/ryanflach/fest_suggest/issues{/number}","pulls_url":"https://api.github.com/repos/ryanflach/fest_suggest/pulls{/number}","milestones_url":"https://api.github.com/repos/ryanflach/fest_suggest/milestones{/number}","notifications_url":"https://api.github.com/repos/ryanflach/fest_suggest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ryanflach/fest_suggest/labels{/name}","releases_url":"https://api.github.com/repos/ryanflach/fest_suggest/releases{/id}","deployments_url":"https://api.github.com/repos/ryanflach/fest_suggest/deployments","created_at":"2016-09-11T00:04:47Z","updated_at":"2016-11-17T23:54:42Z","pushed_at":"2016-12-16T09:34:50Z","git_url":"git://github.com/ryanflach/fest_suggest.git","ssh_url":"git@github.com:ryanflach/fest_suggest.git","clone_url":"https://github.com/ryanflach/fest_suggest.git","svn_url":"https://github.com/ryanflach/fest_suggest","homepage":"http://www.festsuggest.com","size":3362,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ryanflach/fest_suggest/pulls/42"},"html":{"href":"https://github.com/ryanflach/fest_suggest/pull/42"},"issue":{"href":"https://api.github.com/repos/ryanflach/fest_suggest/issues/42"},"comments":{"href":"https://api.github.com/repos/ryanflach/fest_suggest/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/ryanflach/fest_suggest/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/ryanflach/fest_suggest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ryanflach/fest_suggest/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/ryanflach/fest_suggest/statuses/78daaba914b2580532314544b83bf1566b6e115a"}}}}
{"actor":{"display_login":"houndci-bot"}}