1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

Fix syntax for Ruby 2.4.0 (#2038)

* use stabby lambda syntax to please ruby 2.4.0

* add ruby 2.4.0 to travis config
This commit is contained in:
Manuel Meurer 2017-01-11 18:11:57 +01:00 committed by Thomas Reynolds
parent bf43ff4b6a
commit eddb12488f
2 changed files with 3 additions and 2 deletions

View file

@ -5,6 +5,7 @@ before_script:
- bundle update
rvm:
- ruby-head
- 2.4.0
- 2.3.1
- 2.2.4
os:

View file

@ -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.'