view_component 2.77.0 → 2.78.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of view_component might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/docs/CHANGELOG.md +6 -0
- data/lib/view_component/compiler.rb +2 -2
- data/lib/view_component/version.rb +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: 7fbd11387f1d91c630d91d12ce292fe85f3ac95063d32cb5fef898012f098dc8
|
4
|
+
data.tar.gz: a54372810de68fdfe4d863437ace9a4ab9f930e4255c16d1b696053ecaae2c96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a702c2c57c6763340ae79be1eb454c4d451601eb8c7007257318bfe87bd88710e53c5875e7308440008c9c32b55038d6691d58217f6f1c5390e4b643b0c91f11
|
7
|
+
data.tar.gz: 0d38198fe331e12a2d2b250888980d09d059dc6f1d5a392e5646ee3c834f71fb856cfd8cd4b9eaf02ce6facec836aa849fcb18af95f6239a0dc1396c96d7faf4
|
data/docs/CHANGELOG.md
CHANGED
@@ -189,7 +189,7 @@ module ViewComponent
|
|
189
189
|
pieces = File.basename(path).split(".")
|
190
190
|
memo << {
|
191
191
|
path: path,
|
192
|
-
variant: pieces.
|
192
|
+
variant: pieces[1..-2].join(".").split("+").second&.to_sym,
|
193
193
|
handler: pieces.last
|
194
194
|
}
|
195
195
|
end
|
@@ -254,7 +254,7 @@ module ViewComponent
|
|
254
254
|
end
|
255
255
|
|
256
256
|
def normalized_variant_name(variant)
|
257
|
-
variant.to_s.gsub("-", "__")
|
257
|
+
variant.to_s.gsub("-", "__").gsub(".", "___")
|
258
258
|
end
|
259
259
|
|
260
260
|
def should_compile_superclass?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: view_component
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.78.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ViewComponent Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|