Class: Dependabot::Bun::FileUpdater
- Inherits:
-
FileUpdaters::Base
- Object
- FileUpdaters::Base
- Dependabot::Bun::FileUpdater
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/bun/file_updater.rb,
lib/dependabot/bun/file_updater/npmrc_builder.rb,
lib/dependabot/bun/file_updater/bun_lockfile_updater.rb,
lib/dependabot/bun/file_updater/package_json_updater.rb,
lib/dependabot/bun/file_updater/package_json_preparer.rb
Defined Under Namespace
Classes: BunLockfileUpdater, NoChangeError, NpmrcBuilder, PackageJsonPreparer, PackageJsonUpdater
Instance Method Summary collapse
Instance Method Details
#updated_dependency_files ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/dependabot/bun/file_updater.rb', line 36 def updated_dependency_files updated_files = T.let([], T::Array[DependencyFile]) updated_files += updated_manifest_files updated_files += updated_lockfiles if updated_files.none? raise NoChangeError.new( message: "No files were updated!", error_context: error_context(updated_files: updated_files) ) end sorted_updated_files = updated_files.sort_by(&:name) if sorted_updated_files == filtered_dependency_files.sort_by(&:name) raise NoChangeError.new( message: "Updated files are unchanged!", error_context: error_context(updated_files: updated_files) ) end vendor_updated_files(updated_files) end |