mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-19 17:16:22 +00:00
Merge branch 'issue-14352' of https://0xacab.org/sutty/sutty into 17.3.alpine.panel.sutty.nl
This commit is contained in:
commit
1ea0dae4d2
2 changed files with 6 additions and 2 deletions
|
@ -608,6 +608,7 @@ DEPENDENCIES
|
||||||
jbuilder (~> 2.5)
|
jbuilder (~> 2.5)
|
||||||
jekyll (~> 4.2.0)
|
jekyll (~> 4.2.0)
|
||||||
jekyll-commonmark (~> 1.4.0)
|
jekyll-commonmark (~> 1.4.0)
|
||||||
|
jekyll-data
|
||||||
jekyll-images
|
jekyll-images
|
||||||
jekyll-include-cache
|
jekyll-include-cache
|
||||||
kaminari
|
kaminari
|
||||||
|
|
|
@ -602,10 +602,13 @@ class Site < ApplicationRecord
|
||||||
@gemfile_lock_path ||= File.join(path, 'Gemfile.lock')
|
@gemfile_lock_path ||= File.join(path, 'Gemfile.lock')
|
||||||
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?
|
||||||
return false unless gemfile_lock_path?
|
return false unless gemfile_lock_path?
|
||||||
|
|
||||||
updated_at < File.mtime(gemfile_lock_path)
|
[updated_at, File.mtime(File.join(path, 'Gemfile'))].any? do |compare|
|
||||||
|
compare < File.mtime(gemfile_lock_path)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue