From 85428a0f713f27281c72f0df60316c62115cf76b Mon Sep 17 00:00:00 2001 From: maierru Date: Mon, 8 Jun 2020 18:27:28 +0300 Subject: [PATCH 1/2] fresh kaminari with security fix --- .gitignore | 3 ++- lib/liquid-rails/version.rb | 2 +- liquid-rails.gemspec | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 739c3d6..49d01da 100644 --- a/.gitignore +++ b/.gitignore @@ -21,4 +21,5 @@ tmp *.a mkmf.log spec/dummy/log/* -gemfiles/*.lock \ No newline at end of file +gemfiles/*.lock +.idea/ diff --git a/lib/liquid-rails/version.rb b/lib/liquid-rails/version.rb index 0fd093a..feb729f 100644 --- a/lib/liquid-rails/version.rb +++ b/lib/liquid-rails/version.rb @@ -1,5 +1,5 @@ module Liquid module Rails - VERSION = '0.2.0' + VERSION = '0.2.1' end end diff --git a/liquid-rails.gemspec b/liquid-rails.gemspec index a1cc18e..ecc0054 100644 --- a/liquid-rails.gemspec +++ b/liquid-rails.gemspec @@ -22,5 +22,5 @@ Gem::Specification.new do |spec| spec.add_dependency 'rails', ">= 5.0.6" spec.add_dependency 'liquid', '~> 4.0.0' - spec.add_dependency 'kaminari', '~> 1.1.1' + spec.add_dependency 'kaminari', '~> 1.2.1' end From f40da9a09f393726181747492f5bc389e456955f Mon Sep 17 00:00:00 2001 From: maierru Date: Fri, 31 Jul 2020 14:53:06 +0300 Subject: [PATCH 2/2] deprecation warning --- lib/liquid-rails/template_handler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/liquid-rails/template_handler.rb b/lib/liquid-rails/template_handler.rb index f91bcf8..22a0522 100644 --- a/lib/liquid-rails/template_handler.rb +++ b/lib/liquid-rails/template_handler.rb @@ -2,7 +2,7 @@ module Liquid module Rails class TemplateHandler - def self.call(template) + def self.call(template, _source=nil) "Liquid::Rails::TemplateHandler.new(self).render(#{template.source.inspect}, local_assigns)" end