    # File lib/chef/provider/package/rubygems.rb, line 263
              def gem_platforms
                if self.class.platform_cache.key?(@gem_binary_location)
                  self.class.platform_cache[@gem_binary_location]
                else
                  gem_environment = shell_out!("#{@gem_binary_location} env").stdout
                  if jruby = gem_environment[JRUBY_PLATFORM]
                    self.class.platform_cache[@gem_binary_location] = ['ruby', Gem::Platform.new(jruby)]
                  else
                    self.class.platform_cache[@gem_binary_location] = Gem.platforms
                  end
                end
              end