{"action":"created","comment":{"url":"https://api.github.com/repos/chef/chef/pulls/comments/33530134","id":33530134,"diff_hunk":"@@ -43,7 +43,7 @@\n     end\n \n     it \"updates the evil laugh, even in why-run mode\" do\n-      new_resource.run_action(new_resource.action)\n+      Array(new_resource.action).each {|action| new_resource.run_action(action) }","path":"spec/functional/provider/whyrun_safe_ruby_block_spec.rb","position":5,"original_position":5,"commit_id":"b819b6431396138288aa457b4819c4aba304863e","original_commit_id":"b819b6431396138288aa457b4819c4aba304863e","user":{"login":"coderanger","id":128243,"avatar_url":"https://avatars.githubusercontent.com/u/128243?v=3","gravatar_id":"","url":"https://api.github.com/users/coderanger","html_url":"https://github.com/coderanger","followers_url":"https://api.github.com/users/coderanger/followers","following_url":"https://api.github.com/users/coderanger/following{/other_user}","gists_url":"https://api.github.com/users/coderanger/gists{/gist_id}","starred_url":"https://api.github.com/users/coderanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderanger/subscriptions","organizations_url":"https://api.github.com/users/coderanger/orgs","repos_url":"https://api.github.com/users/coderanger/repos","events_url":"https://api.github.com/users/coderanger/events{/privacy}","received_events_url":"https://api.github.com/users/coderanger/received_events","type":"User","site_admin":false},"body":"As before, there are a lot of ways this can still be a non-array when interacting with legacy code, forcing the up-cast is safest.","created_at":"2015-06-30T00:31:45Z","updated_at":"2015-06-30T00:31:45Z","html_url":"https://github.com/chef/chef/pull/3605#discussion_r33530134","pull_request_url":"https://api.github.com/repos/chef/chef/pulls/3605","_links":{"self":{"href":"https://api.github.com/repos/chef/chef/pulls/comments/33530134"},"html":{"href":"https://github.com/chef/chef/pull/3605#discussion_r33530134"},"pull_request":{"href":"https://api.github.com/repos/chef/chef/pulls/3605"}}},"pull_request":{"url":"https://api.github.com/repos/chef/chef/pulls/3605","id":38693579,"html_url":"https://github.com/chef/chef/pull/3605","diff_url":"https://github.com/chef/chef/pull/3605.diff","patch_url":"https://github.com/chef/chef/pull/3605.patch","issue_url":"https://api.github.com/repos/chef/chef/issues/3605","number":3605,"state":"open","locked":false,"title":"Rework Resource#action to match the 12.3 API.","user":{"login":"coderanger","id":128243,"avatar_url":"https://avatars.githubusercontent.com/u/128243?v=3","gravatar_id":"","url":"https://api.github.com/users/coderanger","html_url":"https://github.com/coderanger","followers_url":"https://api.github.com/users/coderanger/followers","following_url":"https://api.github.com/users/coderanger/following{/other_user}","gists_url":"https://api.github.com/users/coderanger/gists{/gist_id}","starred_url":"https://api.github.com/users/coderanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderanger/subscriptions","organizations_url":"https://api.github.com/users/coderanger/orgs","repos_url":"https://api.github.com/users/coderanger/repos","events_url":"https://api.github.com/users/coderanger/events{/privacy}","received_events_url":"https://api.github.com/users/coderanger/received_events","type":"User","site_admin":false},"body":"This means it always coerces to an Array. Also ensures that\r\nResource#action= goes through the same validation.\r\n\r\nFixes #3604.","created_at":"2015-06-26T22:02:06Z","updated_at":"2015-06-30T00:31:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aeb6fb499b539415d7e8f229a90f2c62c37c64a8","assignee":{"login":"stevendanna","id":852371,"avatar_url":"https://avatars.githubusercontent.com/u/852371?v=3","gravatar_id":"","url":"https://api.github.com/users/stevendanna","html_url":"https://github.com/stevendanna","followers_url":"https://api.github.com/users/stevendanna/followers","following_url":"https://api.github.com/users/stevendanna/following{/other_user}","gists_url":"https://api.github.com/users/stevendanna/gists{/gist_id}","starred_url":"https://api.github.com/users/stevendanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevendanna/subscriptions","organizations_url":"https://api.github.com/users/stevendanna/orgs","repos_url":"https://api.github.com/users/stevendanna/repos","events_url":"https://api.github.com/users/stevendanna/events{/privacy}","received_events_url":"https://api.github.com/users/stevendanna/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/chef/chef/pulls/3605/commits","review_comments_url":"https://api.github.com/repos/chef/chef/pulls/3605/comments","review_comment_url":"https://api.github.com/repos/chef/chef/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chef/chef/issues/3605/comments","statuses_url":"https://api.github.com/repos/chef/chef/statuses/b819b6431396138288aa457b4819c4aba304863e","head":{"label":"coderanger:action","ref":"action","sha":"b819b6431396138288aa457b4819c4aba304863e","user":{"login":"coderanger","id":128243,"avatar_url":"https://avatars.githubusercontent.com/u/128243?v=3","gravatar_id":"","url":"https://api.github.com/users/coderanger","html_url":"https://github.com/coderanger","followers_url":"https://api.github.com/users/coderanger/followers","following_url":"https://api.github.com/users/coderanger/following{/other_user}","gists_url":"https://api.github.com/users/coderanger/gists{/gist_id}","starred_url":"https://api.github.com/users/coderanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderanger/subscriptions","organizations_url":"https://api.github.com/users/coderanger/orgs","repos_url":"https://api.github.com/users/coderanger/repos","events_url":"https://api.github.com/users/coderanger/events{/privacy}","received_events_url":"https://api.github.com/users/coderanger/received_events","type":"User","site_admin":false},"repo":{"id":12743312,"name":"chef","full_name":"coderanger/chef","owner":{"login":"coderanger","id":128243,"avatar_url":"https://avatars.githubusercontent.com/u/128243?v=3","gravatar_id":"","url":"https://api.github.com/users/coderanger","html_url":"https://github.com/coderanger","followers_url":"https://api.github.com/users/coderanger/followers","following_url":"https://api.github.com/users/coderanger/following{/other_user}","gists_url":"https://api.github.com/users/coderanger/gists{/gist_id}","starred_url":"https://api.github.com/users/coderanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderanger/subscriptions","organizations_url":"https://api.github.com/users/coderanger/orgs","repos_url":"https://api.github.com/users/coderanger/repos","events_url":"https://api.github.com/users/coderanger/events{/privacy}","received_events_url":"https://api.github.com/users/coderanger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/coderanger/chef","description":"A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.","fork":true,"url":"https://api.github.com/repos/coderanger/chef","forks_url":"https://api.github.com/repos/coderanger/chef/forks","keys_url":"https://api.github.com/repos/coderanger/chef/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coderanger/chef/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coderanger/chef/teams","hooks_url":"https://api.github.com/repos/coderanger/chef/hooks","issue_events_url":"https://api.github.com/repos/coderanger/chef/issues/events{/number}","events_url":"https://api.github.com/repos/coderanger/chef/events","assignees_url":"https://api.github.com/repos/coderanger/chef/assignees{/user}","branches_url":"https://api.github.com/repos/coderanger/chef/branches{/branch}","tags_url":"https://api.github.com/repos/coderanger/chef/tags","blobs_url":"https://api.github.com/repos/coderanger/chef/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coderanger/chef/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coderanger/chef/git/refs{/sha}","trees_url":"https://api.github.com/repos/coderanger/chef/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coderanger/chef/statuses/{sha}","languages_url":"https://api.github.com/repos/coderanger/chef/languages","stargazers_url":"https://api.github.com/repos/coderanger/chef/stargazers","contributors_url":"https://api.github.com/repos/coderanger/chef/contributors","subscribers_url":"https://api.github.com/repos/coderanger/chef/subscribers","subscription_url":"https://api.github.com/repos/coderanger/chef/subscription","commits_url":"https://api.github.com/repos/coderanger/chef/commits{/sha}","git_commits_url":"https://api.github.com/repos/coderanger/chef/git/commits{/sha}","comments_url":"https://api.github.com/repos/coderanger/chef/comments{/number}","issue_comment_url":"https://api.github.com/repos/coderanger/chef/issues/comments{/number}","contents_url":"https://api.github.com/repos/coderanger/chef/contents/{+path}","compare_url":"https://api.github.com/repos/coderanger/chef/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coderanger/chef/merges","archive_url":"https://api.github.com/repos/coderanger/chef/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coderanger/chef/downloads","issues_url":"https://api.github.com/repos/coderanger/chef/issues{/number}","pulls_url":"https://api.github.com/repos/coderanger/chef/pulls{/number}","milestones_url":"https://api.github.com/repos/coderanger/chef/milestones{/number}","notifications_url":"https://api.github.com/repos/coderanger/chef/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coderanger/chef/labels{/name}","releases_url":"https://api.github.com/repos/coderanger/chef/releases{/id}","created_at":"2013-09-10T23:48:03Z","updated_at":"2014-08-19T21:47:07Z","pushed_at":"2015-06-29T23:40:45Z","git_url":"git://github.com/coderanger/chef.git","ssh_url":"git@github.com:coderanger/chef.git","clone_url":"https://github.com/coderanger/chef.git","svn_url":"https://github.com/coderanger/chef","homepage":"http://www.opscode.com/chef/","size":80680,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"chef:master","ref":"master","sha":"1289161dd9b53a5e3c9f6c601f6552c452a3e5ad","user":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"repo":{"id":108278,"name":"chef","full_name":"chef/chef","owner":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chef/chef","description":"A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.","fork":false,"url":"https://api.github.com/repos/chef/chef","forks_url":"https://api.github.com/repos/chef/chef/forks","keys_url":"https://api.github.com/repos/chef/chef/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chef/chef/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chef/chef/teams","hooks_url":"https://api.github.com/repos/chef/chef/hooks","issue_events_url":"https://api.github.com/repos/chef/chef/issues/events{/number}","events_url":"https://api.github.com/repos/chef/chef/events","assignees_url":"https://api.github.com/repos/chef/chef/assignees{/user}","branches_url":"https://api.github.com/repos/chef/chef/branches{/branch}","tags_url":"https://api.github.com/repos/chef/chef/tags","blobs_url":"https://api.github.com/repos/chef/chef/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chef/chef/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chef/chef/git/refs{/sha}","trees_url":"https://api.github.com/repos/chef/chef/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chef/chef/statuses/{sha}","languages_url":"https://api.github.com/repos/chef/chef/languages","stargazers_url":"https://api.github.com/repos/chef/chef/stargazers","contributors_url":"https://api.github.com/repos/chef/chef/contributors","subscribers_url":"https://api.github.com/repos/chef/chef/subscribers","subscription_url":"https://api.github.com/repos/chef/chef/subscription","commits_url":"https://api.github.com/repos/chef/chef/commits{/sha}","git_commits_url":"https://api.github.com/repos/chef/chef/git/commits{/sha}","comments_url":"https://api.github.com/repos/chef/chef/comments{/number}","issue_comment_url":"https://api.github.com/repos/chef/chef/issues/comments{/number}","contents_url":"https://api.github.com/repos/chef/chef/contents/{+path}","compare_url":"https://api.github.com/repos/chef/chef/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chef/chef/merges","archive_url":"https://api.github.com/repos/chef/chef/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chef/chef/downloads","issues_url":"https://api.github.com/repos/chef/chef/issues{/number}","pulls_url":"https://api.github.com/repos/chef/chef/pulls{/number}","milestones_url":"https://api.github.com/repos/chef/chef/milestones{/number}","notifications_url":"https://api.github.com/repos/chef/chef/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chef/chef/labels{/name}","releases_url":"https://api.github.com/repos/chef/chef/releases{/id}","created_at":"2009-01-15T20:40:48Z","updated_at":"2015-06-29T14:01:04Z","pushed_at":"2015-06-29T23:40:48Z","git_url":"git://github.com/chef/chef.git","ssh_url":"git@github.com:chef/chef.git","clone_url":"https://github.com/chef/chef.git","svn_url":"https://github.com/chef/chef","homepage":"http://www.chef.io/chef/","size":167636,"stargazers_count":3711,"watchers_count":3711,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1507,"mirror_url":null,"open_issues_count":448,"forks":1507,"open_issues":448,"watchers":3711,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chef/chef/pulls/3605"},"html":{"href":"https://github.com/chef/chef/pull/3605"},"issue":{"href":"https://api.github.com/repos/chef/chef/issues/3605"},"comments":{"href":"https://api.github.com/repos/chef/chef/issues/3605/comments"},"review_comments":{"href":"https://api.github.com/repos/chef/chef/pulls/3605/comments"},"review_comment":{"href":"https://api.github.com/repos/chef/chef/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chef/chef/pulls/3605/commits"},"statuses":{"href":"https://api.github.com/repos/chef/chef/statuses/b819b6431396138288aa457b4819c4aba304863e"}}}}