{"action":"created","issue":{"url":"https://api.github.com/repos/acrmp/foodcritic/issues/339","labels_url":"https://api.github.com/repos/acrmp/foodcritic/issues/339/labels{/name}","comments_url":"https://api.github.com/repos/acrmp/foodcritic/issues/339/comments","events_url":"https://api.github.com/repos/acrmp/foodcritic/issues/339/events","html_url":"https://github.com/acrmp/foodcritic/issues/339","id":91919098,"number":339,"title":"FC009 chef_gem compile_time","user":{"login":"bwvoss","id":718272,"avatar_url":"https://avatars.githubusercontent.com/u/718272?v=3","gravatar_id":"","url":"https://api.github.com/users/bwvoss","html_url":"https://github.com/bwvoss","followers_url":"https://api.github.com/users/bwvoss/followers","following_url":"https://api.github.com/users/bwvoss/following{/other_user}","gists_url":"https://api.github.com/users/bwvoss/gists{/gist_id}","starred_url":"https://api.github.com/users/bwvoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwvoss/subscriptions","organizations_url":"https://api.github.com/users/bwvoss/orgs","repos_url":"https://api.github.com/users/bwvoss/repos","events_url":"https://api.github.com/users/bwvoss/events{/privacy}","received_events_url":"https://api.github.com/users/bwvoss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-29T21:53:56Z","updated_at":"2015-07-16T21:55:14Z","closed_at":null,"body":"A few months back, [this PR was merged](https://github.com/acrmp/foodcritic/issues/307) to resolve FC009s for chef_gem compile_time use.  It worked, but not for the backwards compatibility case of using chef-sugar.  From the [chef docs](https://docs.chef.io/resource_chef_gem.html) (in the Attributes section):\r\n\r\n```ruby\r\nchef_gem 'gem_name' do\r\n  compile_time true if Chef::Resource::ChefGem.instance_methods(false).include?(:compile_time)\r\nend\r\n```\r\n\r\nIncluding that will result in a FC009."},"comment":{"url":"https://api.github.com/repos/acrmp/foodcritic/issues/comments/122115119","html_url":"https://github.com/acrmp/foodcritic/issues/339#issuecomment-122115119","issue_url":"https://api.github.com/repos/acrmp/foodcritic/issues/339","id":122115119,"user":{"login":"alvaromorales","id":2496170,"avatar_url":"https://avatars.githubusercontent.com/u/2496170?v=3","gravatar_id":"","url":"https://api.github.com/users/alvaromorales","html_url":"https://github.com/alvaromorales","followers_url":"https://api.github.com/users/alvaromorales/followers","following_url":"https://api.github.com/users/alvaromorales/following{/other_user}","gists_url":"https://api.github.com/users/alvaromorales/gists{/gist_id}","starred_url":"https://api.github.com/users/alvaromorales/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvaromorales/subscriptions","organizations_url":"https://api.github.com/users/alvaromorales/orgs","repos_url":"https://api.github.com/users/alvaromorales/repos","events_url":"https://api.github.com/users/alvaromorales/events{/privacy}","received_events_url":"https://api.github.com/users/alvaromorales/received_events","type":"User","site_admin":false},"created_at":"2015-07-16T21:55:14Z","updated_at":"2015-07-16T21:55:14Z","body":"I'm running foodcritic `4.0.0` and chef `12.4.1` and still hitting the issue. I'm not using chef-sugar.\r\n\r\nThese trigger FC009:\r\n\r\n```ruby\r\nchef_gem 'foo' do\r\n  compile_time false if respond_to?(:compile_time)\r\nend\r\n```\r\n\r\n```ruby\r\nchef_gem 'foo' do\r\n  compile_time false\r\nend\r\n```\r\n\r\nI tried downgrading to chef `12.1.1` and running `foodcritic --chef-version 12.1.1` but got the same error."}}