rblade 3.1.0 → 3.1.1
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/CHANGELOG.md +3 -0
- data/lib/rblade/compiler/compiles_components.rb +2 -4
- data/rblade.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1968c00ec9bfacb4bec26199a713db38baf05292645dbfdc0a95426434603c5b
|
4
|
+
data.tar.gz: c0bf32d0cb9fc5095005cf9f09723ca44c173011652ae4d735bdce5d3cf12e7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3318812c42d80587b2295568b8a7985df2cd95b69c5e51fb22ae02b7ccadd605d81646e34f392423422e97aad3552b9f7eaf54f9eb5f6fbd876e3667a4d0204e
|
7
|
+
data.tar.gz: b766aa39038886c164a90e7f6ec52ba3fc2174534639ab51cb6dad9f01cd0598f03a5bb18fdbcd3add58baa4d313fd32f2769b95b9692df00e46ce87e9ac5c3a
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 3.1.1 [2025-05-11]
|
2
|
+
- Fix issue with component attributes mutating unfrozen strings (#19)
|
3
|
+
|
1
4
|
## 3.1.0 [2025-04-02]
|
2
5
|
- Add ability to use slots in dynamic components and the component view helper method
|
3
6
|
- Change statement matching to use regular expressions to improve compile performance
|
@@ -107,15 +107,13 @@ module RBlade
|
|
107
107
|
end
|
108
108
|
|
109
109
|
def process_string_attribute(string)
|
110
|
-
|
110
|
+
string.split(/((?<!@)\{\{(?:[^}]++|\})*?\}\})/).map do |substring|
|
111
111
|
if substring.start_with?("{{") && substring.end_with?("}}")
|
112
112
|
"(#{substring[2..-3]}).to_s"
|
113
113
|
elsif !substring.empty?
|
114
114
|
"'#{RBlade.escape_quotes(substring.gsub(/@\{\{/, "{{"))}'"
|
115
115
|
end
|
116
|
-
end.compact.join("<<")
|
117
|
-
|
118
|
-
result.empty? ? "+''" : result.prepend("+")
|
116
|
+
end.compact.unshift("+''").join("<<")
|
119
117
|
end
|
120
118
|
end
|
121
119
|
end
|
data/rblade.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "rblade"
|
3
|
-
s.version = "3.1.
|
3
|
+
s.version = "3.1.1"
|
4
4
|
s.summary = "A component-first templating engine for Rails"
|
5
5
|
s.description = "RBlade is a simple, yet powerful templating engine for Ruby on Rails, inspired by Laravel Blade."
|
6
6
|
s.authors = ["Simon J"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rblade
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon J
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|