{"action":"created","issue":{"url":"https://api.github.com/repos/sous-chefs/ruby_rbenv/issues/161","repository_url":"https://api.github.com/repos/sous-chefs/ruby_rbenv","labels_url":"https://api.github.com/repos/sous-chefs/ruby_rbenv/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/sous-chefs/ruby_rbenv/issues/161/comments","events_url":"https://api.github.com/repos/sous-chefs/ruby_rbenv/issues/161/events","html_url":"https://github.com/sous-chefs/ruby_rbenv/issues/161","id":221942548,"node_id":"MDU6SXNzdWUyMjE5NDI1NDg=","number":161,"title":"Getting \"undefined method `include_default_source' for Custom resource ruby_rbenv_gem from cookbook ruby_rbenv\" on chef 13.0.118","user":{"login":"potato20","id":15012117,"node_id":"MDQ6VXNlcjE1MDEyMTE3","avatar_url":"https://avatars2.githubusercontent.com/u/15012117?v=4","gravatar_id":"","url":"https://api.github.com/users/potato20","html_url":"https://github.com/potato20","followers_url":"https://api.github.com/users/potato20/followers","following_url":"https://api.github.com/users/potato20/following{/other_user}","gists_url":"https://api.github.com/users/potato20/gists{/gist_id}","starred_url":"https://api.github.com/users/potato20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/potato20/subscriptions","organizations_url":"https://api.github.com/users/potato20/orgs","repos_url":"https://api.github.com/users/potato20/repos","events_url":"https://api.github.com/users/potato20/events{/privacy}","received_events_url":"https://api.github.com/users/potato20/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-04-15T11:16:40Z","updated_at":"2018-06-23T16:38:31Z","closed_at":"2017-06-23T16:03:33Z","author_association":"NONE","body":"### Cookbook version\r\n1.2.0\r\n\r\n### Chef-client version\r\nchef-client 13.0.118 in the vm. locally using chefdk 1.3.40, ran the cookbook using kitchen.\r\n\r\n### Platform Details\r\nubuntu 16.04\r\n\r\n### Scenario:\r\nJust trying to install a rbenv gem\r\n\r\n### Steps to Reproduce:\r\n\r\nAttributes:\r\n```\r\nnode.default['rbenv']['rubies'] = [ \"2.4.0\" ]\r\nnode.default['rbenv']['global'] = \"2.4.0\"\r\n```\r\n\r\nRecipe:\r\n\r\n```\r\nruby_version = '2.4.0'\r\n\r\ninclude_recipe 'ruby_build'\r\ninclude_recipe 'ruby_rbenv::system'\r\n\r\n%w(bundler rake).each do |gem_name|\r\n  rbenv_gem gem_name do\r\n    rbenv_version ruby_version\r\n  end\r\nend\r\n```\r\n\r\n\r\n\r\n### Expected Result:\r\nEverything works great, bundler and rake gems install on ruby 2.4.0, system-wide.\r\n\r\n### Actual Result:\r\nsystem rbenv and ruby 2.4.0 works fine but the `rbenv_gem` lwrp fails:\r\n\r\n```\r\nRecipe: ror::default\r\n         * [2.4.0::bundler] (system) action install\r\n           \r\n           ================================================================================\r\n           Error executing action `install` on resource '[2.4.0::bundler] (system)'\r\n           ================================================================================\r\n           \r\n           NoMethodError\r\n           -------------\r\n           undefined method `include_default_source' for Custom resource ruby_rbenv_gem from cookbook ruby_rbenv\r\n           \r\n           Resource Declaration:\r\n           ---------------------\r\n           # In /tmp/kitchen/cache/cookbooks/ror/recipes/default.rb\r\n           \r\n            19:   rbenv_gem gem_name do\r\n            20:     rbenv_version ruby_version\r\n            21:   end\r\n            22: end\r\n           \r\n           Compiled Resource:\r\n           ------------------\r\n           # Declared in /tmp/kitchen/cache/cookbooks/ror/recipes/default.rb:19:in `block in from_file'\r\n           \r\n           ruby_rbenv_gem(\"bundler\") do\r\n             provider Chef::Provider::Package::RbenvRubygems\r\n             action [:install]\r\n             default_guard_interpreter :default\r\n             declared_type :rbenv_gem\r\n             cookbook_name \"ror\"\r\n             recipe_name \"default\"\r\n             rbenv_version \"2.4.0\"\r\n             package_name \"bundler\"\r\n             gem_binary \"export RBENV_ROOT=\\\"/usr/local/rbenv\\\" && export PATH=\\\"$RBENV_ROOT/bin:$RBENV_ROOT/shims:$PATH\\\" && export RBENV_VERSION=\\\"2.4.0\\\" && $RBENV_ROOT/shims/gem\"\r\n           end\r\n           \r\n           System Info:\r\n           ------------\r\n           chef_version=13.0.118\r\n           platform=ubuntu\r\n           platform_version=16.04\r\n           ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]\r\n           program_name=chef-client worker: ppid=1725;start=10:47:16;\r\n           executable=/opt/chef/bin/chef-client\r\n```"},"comment":{"url":"https://api.github.com/repos/sous-chefs/ruby_rbenv/issues/comments/399691639","html_url":"https://github.com/sous-chefs/ruby_rbenv/issues/161#issuecomment-399691639","issue_url":"https://api.github.com/repos/sous-chefs/ruby_rbenv/issues/161","id":399691639,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTY5MTYzOQ==","user":{"login":"lock[bot]","id":33595554,"node_id":"MDM6Qm90MzM1OTU1NTQ=","avatar_url":"https://avatars1.githubusercontent.com/in/6672?v=4","gravatar_id":"","url":"https://api.github.com/users/lock%5Bbot%5D","html_url":"https://github.com/apps/lock","followers_url":"https://api.github.com/users/lock%5Bbot%5D/followers","following_url":"https://api.github.com/users/lock%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/lock%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/lock%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lock%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/lock%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/lock%5Bbot%5D/repos","events_url":"https://api.github.com/users/lock%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/lock%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-06-23T16:38:31Z","updated_at":"2018-06-23T16:38:31Z","author_association":"NONE","body":"This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.\n"}}
{"actor":{"display_login":"lock"}}