mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
Remove active_support from the development dependancies.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
require 'rubygems'
|
||||
require 'benchmark'
|
||||
require File.dirname(__FILE__) + '/theme_runner'
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user