5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 00:41:42 +00:00

fix: el gemfile.lock puede modificar luego del gemfile #14352
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2023-09-25 14:52:59 -03:00
parent ae72297adf
commit d674ccdb0f
No known key found for this signature in database

View file

@ -583,8 +583,11 @@ class Site < ApplicationRecord
updated_at < File.mtime(File.join(path, 'Gemfile')) updated_at < File.mtime(File.join(path, 'Gemfile'))
end end
# Detecta si el Gemfile.lock fue modificado # Detecta si el Gemfile.lock fue modificado con respecto al sitio o al
# Gemfile.
def gemfile_lock_updated? def gemfile_lock_updated?
updated_at < File.mtime(File.join(path, 'Gemfile.lock')) [updated_at, File.mtime(File.join(path, 'Gemfile'))].any? do |compare|
compare < File.mtime(File.join(path, 'Gemfile.lock'))
end
end end
end end