{"action":"created","issue":{"url":"https://api.github.com/repos/fnichol/chef-rbenv/issues/107","labels_url":"https://api.github.com/repos/fnichol/chef-rbenv/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/fnichol/chef-rbenv/issues/107/comments","events_url":"https://api.github.com/repos/fnichol/chef-rbenv/issues/107/events","html_url":"https://github.com/fnichol/chef-rbenv/issues/107","id":59734968,"number":107,"title":"\"Option name must be a kind of String!\" when installing gems","user":{"login":"leifmadsen","id":768751,"avatar_url":"https://avatars.githubusercontent.com/u/768751?v=3","gravatar_id":"","url":"https://api.github.com/users/leifmadsen","html_url":"https://github.com/leifmadsen","followers_url":"https://api.github.com/users/leifmadsen/followers","following_url":"https://api.github.com/users/leifmadsen/following{/other_user}","gists_url":"https://api.github.com/users/leifmadsen/gists{/gist_id}","starred_url":"https://api.github.com/users/leifmadsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leifmadsen/subscriptions","organizations_url":"https://api.github.com/users/leifmadsen/orgs","repos_url":"https://api.github.com/users/leifmadsen/repos","events_url":"https://api.github.com/users/leifmadsen/events{/privacy}","received_events_url":"https://api.github.com/users/leifmadsen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-04T01:10:09Z","updated_at":"2015-03-14T20:28:26Z","closed_at":null,"body":"When trying to install a gem, I get this error in Vagrant:\r\n\r\n```\r\n==> web: \r\n==> web: ================================================================================\r\n==> web: Error executing action `install` on resource 'rbenv_gem[2.1.5::bundler (vagrant)] (vagrant)'\r\n==> web: ================================================================================\r\n==> web: \r\n==> web: \r\n==> web: Chef::Exceptions::ValidationFailed\r\n==> web: ----------------------------------\r\n==> web: Option name must be a kind of String!  You passed <rbenv_gem[2.1.5::bundler (vagrant)] (vagrant) @name: \"bundler (vagrant)\" @noop: nil @before: nil @params: {} @provider: Chef::Provider::Package::RbenvRubygems @allowed_actions: [:nothing, :install, :upgrade, :remove, :purge] @action: :install @updated: false @updated_by_last_action: false @supports: {} @ignore_failure: false @retries: 0 @retry_delay: 2 @source_line: \"/tmp/vagrant-chef/8641f98f0aa3af7ee221feb019b1a75e/cookbooks/rbenv/recipes/user.rb:63:in `block (3 levels) in from_file'\" @guard_interpreter: nil @default_guard_interpreter: :default @elapsed_time: 0 @sensitive: false @resource_name: :rbenv_gem @declared_type: :rbenv_gem @cookbook_name: :rbenv @recipe_name: \"user\" @package_name: \"bundler\" @user: \"vagrant\" @rbenv_version: \"2.1.5\" @source: nil @gem_binary: \"export RBENV_ROOT=\\\"/home/vagrant/.rbenv\\\" && export PATH=\\\"$RBENV_ROOT/bin:$RBENV_ROOT/shims:$PATH\\\" && export RBENV_VERSION=\\\"2.1.5\\\" && $RBENV_ROOT/shims/gem\" @options: nil @root_path: nil @version: \"1.8.3\" @response_file: nil>.\r\n==> web: \r\n==> web: \r\n==> web: Cookbook Trace:\r\n==> web: ---------------\r\n==> web: /tmp/vagrant-chef/8641f98f0aa3af7ee221feb019b1a75e/cookbooks/rbenv/resources/rehash.rb:29:in `initialize'\r\n==> web: /tmp/vagrant-chef/8641f98f0aa3af7ee221feb019b1a75e/cookbooks/rbenv/libraries/chef_provider_package_rbenvrubygems.rb:86:in `new'\r\n==> web: /tmp/vagrant-chef/8641f98f0aa3af7ee221feb019b1a75e/cookbooks/rbenv/libraries/chef_provider_package_rbenvrubygems.rb:86:in `rehash'\r\n==> web: /tmp/vagrant-chef/8641f98f0aa3af7ee221feb019b1a75e/cookbooks/rbenv/libraries/chef_provider_package_rbenvrubygems.rb:67:in `install_package'\r\n==> web: \r\n==> web: Resource Declaration:\r\n==> web: ---------------------\r\n==> web: # In /tmp/vagrant-chef/8641f98f0aa3af7ee221feb019b1a75e/cookbooks/rbenv/recipes/user.rb\r\n==> web: \r\n==> web:  63:       rbenv_gem \"#{gem['name']} (#{rbenv_user['user']})\" do\r\n==> web:  64:         package_name    gem['name']\r\n==> web:  65:         user            rbenv_user['user']\r\n==> web:  66:         root_path       rbenv_user['root_path'] if rbenv_user['root_path']\r\n==> web:  67:         rbenv_version   rubie\r\n==> web:  68: \r\n==> web:  69:         %w{version action options source}.each do |attr|\r\n==> web:  70:           send(attr, gem[attr]) if gem[attr]\r\n==> web:  71:         end\r\n==> web:  72:       end\r\n==> web:  73:     end\r\n==> web: \r\n==> web: Compiled Resource:\r\n==> web: ------------------\r\n==> web: # Declared in /tmp/vagrant-chef/8641f98f0aa3af7ee221feb019b1a75e/cookbooks/rbenv/recipes/user.rb:63:in `block (3 levels) in from_file'\r\n==> web: \r\n==> web: rbenv_gem(\"bundler (vagrant)\") do\r\n==> web:   provider Chef::Provider::Package::RbenvRubygems\r\n==> web:   action :install\r\n==> web:   retries 0\r\n==> web:   retry_delay 2\r\n==> web:   default_guard_interpreter :default\r\n==> web:   declared_type :rbenv_gem\r\n==> web:   cookbook_name :rbenv\r\n==> web:   recipe_name \"user\"\r\n==> web:   package_name \"bundler\"\r\n==> web:   user \"vagrant\"\r\n==> web:   rbenv_version \"2.1.5\"\r\n==> web:   gem_binary \"export RBENV_ROOT=\\\"/home/vagrant/.rbenv\\\" && export PATH=\\\"$RBENV_ROOT/bin:$RBENV_ROOT/shims:$PATH\\\" && export RBENV_VERSION=\\\"2.1.5\\\" && $RBENV_ROOT/shims/gem\"\r\n==> web:   version \"1.8.3\"\r\n==> web: end\r\n==> web: \r\n==> web: [2015-03-03T20:59:51+00:00] INFO: Running queued delayed notifications before re-raising exception\r\n==> web: [2015-03-03T20:59:51+00:00] ERROR: Converge failed with error message rbenv_gem[2.1.5::bundler (vagrant)] (vagrant) (rbenv::user line 63) had an error: Chef::Exceptions::ValidationFailed: Option name must be a kind of String!  You passed <rbenv_gem[2.1.5::bundler (vagrant)] (vagrant) @name: \"bundler (vagrant)\" @noop: nil @before: nil @params: {} @provider: Chef::Provider::Package::RbenvRubygems @allowed_actions: [:nothing, :install, :upgrade, :remove, :purge] @action: :install @updated: false @updated_by_last_action: false @supports: {} @ignore_failure: false @retries: 0 @retry_delay: 2 @source_line: \"/tmp/vagrant-chef/8641f98f0aa3af7ee221feb019b1a75e/cookbooks/rbenv/recipes/user.rb:63:in `block (3 levels) in from_file'\" @guard_interpreter: nil @default_guard_interpreter: :default @elapsed_time: 0 @sensitive: false @resource_name: :rbenv_gem @declared_type: :rbenv_gem @cookbook_name: :rbenv @recipe_name: \"user\" @package_name: \"bundler\" @user: \"vagrant\" @rbenv_version: \"2.1.5\" @source: nil @gem_binary: \"export RBENV_ROOT=\\\"/home/vagrant/.rbenv\\\" && export PATH=\\\"$RBENV_ROOT/bin:$RBENV_ROOT/shims:$PATH\\\" && export RBENV_VERSION=\\\"2.1.5\\\" && $RBENV_ROOT/shims/gem\" @options: nil @root_path: nil @version: \"1.8.3\" @response_file: nil>.\r\n```\r\n\r\nThe ```Vagrantfile``` contains this section (commented out section of ```gems``` causes above issue; runs clean if commented out):\r\n\r\n```\r\n        web.vm.provision :chef_solo do |chef_web|\r\n            chef_web.cookbooks_path = ['chef/cookbooks', 'chef/site-cookbooks']\r\n            chef_web.add_recipe \"apt\"\r\n            chef_web.add_recipe \"nodejs\"\r\n            chef_web.add_recipe \"ruby_build\"\r\n            chef_web.add_recipe \"rbenv::user\"\r\n            chef_web.add_recipe \"vim\"\r\n\r\n            # Install Ruby 2.1.5 and Bundler\r\n            # Set an empty root password for MySQL to make things simple\r\n            chef_web.json = {\r\n                rbenv: {\r\n                    user_installs: [{\r\n                        user: 'vagrant',\r\n                        rubies: [\"2.1.5\"],\r\n                        global: \"2.1.5\",\r\n#                        gems: {\r\n#                            \"2.1.5\" => [\r\n#                                { 'name' => \"bundler\" },\r\n#                                { 'name' => \"passenger\"}\r\n#                            ]\r\n#                        }\r\n                    }]\r\n                },\r\n                mysql: {\r\n                    server_root_password: ''\r\n                }\r\n            }\r\n        end\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/fnichol/chef-rbenv/issues/comments/80704746","html_url":"https://github.com/fnichol/chef-rbenv/issues/107#issuecomment-80704746","issue_url":"https://api.github.com/repos/fnichol/chef-rbenv/issues/107","id":80704746,"user":{"login":"bplunkert","id":4117754,"avatar_url":"https://avatars.githubusercontent.com/u/4117754?v=3","gravatar_id":"","url":"https://api.github.com/users/bplunkert","html_url":"https://github.com/bplunkert","followers_url":"https://api.github.com/users/bplunkert/followers","following_url":"https://api.github.com/users/bplunkert/following{/other_user}","gists_url":"https://api.github.com/users/bplunkert/gists{/gist_id}","starred_url":"https://api.github.com/users/bplunkert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bplunkert/subscriptions","organizations_url":"https://api.github.com/users/bplunkert/orgs","repos_url":"https://api.github.com/users/bplunkert/repos","events_url":"https://api.github.com/users/bplunkert/events{/privacy}","received_events_url":"https://api.github.com/users/bplunkert/received_events","type":"User","site_admin":false},"created_at":"2015-03-14T20:28:26Z","updated_at":"2015-03-14T20:28:26Z","body":"I am also experiencing this issue with 12.1.1 after applying two of the fixes in open PRs here to [my fork's master branch.](https://github.com/fnichol/chef-rbenv/compare/master...bplunkert:master). "}}