tnhu / jekyll-include-absolute-plugin

A Jekyll's liquid tag plugin to include a file from its path relative to Jekyll's source folder
MIT License
22 stars 10 forks source link

Ruby 2.7 warning of using the last argument as keyword parameters #7

Closed Soptq closed 4 years ago

Soptq commented 4 years ago

Line 150 causes a warning of using the last argument as keyword parameters in ruby 2.7 and will raise an error in ruby 3.0.

def read_file(file, context)
    File.read(file, file_read_opts(context))
end

Will make a PR to address this issue very soon.

Soptq commented 4 years ago

https://github.com/tnhu/jekyll-include-absolute-plugin/blob/master/include_absolute.rb#L150

tnhu commented 4 years ago

Thanks @Soptq, I don't actively use Jekyll anymore so won't have an environment to test the change. Could you make sure the proposed change work under Ruby 2.x as well?