Class: Dependabot::Deno::FileUpdater
- Inherits:
-
FileUpdaters::Base
- Object
- FileUpdaters::Base
- Dependabot::Deno::FileUpdater
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/deno/file_updater.rb
Constant Summary collapse
- MANIFEST_FILENAMES =
T.let(%w(deno.json deno.jsonc).freeze, T::Array[String])
Instance Method Summary collapse
Instance Method Details
#updated_dependency_files ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/dependabot/deno/file_updater.rb', line 15 def updated_dependency_files updated_files = [] dependency_files.each do |file| next unless MANIFEST_FILENAMES.include?(file.name) new_content = update_manifest_content(file) next if new_content == file.content updated_files << updated_file(file: file, content: new_content) end updated_files end |