17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/dependabot/vcpkg/file_updater.rb', line 17
def updated_dependency_files
updated_files = []
vcpkg_json_file = get_original_file(VCPKG_JSON_FILENAME)
if vcpkg_json_file&.then { |file| file_changed?(file) }
updated_files << updated_file(
file: vcpkg_json_file,
content: updated_vcpkg_json_content(vcpkg_json_file)
)
end
vcpkg_config_file = get_original_file(VCPKG_CONFIGURATION_JSON_FILENAME)
if vcpkg_config_file&.then { |file| file_changed?(file) }
updated_files << updated_file(
file: vcpkg_config_file,
content: updated_vcpkg_configuration_json_content(vcpkg_config_file)
)
end
updated_files
end
|