From f5502e8152db5befebf644c5152cb4bbc65fe32e Mon Sep 17 00:00:00 2001 From: Dylan Thacker-Smith Date: Fri, 11 Apr 2014 14:26:40 -0400 Subject: [PATCH] Remove active_support from the development dependancies. --- liquid.gemspec | 1 - performance/benchmark.rb | 1 - performance/shopify/database.rb | 2 +- performance/shopify/json_filter.rb | 4 +++- performance/theme_runner.rb | 8 -------- 5 files changed, 4 insertions(+), 12 deletions(-) diff --git a/liquid.gemspec b/liquid.gemspec index 297a716..1b0ae1e 100644 --- a/liquid.gemspec +++ b/liquid.gemspec @@ -26,5 +26,4 @@ Gem::Specification.new do |s| s.add_development_dependency 'stackprof' if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.1.0") s.add_development_dependency 'rake' - s.add_development_dependency 'activesupport' end diff --git a/performance/benchmark.rb b/performance/benchmark.rb index d206c65..cc990eb 100644 --- a/performance/benchmark.rb +++ b/performance/benchmark.rb @@ -1,4 +1,3 @@ -require 'rubygems' require 'benchmark' require File.dirname(__FILE__) + '/theme_runner' diff --git a/performance/shopify/database.rb b/performance/shopify/database.rb index 22413be..147ca05 100644 --- a/performance/shopify/database.rb +++ b/performance/shopify/database.rb @@ -1,6 +1,6 @@ require 'yaml' -module Database +module Database # Load the standard vision toolkit database and re-arrage it to be simply exportable # to liquid as assigns. All this is based on Shopify def self.tables diff --git a/performance/shopify/json_filter.rb b/performance/shopify/json_filter.rb index 1ce7328..d3f02d0 100644 --- a/performance/shopify/json_filter.rb +++ b/performance/shopify/json_filter.rb @@ -1,7 +1,9 @@ +require 'json' + module JsonFilter def json(object) - object.reject {|k,v| k == "collections" }.to_json + JSON.dump(object.reject {|k,v| k == "collections" }) end end diff --git a/performance/theme_runner.rb b/performance/theme_runner.rb index ab8274e..9b7a19a 100644 --- a/performance/theme_runner.rb +++ b/performance/theme_runner.rb @@ -6,11 +6,6 @@ # Shopify which is likely the biggest user of liquid in the world which something to the tune of several # million Template#render calls a day. -require 'rubygems' -require 'active_support' -require 'active_support/json' -require 'yaml' -require 'digest/md5' require File.dirname(__FILE__) + '/shopify/liquid' require File.dirname(__FILE__) + '/shopify/database.rb' @@ -81,6 +76,3 @@ class ThemeRunner end end end - - -