diff --git a/.travis.yml b/.travis.yml index ac5a7f06..fe5acedf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ before_script: - bundle update rvm: - ruby-head + - 2.4.0 - 2.3.1 - 2.2.4 os: diff --git a/middleman-core/lib/middleman-core/application.rb b/middleman-core/lib/middleman-core/application.rb index 52b31c92..2013ec9a 100644 --- a/middleman-core/lib/middleman-core/application.rb +++ b/middleman-core/lib/middleman-core/application.rb @@ -191,9 +191,9 @@ module Middleman ignored end, - layout: proc do |file, app| + layout: ->(file, app) { file[:relative_path].to_s.start_with?('layout.', app.config[:layouts_dir] + '/') - end + } }, 'Callbacks that can exclude paths from the sitemap' define_setting :skip_build_clean, proc { |p| [/\.git/].any? { |r| p =~ r } }, 'Whether some paths should not be removed during a clean build.'