{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/9739","repository_url":"https://api.github.com/repos/ManageIQ/manageiq","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/9739/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/9739/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/9739/events","html_url":"https://github.com/ManageIQ/manageiq/pull/9739","id":164984605,"number":9739,"title":"Combine duplicated stack resources","user":{"login":"bzwei","id":7047579,"avatar_url":"https://avatars.githubusercontent.com/u/7047579?v=3","gravatar_id":"","url":"https://api.github.com/users/bzwei","html_url":"https://github.com/bzwei","followers_url":"https://api.github.com/users/bzwei/followers","following_url":"https://api.github.com/users/bzwei/following{/other_user}","gists_url":"https://api.github.com/users/bzwei/gists{/gist_id}","starred_url":"https://api.github.com/users/bzwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bzwei/subscriptions","organizations_url":"https://api.github.com/users/bzwei/orgs","repos_url":"https://api.github.com/users/bzwei/repos","events_url":"https://api.github.com/users/bzwei/events{/privacy}","received_events_url":"https://api.github.com/users/bzwei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-12T03:05:50Z","updated_at":"2016-07-12T03:25:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/9739","html_url":"https://github.com/ManageIQ/manageiq/pull/9739","diff_url":"https://github.com/ManageIQ/manageiq/pull/9739.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/9739.patch"},"body":"Purpose or Intent\r\n-----------------\r\nFixes #8522\r\nPrevious implementation assumed the `Array#reject!` removes elements after the iteration but it actually removes elements immediately in Ruby 2.2. The assumption is correct for Ruby 2.3. This explains the spec failure reported in #8522.\r\n\r\nAlthough the code works in Ruby 2.3, it is necessary to have a fix for 2.2. The actual fix is simpler and does not depends on the iteration index thus works in both 2.2 and 2.3.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/231927882","html_url":"https://github.com/ManageIQ/manageiq/pull/9739#issuecomment-231927882","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/9739","id":231927882,"user":{"login":"miq-bot","id":7806257,"avatar_url":"https://avatars.githubusercontent.com/u/7806257?v=3","gravatar_id":"","url":"https://api.github.com/users/miq-bot","html_url":"https://github.com/miq-bot","followers_url":"https://api.github.com/users/miq-bot/followers","following_url":"https://api.github.com/users/miq-bot/following{/other_user}","gists_url":"https://api.github.com/users/miq-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/miq-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miq-bot/subscriptions","organizations_url":"https://api.github.com/users/miq-bot/orgs","repos_url":"https://api.github.com/users/miq-bot/repos","events_url":"https://api.github.com/users/miq-bot/events{/privacy}","received_events_url":"https://api.github.com/users/miq-bot/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T03:25:35Z","updated_at":"2016-07-12T03:25:35Z","body":"<rubocop />Checked commit https://github.com/bzwei/manageiq/commit/80830c88bb3796631f9b70504b33d0d676dc5cce with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1\n2 files checked, 0 offenses detected\nEverything looks good. :+1:\n"}}
{"actor":{"display_login":"miq-bot"}}