mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 21:41:41 +00:00
fix: el gemfile.lock puede modificar luego del gemfile #14352
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
ae72297adf
commit
d674ccdb0f
1 changed files with 5 additions and 2 deletions
|
@ -583,8 +583,11 @@ class Site < ApplicationRecord
|
|||
updated_at < File.mtime(File.join(path, 'Gemfile'))
|
||||
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?
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue