slim 4.1.0 → 5.1.0
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/test.yml +51 -0
- data/.yardopts +1 -1
- data/CHANGES +27 -7
- data/Gemfile +15 -41
- data/LICENSE +1 -1
- data/README.jp.md +17 -20
- data/README.md +32 -24
- data/Rakefile +1 -8
- data/doc/jp/translator.md +1 -1
- data/doc/logic_less.md +1 -1
- data/doc/translator.md +1 -1
- data/lib/slim/do_inserter.rb +1 -1
- data/lib/slim/embedded.rb +12 -11
- data/lib/slim/end_inserter.rb +2 -2
- data/lib/slim/engine.rb +2 -0
- data/lib/slim/parser.rb +9 -29
- data/lib/slim/railtie.rb +17 -0
- data/lib/slim/splat/builder.rb +8 -2
- data/lib/slim/splat/filter.rb +2 -1
- data/lib/slim/template.rb +0 -14
- data/lib/slim/version.rb +1 -1
- data/lib/slim.rb +1 -0
- data/slim.gemspec +4 -5
- data/test/core/test_code_evaluation.rb +1 -0
- data/test/core/test_code_structure.rb +17 -0
- data/test/core/test_commands.rb +8 -7
- data/test/core/test_embedded_engines.rb +18 -14
- data/test/core/test_erb_converter.rb +4 -6
- data/test/core/test_html_attributes.rb +8 -0
- data/test/core/test_html_structure.rb +6 -0
- data/test/core/test_pretty.rb +4 -7
- data/test/literate/TESTS.md +72 -22
- data/test/literate/run.rb +2 -2
- data/test/rails/config/application.rb +0 -17
- data/test/rails/test/test_slim.rb +6 -12
- data/test/sinatra/helper.rb +0 -2
- metadata +13 -27
- data/.travis.yml +0 -38
- data/benchmarks/context.rb +0 -11
- data/benchmarks/profile-parser.rb +0 -10
- data/benchmarks/profile-render.rb +0 -12
- data/benchmarks/run-benchmarks.rb +0 -120
- data/benchmarks/run-diffbench.rb +0 -21
- data/benchmarks/view.erb +0 -25
- data/benchmarks/view.haml +0 -20
- data/benchmarks/view.slim +0 -19
- data/test/rails/config/initializers/secret_token.rb +0 -7
data/benchmarks/view.haml
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
!!! html
|
2
|
-
|
3
|
-
%html{ lang: "en" }
|
4
|
-
%head
|
5
|
-
%title Simple Benchmark
|
6
|
-
%meta{ charset: "utf-8" }
|
7
|
-
%meta{ name: "description", content: "This is an example of a meta description." }
|
8
|
-
%body
|
9
|
-
%h1= header
|
10
|
-
- unless item.empty?
|
11
|
-
%ul
|
12
|
-
- for i in item
|
13
|
-
- if i[:current]
|
14
|
-
%li
|
15
|
-
%strong= i[:name]
|
16
|
-
- else
|
17
|
-
%li
|
18
|
-
%a{:href => i[:url]}= i[:name]
|
19
|
-
- else
|
20
|
-
%p The list is empty.
|
data/benchmarks/view.slim
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
doctype html
|
2
|
-
html lang="en"
|
3
|
-
head
|
4
|
-
title Simple Benchmark
|
5
|
-
meta charset="utf-8"
|
6
|
-
meta name="description" content="This is an example of a meta description."
|
7
|
-
body
|
8
|
-
h1 == header
|
9
|
-
- unless item.empty?
|
10
|
-
ul
|
11
|
-
- for i in item
|
12
|
-
- if i[:current]
|
13
|
-
li
|
14
|
-
strong == i[:name]
|
15
|
-
- else
|
16
|
-
li
|
17
|
-
a href==i[:url] == i[:name]
|
18
|
-
- else
|
19
|
-
p The list is empty.
|
@@ -1,7 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Your secret key for verifying the integrity of signed cookies.
|
4
|
-
# If you change this key, all old signed cookies will become invalid!
|
5
|
-
# Make sure the secret is at least 30 characters and all random,
|
6
|
-
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
-
Dummy::Application.config.secret_token = Dummy::Application.config.secret_key_base = '123a9119fb14a410f485f9390286b33f2743b9d348246cf3e4434522078f77c202d7a1fb7e42666dd0844bcb10d0ff3d8b4ee087796269d4c574837948512dbf'
|