Class: Dependabot::Sbt::FileUpdater
- Inherits:
-
FileUpdaters::Base
- Object
- FileUpdaters::Base
- Dependabot::Sbt::FileUpdater
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/sbt/file_updater.rb,
lib/dependabot/sbt/file_updater/property_value_updater.rb
Defined Under Namespace
Classes: PropertyValueUpdater
Constant Summary collapse
- SCALA_VERSION_DECL =
Regex matching scalaVersion declarations in all supported SBT syntaxes
T.let( "(?:ThisBuild\\s*/\\s*)?" \ "(?:scalaVersion\\s+in\\s+ThisBuild|scalaVersion)" \ '\\s*:=\\s*"', String )
Instance Method Summary collapse
Instance Method Details
#updated_dependency_files ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/dependabot/sbt/file_updater.rb', line 26 def updated_dependency_files updated_files = T.let(dependency_files.dup, T::Array[Dependabot::DependencyFile]) dependencies.each do |dependency| updated_files = update_files_for_dependency( original_files: updated_files, dependency: dependency ) end updated_files.reject! { |f| dependency_files.include?(f) } raise "No files changed!" if updated_files.none? updated_files end |