Class: Dependabot::RustToolchain::FileUpdater

Inherits:
FileUpdaters::Base
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dependabot/rust_toolchain/file_updater.rb

Instance Method Summary collapse

Instance Method Details

#updated_dependency_filesObject



17
18
19
20
21
22
23
24
25
26
27
# File 'lib/dependabot/rust_toolchain/file_updater.rb', line 17

def updated_dependency_files
  updated_files = []

  rust_toolchain_files.each do |file|
    next unless file_changed?(file)

    updated_files << updated_file(file: file, content: update(T.must(file.content)))
  end

  updated_files
end