From c5425342f1856ae483a786cd773d02fcb9b1a8d7 Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Tue, 25 Sep 2012 09:23:22 +0200 Subject: [PATCH] version 0.5.3 --- CHANGES | 5 +++++ lib/temple/mixins/options.rb | 4 +++- lib/temple/version.rb | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 0c0dd36..47c153c 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,8 @@ +0.5.3 + + * Only print an message if invalid options are passed to Temple filters or engines + since many libraries seem to use Slim and Temple in an incorrect way + 0.5.2 * Fix the :outvar problem really diff --git a/lib/temple/mixins/options.rb b/lib/temple/mixins/options.rb index 0608424..120bdb5 100644 --- a/lib/temple/mixins/options.rb +++ b/lib/temple/mixins/options.rb @@ -13,7 +13,9 @@ def default_options if deprecated puts "Option #{key.inspect} is deprecated by #{self}" else - raise ArgumentError, "Option #{key.inspect} is not supported by #{self}" + # TODO: This will raise an exception in the future! + # raise ArgumentError, "Option #{key.inspect} is not supported by #{self}" + puts "Option #{key.inspect} is not supported by #{self}" end end end diff --git a/lib/temple/version.rb b/lib/temple/version.rb index 8185c26..42097ed 100644 --- a/lib/temple/version.rb +++ b/lib/temple/version.rb @@ -1,3 +1,3 @@ module Temple - VERSION = '0.5.2' + VERSION = '0.5.3' end