lib/bundler/alive/doctor.rb in bundler-alive-0.1.6 vs lib/bundler/alive/doctor.rb in bundler-alive-0.1.7

- old
+ new

@@ -1,25 +1,25 @@ # frozen_string_literal: true require "bundler" -require "octokit" module Bundler module Alive # # Diagnoses a `Gemfile.lock` # class Doctor # # A new instance of Doctor # - # @param [String] lock_file lock file of gem - # @param [String] config_file config file - # @param [Array<String>] ignore_gems ignore gems + # @param [String] :lock_file # lock file of gem + # @param [String] :config_file # config file + # @param [Array<String>] :ignore_gems ignore gems + # @param [Boolean] :follow_redirect Follow redirect URL in gems # - def initialize(lock_file, config_file, ignore_gems) + def initialize(lock_file:, config_file:, ignore_gems:, follow_redirect: false) @lock_file = lock_file - @gem_client = Client::GemsApiClient.new(config_file) + @gem_client = Client::GemsApiClient.new(config_path: config_file, follow_redirect: follow_redirect) @ignore_gems = ignore_gems @result = nil @rate_limit_exceeded = false @error_messages = [] end