liquidum 1.0.17 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/gem-push.yml +11 -0
- data/.gitignore +11 -0
- data/.rubocop.yml +37 -0
- data/.rubocop_todo.yml +39 -0
- data/Gemfile +18 -0
- data/TODO.md +4 -0
- data/app/controllers/liquidum/conversions_controller.rb +30 -0
- data/app/controllers/liquidum/sandbox_controller.rb +43 -12
- data/app/helpers/liquidum/application_helper.rb +5 -0
- data/app/models/liquidum/sandbox.rb +8 -0
- data/app/tables/liquidum/sandboxes_table.rb +22 -0
- data/app/views/liquidum/conversions/index.html.slim +12 -0
- data/app/views/liquidum/sandbox/edit.html.slim +16 -0
- data/app/views/liquidum/sandbox/index.html.slim +2 -13
- data/bin/rails +14 -0
- data/bin/rubocop +29 -0
- data/config/routes.rb +2 -0
- data/db/migrate/20230202121357_create_liquidum_sandboxes.rb +11 -0
- data/lib/liquidum/liquid/filters/max_filter.rb +16 -0
- data/lib/liquidum/liquid/filters/min_filter.rb +16 -0
- data/lib/liquidum/liquid/filters/unescape_html_filter.rb +15 -0
- data/lib/liquidum/version.rb +1 -1
- data/liquidum.gemspec +47 -0
- metadata +29 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9404d7d54b121faac879b08487dec002714680bc3ce0c06ef965436de160397e
|
4
|
+
data.tar.gz: f129a504cd29ada36902b96dd7e3e97094f7c593413d1593a0762c4d1c810f67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd318aba803d49412b67be25cb29fb905d3a562e92796a027f844873f5ea47626f75c0f31098f39f58e12728f41b6f001b8ec122f36b35b850a583ef6c3514bb
|
7
|
+
data.tar.gz: 1bde9499325821bfe9b7a68944fd19ba2c91870277d382748e8e97b1481305bcfe26d880a18d20d244b14f7d89cfed63d3d6322dc9a3dc9a9a1d123ba8d3e48d
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
inherit_from: .rubocop_todo.yml
|
2
|
+
AllCops:
|
3
|
+
TargetRubyVersion: 2.7
|
4
|
+
Exclude:
|
5
|
+
- 'bin/**/*'
|
6
|
+
- 'db/**/*'
|
7
|
+
- 'vagrant/**/*'
|
8
|
+
- 'vendor/**/*'
|
9
|
+
- 'spec/**/*'
|
10
|
+
- 'lib/generators/**/*'
|
11
|
+
- 'node_modules/**/*'
|
12
|
+
- 'test/dummy/**/*'
|
13
|
+
- 'test/dummy/config/**/*'
|
14
|
+
|
15
|
+
Metrics:
|
16
|
+
Enabled: false
|
17
|
+
|
18
|
+
Style/PercentLiteralDelimiters:
|
19
|
+
PreferredDelimiters:
|
20
|
+
'%': '[]'
|
21
|
+
'%i': '[]'
|
22
|
+
'%q': '[]'
|
23
|
+
'%Q': '[]'
|
24
|
+
'%r': '[]'
|
25
|
+
'%s': '[]'
|
26
|
+
'%w': '[]'
|
27
|
+
'%W': '[]'
|
28
|
+
'%x': '[]'
|
29
|
+
|
30
|
+
Style/Documentation:
|
31
|
+
Enabled: false
|
32
|
+
|
33
|
+
Style/GuardClause:
|
34
|
+
Enabled: false
|
35
|
+
|
36
|
+
Style/ClassAndModuleChildren:
|
37
|
+
Enabled: false
|
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2019-01-25 20:13:51 +0100 using RuboCop version 0.63.1.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 1
|
10
|
+
# Cop supports --auto-correct.
|
11
|
+
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
12
|
+
# SupportedStyles: nested, compact
|
13
|
+
Style/ClassAndModuleChildren:
|
14
|
+
Exclude:
|
15
|
+
- "test/liquidum_test.rb"
|
16
|
+
|
17
|
+
# Offense count: 6
|
18
|
+
Style/Documentation:
|
19
|
+
Exclude:
|
20
|
+
- "spec/**/*"
|
21
|
+
- "test/**/*"
|
22
|
+
- "app/controllers/liquidum/application_controller.rb"
|
23
|
+
- "app/helpers/liquidum/application_helper.rb"
|
24
|
+
- "app/mailers/liquidum/application_mailer.rb"
|
25
|
+
- "app/models/liquidum/application_record.rb"
|
26
|
+
- "lib/liquidum.rb"
|
27
|
+
- "lib/liquidum/engine.rb"
|
28
|
+
|
29
|
+
# Offense count: 2
|
30
|
+
Style/MixinUsage:
|
31
|
+
Exclude:
|
32
|
+
- "test/dummy/bin/setup"
|
33
|
+
- "test/dummy/bin/update"
|
34
|
+
|
35
|
+
# Offense count: 27
|
36
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
37
|
+
# URISchemes: http, https
|
38
|
+
Metrics/LineLength:
|
39
|
+
Max: 112
|
data/Gemfile
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
3
|
+
git_source(:entdec) { |repo_name| "git@github.com:entdec/#{repo_name}.git" }
|
4
|
+
|
5
|
+
# Declare your gem's dependencies in liquidum.gemspec.
|
6
|
+
# Bundler will treat runtime dependencies like base dependencies, and
|
7
|
+
# development dependencies will be added by default to the :development group.
|
8
|
+
gemspec
|
9
|
+
|
10
|
+
# Declare any dependencies that are still in development here instead of in
|
11
|
+
# your gemspec. These might include edge Rails or gems from your path or
|
12
|
+
# Git. Remember to move these dependencies to your gemspec before releasing
|
13
|
+
# your gem to rubygems.org.
|
14
|
+
|
15
|
+
# To use a debugger
|
16
|
+
# gem 'byebug', group: [:development, :test]
|
17
|
+
gem 'pry'
|
18
|
+
gem 'solargraph'
|
data/TODO.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
module Liquidum
|
2
|
+
class ConversionsController < ApplicationController
|
3
|
+
before_action :set_objects
|
4
|
+
class Conversion
|
5
|
+
include ActiveModel::Model
|
6
|
+
|
7
|
+
attr_accessor :source, :result
|
8
|
+
end
|
9
|
+
|
10
|
+
def index; end
|
11
|
+
|
12
|
+
def create
|
13
|
+
if params[:json_to_yaml] == 'commit'
|
14
|
+
@conversion.result = YAML.dump(JSON.parse(@conversion.source))
|
15
|
+
elsif params[:yaml_to_json] == 'commit'
|
16
|
+
@conversion.result = JSON.pretty_generate(Psych.load(@conversion.source))
|
17
|
+
elsif params[:slim_to_html] == 'commit'
|
18
|
+
@conversion.result = Slim::Template.new({ pretty: true }) { @conversion.source }.render
|
19
|
+
end
|
20
|
+
|
21
|
+
render :index, status: 302
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
def set_objects
|
27
|
+
@conversion = Conversion.new(source: params.dig(:conversions_controller_conversion, :source) || '')
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -2,27 +2,58 @@ require_dependency 'liquidum/application_controller'
|
|
2
2
|
|
3
3
|
module Liquidum
|
4
4
|
class SandboxController < ApplicationController
|
5
|
-
before_action :set_objects
|
6
|
-
class Sandbox
|
7
|
-
include ActiveModel::Model
|
8
|
-
|
9
|
-
attr_accessor :template, :context, :result
|
10
|
-
end
|
5
|
+
before_action :set_objects, except: %i[index render_only]
|
11
6
|
|
12
7
|
def index; end
|
13
8
|
|
9
|
+
def new
|
10
|
+
render :edit
|
11
|
+
end
|
12
|
+
|
14
13
|
def create
|
15
|
-
|
16
|
-
|
14
|
+
return render_only if params[:render_only] == 'commit'
|
15
|
+
|
16
|
+
@sandbox.update(sandbox_attributes)
|
17
|
+
|
18
|
+
respond_with @sandbox,
|
19
|
+
collection_location: -> { edit_sandbox_path(@sandbox) },
|
20
|
+
action: :edit
|
21
|
+
end
|
22
|
+
|
23
|
+
def edit
|
24
|
+
if @sandbox.valid?
|
25
|
+
@sandbox.result = Liquidum.render(@sandbox.template, assigns: JSON.parse(@sandbox.context))
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def update
|
30
|
+
return render_only if params[:render_only] == 'commit'
|
31
|
+
|
32
|
+
@sandbox.update(sandbox_attributes)
|
33
|
+
|
34
|
+
respond_with @sandbox,
|
35
|
+
collection_location: -> { edit_sandbox_path(@sandbox) },
|
36
|
+
action: :edit
|
17
37
|
end
|
18
38
|
|
19
39
|
private
|
20
40
|
|
41
|
+
def render_only
|
42
|
+
@sandbox.assign_attributes(sandbox_attributes)
|
43
|
+
|
44
|
+
if @sandbox.valid?
|
45
|
+
@sandbox.result = Liquidum.render(@sandbox.template, assigns: JSON.parse(@sandbox.context))
|
46
|
+
end
|
47
|
+
render :edit, status: 302
|
48
|
+
end
|
49
|
+
|
21
50
|
def set_objects
|
22
|
-
@sandbox = Sandbox.
|
23
|
-
|
24
|
-
|
25
|
-
|
51
|
+
@sandbox = Sandbox.find(params[:id]) if params[:id]
|
52
|
+
@sandbox ||= Sandbox.new(template: '{{test}}', context: '{"test": "context"}')
|
53
|
+
end
|
54
|
+
|
55
|
+
def sandbox_attributes
|
56
|
+
params.require(:sandbox).permit(:context, :template, :description)
|
26
57
|
end
|
27
58
|
end
|
28
59
|
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module Liquidum
|
2
|
+
class SandboxesTable < ApplicationTable
|
3
|
+
model Sandbox
|
4
|
+
|
5
|
+
column(:description)
|
6
|
+
column(:template)
|
7
|
+
column(:created_at)
|
8
|
+
column(:updated_at)
|
9
|
+
|
10
|
+
filter(:context) { |value| where('context ilike :query', query: "%#{value}%") }
|
11
|
+
filter(:template) { |value| where('template ilike :query', query: "%#{value}%") }
|
12
|
+
filter(:description) { |value| where('description ilike :query', query: "%#{value}%") }
|
13
|
+
|
14
|
+
row_link { |sandbox| liquidum.edit_sandbox_path(sandbox) }
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
def scope
|
19
|
+
@scope = Sandbox.all
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
= sts.form_for(@conversion, url: conversions_path, data: { turbo: false }) do |f|
|
2
|
+
= sts.card(title: 'Conversions') do |card|
|
3
|
+
- card.action
|
4
|
+
= f.submit "JSON -> YAML", name: "json_to_yaml"
|
5
|
+
= f.submit "YAML -> JSON", name: "yaml_to_json"
|
6
|
+
= f.submit "SLIM -> HTML", name: "slim_to_html"
|
7
|
+
- card.tab :main, padding: true
|
8
|
+
.grid.grid-cols-12.gap-4
|
9
|
+
.col-span-12
|
10
|
+
= f.editor :source, mode: "application/json"
|
11
|
+
.col-span-12
|
12
|
+
= f.editor :result, mode: "text/plain", read_only: true
|
@@ -0,0 +1,16 @@
|
|
1
|
+
= sts.form_for(@sandbox, url: @sandbox.persisted? ? sandbox_path(@sandbox) : sandbox_index_path) do |f|
|
2
|
+
= sts.card(title: 'Liquid Sandbox') do |card|
|
3
|
+
- card.action
|
4
|
+
= f.submit "Save", value: 'save'
|
5
|
+
- card.action
|
6
|
+
= f.submit t('.render'), name: "render_only"
|
7
|
+
- card.tab :main, padding: true
|
8
|
+
.grid.grid-cols-12.gap-4
|
9
|
+
.col-span-12
|
10
|
+
= f.input :description
|
11
|
+
.col-span-12
|
12
|
+
= f.editor :context, mode: "application/json"
|
13
|
+
.col-span-12
|
14
|
+
= f.editor :template, mode: "text/plain"
|
15
|
+
.col-span-12
|
16
|
+
= f.editor :result, mode: "text/plain", read_only: true
|
@@ -1,13 +1,2 @@
|
|
1
|
-
= sts.
|
2
|
-
|
3
|
-
- card.action
|
4
|
-
= f.submit t('.render')
|
5
|
-
= sts.tabs do |t|
|
6
|
-
- t.tab :main
|
7
|
-
.grid.grid-cols-12.gap-4
|
8
|
-
.col-span-12
|
9
|
-
= f.editor :context, mode: "application/json"
|
10
|
-
.col-span-12
|
11
|
-
= f.editor :template, mode: "text/plain"
|
12
|
-
.col-span-12
|
13
|
-
= f.editor :result, mode: "text/plain", read_only: true
|
1
|
+
= sts.card title: t('.sandboxes'), icon: 'fad fa-toolbox', content_padding: false, menu: liquidum_sandboxes_menu do |card|
|
2
|
+
= card.table 'liquidum/sandboxes', parameters: { search_placeholder: "Search By Context, Template and Description" }, custom_views: true
|
data/bin/rails
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails gems
|
3
|
+
# installed from the root of your application.
|
4
|
+
|
5
|
+
ENGINE_ROOT = File.expand_path('..', __dir__)
|
6
|
+
ENGINE_PATH = File.expand_path('../lib/liquidum/engine', __dir__)
|
7
|
+
APP_PATH = File.expand_path('../test/dummy/config/application', __dir__)
|
8
|
+
|
9
|
+
# Set up gems listed in the Gemfile.
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
|
11
|
+
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
|
12
|
+
|
13
|
+
require 'rails/all'
|
14
|
+
require 'rails/engine/commands'
|
data/bin/rubocop
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'rubocop' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
require 'pathname'
|
12
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
13
|
+
Pathname.new(__FILE__).realpath)
|
14
|
+
|
15
|
+
bundle_binstub = File.expand_path('bundle', __dir__)
|
16
|
+
|
17
|
+
if File.file?(bundle_binstub)
|
18
|
+
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
19
|
+
load(bundle_binstub)
|
20
|
+
else
|
21
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
22
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
require 'rubygems'
|
27
|
+
require 'bundler/setup'
|
28
|
+
|
29
|
+
load Gem.bin_path('rubocop', 'rubocop')
|
data/config/routes.rb
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module MaxFilter
|
4
|
+
# Returns the max of the items in the array
|
5
|
+
#
|
6
|
+
# input - the object array
|
7
|
+
#
|
8
|
+
# Returns the max
|
9
|
+
def max(input)
|
10
|
+
return input unless input.respond_to?(:max)
|
11
|
+
|
12
|
+
input = input.values if input.is_a?(Hash) # FIXME
|
13
|
+
input.max
|
14
|
+
end
|
15
|
+
end
|
16
|
+
Liquid::Template.register_filter(MaxFilter)
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module MinFilter
|
4
|
+
# Returns the min of the items in the array
|
5
|
+
#
|
6
|
+
# input - the object array
|
7
|
+
#
|
8
|
+
# Returns the min
|
9
|
+
def min(input)
|
10
|
+
return input unless input.respond_to?(:min)
|
11
|
+
|
12
|
+
input = input.values if input.is_a?(Hash) # FIXME
|
13
|
+
input.min
|
14
|
+
end
|
15
|
+
end
|
16
|
+
Liquid::Template.register_filter(MinFilter)
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module UnescapeHTMLFilter
|
4
|
+
# Unescape HTML tags.
|
5
|
+
#
|
6
|
+
# Example:
|
7
|
+
# <div class="summary">{{payload.test['MESSAGE']['STRING']['$'] | unescape_html}}</div>
|
8
|
+
##
|
9
|
+
def unescape_html(input)
|
10
|
+
return input if input.blank?
|
11
|
+
CGI.unescapeHTML(input)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
Liquid::Template.register_filter(UnescapeHTMLFilter)
|
data/lib/liquidum/version.rb
CHANGED
data/liquidum.gemspec
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
$LOAD_PATH.push File.expand_path('lib', __dir__)
|
4
|
+
|
5
|
+
# Maintain your gem's version:
|
6
|
+
require 'liquidum/version'
|
7
|
+
|
8
|
+
Gem::Specification.new do |spec|
|
9
|
+
spec.name = 'liquidum'
|
10
|
+
spec.version = Liquidum::VERSION
|
11
|
+
|
12
|
+
spec.required_rubygems_version = Gem::Requirement.new('>= 0') if spec.respond_to? :required_rubygems_version=
|
13
|
+
spec.require_paths = ['lib']
|
14
|
+
spec.authors = ['Tom de Grunt']
|
15
|
+
spec.date = '2021-11-18'
|
16
|
+
spec.description = 'Ready made set of tags, parsings and awesomeness'
|
17
|
+
spec.email = ['tom@degrunt.nl']
|
18
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
19
|
+
f.match(%r{^(test|spec|features)/})
|
20
|
+
end
|
21
|
+
spec.homepage = 'https://github.com/entdec/liquidum'
|
22
|
+
spec.licenses = ['MIT']
|
23
|
+
spec.rubygems_version = '3.1.6'
|
24
|
+
spec.summary = 'Liquid templating - on steroids'
|
25
|
+
|
26
|
+
spec.installed_by_version = '3.1.6' if spec.respond_to? :installed_by_version
|
27
|
+
|
28
|
+
spec.specification_version = 4 if spec.respond_to? :specification_version
|
29
|
+
|
30
|
+
spec.add_runtime_dependency('addressable', ['~> 2'])
|
31
|
+
spec.add_runtime_dependency('babel-transpiler', ['~> 0.7'])
|
32
|
+
spec.add_runtime_dependency('i18n', ['~> 1.8'])
|
33
|
+
spec.add_runtime_dependency('kramdown', ['~> 2.1'])
|
34
|
+
spec.add_runtime_dependency('kramdown-parser-gfm', ['~> 1.0'])
|
35
|
+
spec.add_runtime_dependency('liquid', ['= 5.1.0'])
|
36
|
+
spec.add_runtime_dependency('parslet', ['>= 0'])
|
37
|
+
spec.add_runtime_dependency('pg', ['>= 0'])
|
38
|
+
spec.add_runtime_dependency('rails', ['>= 5.2'])
|
39
|
+
spec.add_runtime_dependency('sassc', ['~> 2.2'])
|
40
|
+
spec.add_runtime_dependency "slim-rails", "~> 3.6"
|
41
|
+
spec.add_development_dependency('auxilium', ['~>3'])
|
42
|
+
spec.add_development_dependency('minitest', ['~> 5.11'])
|
43
|
+
spec.add_development_dependency('minitest-reporters', ['~> 1.1'])
|
44
|
+
spec.add_development_dependency('pry', ['> 0'])
|
45
|
+
spec.add_development_dependency('pry-rails', ['~> 0.3'])
|
46
|
+
spec.add_development_dependency('rubocop', ['~> 1'])
|
47
|
+
end
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: liquidum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom de Grunt
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2021-11-18 00:00:00.000000000 Z
|
@@ -156,28 +156,28 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 3.
|
159
|
+
version: '3.6'
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 3.
|
166
|
+
version: '3.6'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: auxilium
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: '
|
173
|
+
version: '3'
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: '
|
180
|
+
version: '3'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: minitest
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -210,14 +210,14 @@ dependencies:
|
|
210
210
|
name: pry
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
|
-
- - "
|
213
|
+
- - ">"
|
214
214
|
- !ruby/object:Gem::Version
|
215
215
|
version: '0'
|
216
216
|
type: :development
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
|
-
- - "
|
220
|
+
- - ">"
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: '0'
|
223
223
|
- !ruby/object:Gem::Dependency
|
@@ -255,17 +255,31 @@ executables: []
|
|
255
255
|
extensions: []
|
256
256
|
extra_rdoc_files: []
|
257
257
|
files:
|
258
|
+
- ".github/workflows/gem-push.yml"
|
259
|
+
- ".gitignore"
|
260
|
+
- ".rubocop.yml"
|
261
|
+
- ".rubocop_todo.yml"
|
262
|
+
- Gemfile
|
258
263
|
- MIT-LICENSE
|
259
264
|
- README.md
|
260
265
|
- Rakefile
|
266
|
+
- TODO.md
|
261
267
|
- app/controllers/liquidum/application_controller.rb
|
262
268
|
- app/controllers/liquidum/completions_controller.rb
|
269
|
+
- app/controllers/liquidum/conversions_controller.rb
|
263
270
|
- app/controllers/liquidum/sandbox_controller.rb
|
264
271
|
- app/helpers/liquidum/application_helper.rb
|
265
272
|
- app/jobs/liquidum/application_job.rb
|
266
273
|
- app/models/concerns/liquidum/to_liquid.rb
|
274
|
+
- app/models/liquidum/sandbox.rb
|
275
|
+
- app/tables/liquidum/sandboxes_table.rb
|
276
|
+
- app/views/liquidum/conversions/index.html.slim
|
277
|
+
- app/views/liquidum/sandbox/edit.html.slim
|
267
278
|
- app/views/liquidum/sandbox/index.html.slim
|
279
|
+
- bin/rails
|
280
|
+
- bin/rubocop
|
268
281
|
- config/routes.rb
|
282
|
+
- db/migrate/20230202121357_create_liquidum_sandboxes.rb
|
269
283
|
- lib/liquidum.rb
|
270
284
|
- lib/liquidum/configuration.rb
|
271
285
|
- lib/liquidum/drop.rb
|
@@ -278,11 +292,14 @@ files:
|
|
278
292
|
- lib/liquidum/liquid/filters/encode_filter.rb
|
279
293
|
- lib/liquidum/liquid/filters/format_filter.rb
|
280
294
|
- lib/liquidum/liquid/filters/localize_filter.rb
|
295
|
+
- lib/liquidum/liquid/filters/max_filter.rb
|
296
|
+
- lib/liquidum/liquid/filters/min_filter.rb
|
281
297
|
- lib/liquidum/liquid/filters/strptime_filter.rb
|
282
298
|
- lib/liquidum/liquid/filters/sum_filter.rb
|
283
299
|
- lib/liquidum/liquid/filters/timezone_filter.rb
|
284
300
|
- lib/liquidum/liquid/filters/to_filter.rb
|
285
301
|
- lib/liquidum/liquid/filters/translate_filter.rb
|
302
|
+
- lib/liquidum/liquid/filters/unescape_html_filter.rb
|
286
303
|
- lib/liquidum/liquid/filters/where_exp_filter.rb
|
287
304
|
- lib/liquidum/liquid/liquid_helpers.rb
|
288
305
|
- lib/liquidum/liquid/liquid_template_extensions.rb
|
@@ -292,11 +309,12 @@ files:
|
|
292
309
|
- lib/liquidum/liquid/tags/helper_tag.rb
|
293
310
|
- lib/liquidum/liquid/tags/render_tag.rb
|
294
311
|
- lib/liquidum/version.rb
|
312
|
+
- liquidum.gemspec
|
295
313
|
homepage: https://github.com/entdec/liquidum
|
296
314
|
licenses:
|
297
315
|
- MIT
|
298
316
|
metadata: {}
|
299
|
-
post_install_message:
|
317
|
+
post_install_message:
|
300
318
|
rdoc_options: []
|
301
319
|
require_paths:
|
302
320
|
- lib
|
@@ -311,8 +329,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
311
329
|
- !ruby/object:Gem::Version
|
312
330
|
version: '0'
|
313
331
|
requirements: []
|
314
|
-
rubygems_version: 3.
|
315
|
-
signing_key:
|
332
|
+
rubygems_version: 3.4.10
|
333
|
+
signing_key:
|
316
334
|
specification_version: 4
|
317
335
|
summary: Liquid templating - on steroids
|
318
336
|
test_files: []
|