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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 565a823219a85db94f6fa31e42de52cab5d1de562c89c42243a0105d54eab581
4
- data.tar.gz: 484ca84492233eabd1c61a534be991cfdb489273751e4e43a1b5ac400965b867
3
+ metadata.gz: 1968c00ec9bfacb4bec26199a713db38baf05292645dbfdc0a95426434603c5b
4
+ data.tar.gz: c0bf32d0cb9fc5095005cf9f09723ca44c173011652ae4d735bdce5d3cf12e7b
5
5
  SHA512:
6
- metadata.gz: a3fa94d7c7c3f19f3671dd346bffedbee1fdaaf3b93ce0928cba1b6bb7d24a7c7da83c016863df9aa8c5cbdd0d5519d65efef7aa18a59a77a7861764e8188f03
7
- data.tar.gz: 29325e82f35eb1e6b949b49684ea5c78cea910ffeeacf18ef012c39ff6cbe2a73e26bd47d1753734cc712421b19a958dab54224c024c25ca580b53b34b6dcb9a
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
- result = string.split(/((?<!@)\{\{(?:[^}]++|\})*?\}\})/).map do |substring|
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.0"
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.0
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-04-02 00:00:00.000000000 Z
11
+ date: 2025-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest