-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade liquid #1982
Upgrade liquid #1982
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thumbs up, guys! 😄
app/models/agents/sleep_agent.rb
Outdated
@@ -0,0 +1,21 @@ | |||
module Agents | |||
class SleepAgent < Agent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dsander did you mean to include this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woups, no 😄
Makes sense to me, although I haven't dug into the Liquid BlockBody class. Anything else we should test? |
@cantino The test coverage looks pretty good for the @knu Could you give it a second look? I more or less followed the changes the liquid team did to their own tags but noticed the node_list method was not called before and isn't now. Do you remember why it was added? |
👍 |
@dsander The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@@ -386,21 +386,27 @@ def initialize(tag_name, markup, tokens) | |||
else | |||
raise Liquid::SyntaxError, 'Syntax Error in regex_replace tag - Valid syntax: regex_replace pattern in' | |||
end | |||
@nodelist = @in_block = [] | |||
@with_block = nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better not to remove this initialization, because it was there to avoid a runtime warning about reference to an uninitialized instance variable when $VERBOSE
is turned on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, I did not know about those warnings.
@knu Thanks for the clarification and review! |
Thanks @dsander! |
Fixes #1981