lib/angelo/tilt/erb.rb in angelo-0.3.2 vs lib/angelo/tilt/erb.rb in angelo-0.3.3
- old
+ new
@@ -11,9 +11,14 @@
ACCEPT_ALL = '*/*'
# hrm, sneaky
#
def self.included base
+
+ # TODO: remove at 0.4
+ warn "[DEPRECATED] Angelo::Tilt::ERB will be included by default in angelo >= 0.4"
+ raise "Angelo requires Tilt >= 2.0, you have #{::Tilt::VERSION}" unless ::Tilt::VERSION.to_i >= 2
+
base.extend ClassMethods
end
module ClassMethods