haml 6.0.8-java → 6.0.9-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01a86624d7d9895e643653201ad1037e85e87d9548a23afb43513753064b9f58
4
- data.tar.gz: e8ea717795a781b4a4553b37727eb741844c69a80b67a5bff7ad478d068fdcfe
3
+ metadata.gz: cf3024cbd0b46fe984ac29b35e28ee37e11e6a2796c7546f752a3a7d57d2cdce
4
+ data.tar.gz: 6370e9ca1ccf508cd364f20d0a14fe04fe10b0348f7632d8ac576c935e253fea
5
5
  SHA512:
6
- metadata.gz: eb1195a84e4a2469ca99c7137dc1aa58e8a91cac275c3c17fad82a7bfe82a218765147b8504a13261438c1515840087dc712e30116e92b7760f72f3c7424ba56
7
- data.tar.gz: b362361d2176778e5c85ea597395da7949ed744c925340002c5f695611d3b8d98924da8fd6d37ebfed71a9f02494939c2af7f2a8cebde95a378df269574786da
6
+ metadata.gz: bfeae6a7b54f63d8d6bdd614e382d9203b6eea8d5885a1f532919ee4008219db7777858dc911b0409d9426e7e6fd83fb4e9e39b49e0562842440d5af0a346553
7
+ data.tar.gz: 6a0cc2a0ccbac7277837ecd62c6274127006ccd3509fca28dff380d8d3546ac785a7876a4a3c498c524e048f36941fcfe5a69597d65c8971a3826f1f52e07ec9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Haml Changelog
2
2
 
3
+ ## 6.0.9
4
+
5
+ * Support sass-embedded [#1112](https://github.com/haml/haml/issues/1112)
6
+
3
7
  ## 6.0.8
4
8
 
5
9
  * Support interpolation in HTML comments, which has not been working since 6.0.0
@@ -63,6 +67,8 @@ Released on September 21, 2022
63
67
  * The parser is kept as is, but everything else is replaced.
64
68
  * The `haml` CLI interface was also replaced.
65
69
  * The interface of `Haml::Engine` is changed. `Haml::Template` is most likely what you need now.
70
+ * before: `Haml::Engine.new("%p Haml code!").render`
71
+ * after: `Haml::Template.new { "%p Haml code!" }.render`
66
72
  * Most Haml helpers are removed.
67
73
  * Rails:
68
74
  * Kept: `find_and_reserve`, `preserve`, `surround`, `precede`, `succeed`, `capture_haml`
@@ -78,6 +84,8 @@ Released on September 21, 2022
78
84
  `defer`, `disabled`, `download`, `formnovalidate`, `hidden`, `inert`, `ismap`, `itemscope`, `loop`,
79
85
  `multiple`, `muted`, `novalidate`, `open`, `pubdate`, `readonly`, `required`, `reversed`, `scoped`,
80
86
  `seamless`, `selected`, `sortable`, `truespeed`, `typemustmatch`
87
+ * Only `data` and `aria` attributes support using a nested Hash to render hyphenated attributes, e.g.
88
+ `data: { foo: 'bar' }` becomes `data-foo="bar"`, but this no longer works for non-`data`/`aria` attributes.
81
89
  * Some legacy Rails integration is removed.
82
90
  * The default value of `escape_html` option became true.
83
91
  * `-` script lines no longer support capturing. Only `=` lines are supported to yield a nested block.
@@ -7,7 +7,11 @@ module Haml
7
7
  def self.render(name, source, indent_width: 0)
8
8
  text = ::Tilt["t.#{name}"].new { source }.render
9
9
  return text if indent_width == 0
10
- text.gsub!(/^/, ' ' * indent_width)
10
+ if text.frozen?
11
+ text.gsub(/^/, ' ' * indent_width)
12
+ else
13
+ text.gsub!(/^/, ' ' * indent_width)
14
+ end
11
15
  end
12
16
 
13
17
  def explicit_require?(needed_registration)
data/lib/haml/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Haml
3
- VERSION = '6.0.8'
3
+ VERSION = '6.0.9'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.8
4
+ version: 6.0.9
5
5
  platform: java
6
6
  authors:
7
7
  - Natalie Weizenbaum
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: exe
14
14
  cert_chain: []
15
- date: 2022-10-29 00:00:00.000000000 Z
15
+ date: 2022-11-08 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  requirement: !ruby/object:Gem::Requirement