Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/liquid/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def evaluate(object)
object.respond_to?(:evaluate) ? object.evaluate(self) : object
end

# Fetches an object starting at the local scope and then moving up the hierachy
# Fetches an object starting at the local scope and then moving up the hierarchy
def find_variable(key, raise_on_not_found: true)
# This was changed from find() to find_index() because this is a very hot
# path and find_index() is optimized in MRI to reduce object allocation
Expand Down
2 changes: 1 addition & 1 deletion lib/liquid/expression.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Expression
'blank' => '',
'empty' => '',
# in lax mode, minus sign can be a VariableLookup
# For simplicity and performace, we treat it like a literal
# For simplicity and performance, we treat it like a literal
'-' => VariableLookup.parse("-", nil).freeze,
}.freeze

Expand Down
4 changes: 2 additions & 2 deletions test/integration/trim_mode_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ def test_standard_tags
assert_template_result(expected, text)
end

# Make sure the trim isn't too agressive
# Make sure the trim isn't too aggressive
def test_no_trim_output
text = '<p>{{- \'John\' -}}</p>'
expected = '<p>John</p>'
assert_template_result(expected, text)
end

# Make sure the trim isn't too agressive
# Make sure the trim isn't too aggressive
def test_no_trim_tags
text = '<p>{%- if true -%}yes{%- endif -%}</p>'
expected = '<p>yes</p>'
Expand Down
4 changes: 2 additions & 2 deletions test/unit/strainer_template_unit_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module PrivateMethodOverrideFilter
private

def public_filter
"overriden as private"
"overridden as private"
end
end

Expand All @@ -39,7 +39,7 @@ module ProtectedMethodOverrideFilter
protected

def public_filter
"overriden as protected"
"overridden as protected"
end
end

Expand Down
Loading