    # File lib/chef/provider/package/rubygems.rb, line 398
            def install_package(name, version)
              if source_is_remote? && @new_resource.gem_binary.nil?
                if @new_resource.options.nil?
                  @gem_env.install(gem_dependency, :sources => gem_sources)
                elsif @new_resource.options.kind_of?(Hash)
                  options = @new_resource.options
                  options[:sources] = gem_sources
                  @gem_env.install(gem_dependency, options)
                else
                  install_via_gem_command(name, version)
                end
              elsif @new_resource.gem_binary.nil?
                @gem_env.install(@new_resource.source)
              else
                install_via_gem_command(name,version)
              end
              true
            end