Since we agreed to remove ActiveSupport as a dependency I though I would try to get rid of it.
Two instances of AS method usage were easy to remove:
html_safe only makes sense in the context of Rails anyway and can be safely removed. phlex has its own mechanism to sanititze outputs and does not know nor care about ActiveSupport::SafeBuffers.
present? is mostly about syntactic sugar and can also be removed easily.
Sadly, there is a third place where AS methods are being used and where replacing / removing them is not trivial: PhlexUI::Select::Builder uses the String extensions classify, constantize and underscore. I will open a new issue with ideas how to proceed.
Since we agreed to remove ActiveSupport as a dependency I though I would try to get rid of it.
Two instances of AS method usage were easy to remove:
html_safe
only makes sense in the context of Rails anyway and can be safely removed. phlex has its own mechanism to sanititze outputs and does not know nor care aboutActiveSupport::SafeBuffer
s.present?
is mostly about syntactic sugar and can also be removed easily.Sadly, there is a third place where AS methods are being used and where replacing / removing them is not trivial:
PhlexUI::Select::Builder
uses theString
extensionsclassify
,constantize
andunderscore
. I will open a new issue with ideas how to proceed.