haml 5.0.4 → 5.2.2
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 +36 -0
- data/.gitignore +1 -0
- data/.yardopts +1 -2
- data/CHANGELOG.md +51 -1
- data/Gemfile +2 -5
- data/MIT-LICENSE +2 -2
- data/README.md +22 -17
- data/REFERENCE.md +46 -12
- data/Rakefile +2 -13
- data/benchmark.rb +13 -9
- data/haml.gemspec +10 -3
- data/lib/haml/attribute_builder.rb +59 -3
- data/lib/haml/attribute_compiler.rb +46 -32
- data/lib/haml/attribute_parser.rb +3 -1
- data/lib/haml/buffer.rb +1 -54
- data/lib/haml/compiler.rb +23 -24
- data/lib/haml/engine.rb +12 -3
- data/lib/haml/error.rb +25 -24
- data/lib/haml/escapable.rb +39 -11
- data/lib/haml/exec.rb +5 -6
- data/lib/haml/filters.rb +12 -11
- data/lib/haml/generator.rb +2 -1
- data/lib/haml/helpers/action_view_extensions.rb +1 -0
- data/lib/haml/helpers/action_view_mods.rb +4 -1
- data/lib/haml/helpers/action_view_xss_mods.rb +1 -0
- data/lib/haml/helpers/safe_erubi_template.rb +1 -0
- data/lib/haml/helpers/safe_erubis_template.rb +1 -0
- data/lib/haml/helpers/xss_mods.rb +7 -3
- data/lib/haml/helpers.rb +15 -13
- data/lib/haml/options.rb +36 -36
- data/lib/haml/parser.rb +52 -22
- data/lib/haml/plugin.rb +25 -5
- data/lib/haml/railtie.rb +9 -4
- data/lib/haml/sass_rails_filter.rb +1 -0
- data/lib/haml/template/options.rb +1 -0
- data/lib/haml/template.rb +1 -0
- data/lib/haml/temple_engine.rb +13 -10
- data/lib/haml/temple_line_counter.rb +1 -0
- data/lib/haml/util.rb +6 -6
- data/lib/haml/version.rb +2 -1
- data/lib/haml.rb +1 -0
- metadata +29 -10
- data/.travis.yml +0 -54
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Natalie Weizenbaum
|
8
8
|
- Hampton Catlin
|
9
9
|
- Norman Clarke
|
10
10
|
- Akira Matsuda
|
11
|
-
autorequire:
|
11
|
+
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2021-07-27 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: temple
|
@@ -97,6 +97,20 @@ dependencies:
|
|
97
97
|
- - ">="
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: '0'
|
100
|
+
- !ruby/object:Gem::Dependency
|
101
|
+
name: simplecov
|
102
|
+
requirement: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '0'
|
107
|
+
type: :development
|
108
|
+
prerelease: false
|
109
|
+
version_requirements: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '0'
|
100
114
|
description: |
|
101
115
|
Haml (HTML Abstraction Markup Language) is a layer on top of HTML or XML that's
|
102
116
|
designed to express the structure of documents in a non-repetitive, elegant, and
|
@@ -105,15 +119,15 @@ description: |
|
|
105
119
|
but it can function as a stand-alone templating engine.
|
106
120
|
email:
|
107
121
|
- haml@googlegroups.com
|
108
|
-
-
|
122
|
+
- ronnie@dio.jp
|
109
123
|
executables:
|
110
124
|
- haml
|
111
125
|
extensions: []
|
112
126
|
extra_rdoc_files: []
|
113
127
|
files:
|
128
|
+
- ".github/workflows/test.yml"
|
114
129
|
- ".gitignore"
|
115
130
|
- ".gitmodules"
|
116
|
-
- ".travis.yml"
|
117
131
|
- ".yardopts"
|
118
132
|
- CHANGELOG.md
|
119
133
|
- FAQ.md
|
@@ -163,8 +177,14 @@ files:
|
|
163
177
|
homepage: http://haml.info/
|
164
178
|
licenses:
|
165
179
|
- MIT
|
166
|
-
metadata:
|
167
|
-
|
180
|
+
metadata:
|
181
|
+
bug_tracker_uri: https://github.com/haml/haml/issues
|
182
|
+
changelog_uri: https://github.com/haml/haml/blob/main/CHANGELOG.md
|
183
|
+
documentation_uri: http://haml.info/docs.html
|
184
|
+
homepage_uri: http://haml.info
|
185
|
+
mailing_list_uri: https://groups.google.com/forum/?fromgroups#!forum/haml
|
186
|
+
source_code_uri: https://github.com/haml/haml
|
187
|
+
post_install_message:
|
168
188
|
rdoc_options: []
|
169
189
|
require_paths:
|
170
190
|
- lib
|
@@ -179,9 +199,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
179
199
|
- !ruby/object:Gem::Version
|
180
200
|
version: '0'
|
181
201
|
requirements: []
|
182
|
-
|
183
|
-
|
184
|
-
signing_key:
|
202
|
+
rubygems_version: 3.1.4
|
203
|
+
signing_key:
|
185
204
|
specification_version: 4
|
186
205
|
summary: An elegant, structured (X)HTML/XML templating engine.
|
187
206
|
test_files: []
|
data/.travis.yml
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
dist: trusty
|
3
|
-
language: ruby
|
4
|
-
cache: bundler
|
5
|
-
rvm:
|
6
|
-
- ruby-head
|
7
|
-
- 2.4.2
|
8
|
-
- 2.3.5
|
9
|
-
- 2.2.8
|
10
|
-
- 2.1.10
|
11
|
-
- 2.0.0
|
12
|
-
- jruby-9.1.12.0
|
13
|
-
- rbx-3
|
14
|
-
gemfile:
|
15
|
-
- test/gemfiles/Gemfile.rails-5.1.x
|
16
|
-
- test/gemfiles/Gemfile.rails-5.0.x
|
17
|
-
- test/gemfiles/Gemfile.rails-5.0.x.erubi
|
18
|
-
- test/gemfiles/Gemfile.rails-4.2.x
|
19
|
-
- test/gemfiles/Gemfile.rails-4.1.x
|
20
|
-
- test/gemfiles/Gemfile.rails-4.0.x
|
21
|
-
matrix:
|
22
|
-
exclude:
|
23
|
-
- rvm: 2.0.0
|
24
|
-
gemfile: test/gemfiles/Gemfile.rails-5.1.x
|
25
|
-
- rvm: 2.1.10
|
26
|
-
gemfile: test/gemfiles/Gemfile.rails-5.1.x
|
27
|
-
- rvm: 2.0.0
|
28
|
-
gemfile: test/gemfiles/Gemfile.rails-5.0.x
|
29
|
-
- rvm: 2.0.0
|
30
|
-
gemfile: test/gemfiles/Gemfile.rails-5.0.x.erubi
|
31
|
-
- rvm: 2.1.10
|
32
|
-
gemfile: test/gemfiles/Gemfile.rails-5.0.x
|
33
|
-
- rvm: 2.1.10
|
34
|
-
gemfile: test/gemfiles/Gemfile.rails-5.0.x.erubi
|
35
|
-
- rvm: 2.4.2
|
36
|
-
gemfile: test/gemfiles/Gemfile.rails-4.0.x
|
37
|
-
- rvm: 2.4.2
|
38
|
-
gemfile: test/gemfiles/Gemfile.rails-4.1.x
|
39
|
-
- rvm: 2.4.2
|
40
|
-
gemfile: test/gemfiles/Gemfile.rails-4.2.x
|
41
|
-
- rvm: ruby-head
|
42
|
-
gemfile: test/gemfiles/Gemfile.rails-4.0.x
|
43
|
-
- rvm: ruby-head
|
44
|
-
gemfile: test/gemfiles/Gemfile.rails-4.1.x
|
45
|
-
- rvm: ruby-head
|
46
|
-
gemfile: test/gemfiles/Gemfile.rails-4.2.x
|
47
|
-
include:
|
48
|
-
- rvm: 2.4.2
|
49
|
-
gemfile: test/gemfiles/Gemfile.rails-edge
|
50
|
-
allow_failures:
|
51
|
-
- rvm: rbx-3
|
52
|
-
- gemfile: test/gemfiles/Gemfile.rails-edge
|
53
|
-
fast_finish: true
|
54
|
-
script: "bundle exec rake submodules test"
|