reactionview 0.1.3 → 0.1.4
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/lib/reactionview/template/handlers/herb.rb +10 -8
- data/lib/reactionview/version.rb +1 -1
- data/reactionview.gemspec +1 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 759c72b49aa6f260c5fe480829b691ad1f18a9d0cf2d009e91d63a64e72ccf46
|
4
|
+
data.tar.gz: d9f91b3cac05b87187c4ff49c9983a929d82b14848423e1370534675c73ef45a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de2c78c653976d81ad8031c47b10637ee320167cc74a51a7f311bc0e21dc9f2cc086f6ccc192563dce6be9aa7993b4414df83c443a894070f307485559810528
|
7
|
+
data.tar.gz: b0e4b6bdfde0ac204ae0557755b5f4b1f8b7f0b4a20102af94a016cfb647d9d083569d3aae1f43efe899d7d73e32827401dafccc349e1f69beed70145655b69b
|
@@ -9,21 +9,23 @@ module ReActionView
|
|
9
9
|
class_attribute :erb_implementation, default: Handlers::Herb::Herb
|
10
10
|
|
11
11
|
def call(template, source)
|
12
|
-
|
13
|
-
filename: template.identifier,
|
14
|
-
project_path: Rails.root.to_s,
|
15
|
-
validation_mode: :overlay,
|
16
|
-
content_for_head: reactionview_dev_tools_markup(template),
|
17
|
-
visitors: ReActionView.config.transform_visitors,
|
18
|
-
}
|
12
|
+
visitors = []
|
19
13
|
|
20
14
|
if ::ReActionView.config.debug_mode_enabled?
|
21
|
-
|
15
|
+
visitors << ::Herb::Engine::DebugVisitor.new(
|
22
16
|
file_path: template.identifier,
|
23
17
|
project_path: Rails.root.to_s
|
24
18
|
)
|
25
19
|
end
|
26
20
|
|
21
|
+
config = {
|
22
|
+
filename: template.identifier,
|
23
|
+
project_path: Rails.root.to_s,
|
24
|
+
validation_mode: :overlay,
|
25
|
+
content_for_head: reactionview_dev_tools_markup(template),
|
26
|
+
visitors: visitors + ReActionView.config.transform_visitors,
|
27
|
+
}
|
28
|
+
|
27
29
|
erb_implementation.new(source, config).src
|
28
30
|
end
|
29
31
|
|
data/lib/reactionview/version.rb
CHANGED
data/reactionview.gemspec
CHANGED
@@ -7,6 +7,7 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.version = ReActionView::VERSION
|
8
8
|
spec.authors = ["Marco Roth"]
|
9
9
|
spec.email = ["marco.roth@intergga.ch"]
|
10
|
+
spec.license = "MIT"
|
10
11
|
|
11
12
|
spec.summary = "An ActionView-compatible ERB engine with modern DX - re-imagined with Herb."
|
12
13
|
spec.description = spec.summary
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reactionview
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marco Roth
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-10-
|
10
|
+
date: 2025-10-12 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: actionview
|
@@ -70,7 +70,8 @@ files:
|
|
70
70
|
- reactionview.gemspec
|
71
71
|
- sig/reactionview.rbs
|
72
72
|
homepage: https://reactionview.dev
|
73
|
-
licenses:
|
73
|
+
licenses:
|
74
|
+
- MIT
|
74
75
|
metadata:
|
75
76
|
homepage_uri: https://reactionview.dev
|
76
77
|
source_code_uri: https://github.com/marcoroth/reactionview
|