mirror of
https://github.com/kemko/liquid.git
synced 2026-01-03 00:35:40 +03:00
Compare commits
6 Commits
register-f
...
latest-bun
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
622b8011db | ||
|
|
021bafd260 | ||
|
|
04c393ab07 | ||
|
|
9a7778e52c | ||
|
|
dde00253f9 | ||
|
|
18d1644980 |
@@ -19,6 +19,10 @@ matrix:
|
||||
allow_failures:
|
||||
- rvm: jruby-head
|
||||
|
||||
before_install:
|
||||
- gem update --system
|
||||
- gem install bundler --pre
|
||||
|
||||
script: "bundle exec rake"
|
||||
|
||||
notifications:
|
||||
|
||||
@@ -25,7 +25,7 @@ module Liquid
|
||||
|
||||
# Catch all for the method
|
||||
def liquid_method_missing(method)
|
||||
return nil unless @context.strict_variables
|
||||
return nil unless @context && @context.strict_variables
|
||||
raise Liquid::UndefinedDropMethod, "undefined method #{method}"
|
||||
end
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ module Liquid
|
||||
File.join(root, @pattern % template_path)
|
||||
end
|
||||
|
||||
raise FileSystemError, "Illegal template path '#{File.expand_path(full_path)}'" unless File.expand_path(full_path) =~ /\A#{File.expand_path(root)}/
|
||||
raise FileSystemError, "Illegal template path '#{File.expand_path(full_path)}'" unless File.expand_path(full_path).start_with?(File.expand_path(root))
|
||||
|
||||
full_path
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user