File tree Expand file tree Collapse file tree 4 files changed +1161
-1077
lines changed
Expand file tree Collapse file tree 4 files changed +1161
-1077
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,35 @@ def to_s
138138 end
139139end
140140
141+ class StringDrop < Liquid ::Drop
142+ include Comparable
143+
144+ def initialize ( value )
145+ super ( )
146+ @value = value
147+ end
148+
149+ def to_liquid_value
150+ @value
151+ end
152+
153+ def to_s
154+ @value
155+ end
156+
157+ def to_str
158+ @value
159+ end
160+
161+ def inspect
162+ "#<StringDrop @value=#{ @value . inspect } >"
163+ end
164+
165+ def <=>( other )
166+ to_liquid_value <=> Liquid ::Utils . to_liquid_value ( other )
167+ end
168+ end
169+
141170class ErrorDrop < Liquid ::Drop
142171 def standard_error
143172 raise Liquid ::StandardError , "standard error"
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
2525 end
2626 end
2727
28- spec . add_dependency ( "liquid" , "~> 5.8.2 " )
28+ spec . add_dependency ( "liquid" , "~> 5.8.6 " )
2929 spec . add_dependency ( "super_diff" , "~> 0.12.1" )
3030 spec . add_dependency ( "timecop" )
3131 spec . add_dependency ( "tty-box" )
You can’t perform that action at this time.
0 commit comments