From 1fc16569220a6f9ef2e9f49752d4a12627208ad0 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Mon, 27 Jul 2015 11:57:04 +0900 Subject: [PATCH] Update Liquid to 3.0.6 and revert the monkey patch cf. Shopify/liquid#632, Shopify/liquid#633 This reverts commit 5271f173eafdc301f4d9d92e4b6c165f636401cf. --- Gemfile.lock | 2 +- app/concerns/liquid_interpolatable.rb | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index af192e2556..1130f966f8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -235,7 +235,7 @@ GEM launchy (2.4.2) addressable (~> 2.3) libv8 (3.16.14.7) - liquid (3.0.3) + liquid (3.0.6) listen (2.7.9) celluloid (>= 0.15.2) rb-fsevent (>= 0.9.3) diff --git a/app/concerns/liquid_interpolatable.rb b/app/concerns/liquid_interpolatable.rb index ee9ef7864f..c4920481ef 100644 --- a/app/concerns/liquid_interpolatable.rb +++ b/app/concerns/liquid_interpolatable.rb @@ -218,12 +218,6 @@ def regex_replace_first(input, regex, replacement = nil) input.to_s.sub(Regexp.new(regex), unescape_replacement(replacement.to_s)) end - def date(input, format) - super - rescue ArgumentError - input - end - private def logger