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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e1a5390cd92d576fc8ec4b4baaa48a0cb5295cffaca784418ec813fb1df5cb5
4
- data.tar.gz: 5a0b9bc625badb41203e2db46bed4f356d14811dced90e63282db300c959eada
3
+ metadata.gz: 759c72b49aa6f260c5fe480829b691ad1f18a9d0cf2d009e91d63a64e72ccf46
4
+ data.tar.gz: d9f91b3cac05b87187c4ff49c9983a929d82b14848423e1370534675c73ef45a
5
5
  SHA512:
6
- metadata.gz: 462b5f1c1ab86c8d138980ef82792ab004144f8d1b7f12cb8afec72d61eedd5e51d9f06a8af75c8b000e720625f3f7b86010dd4afaa9c04fe27c2cc53344f38d
7
- data.tar.gz: a8e96b0cb994853857e04741043173149c40b7afdfb0f1a0fa12c031ea8f6c14bc073119a010c6687547e0f407be50c95ee1674acf79b61267b41cc388d41400
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
- config = {
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
- config[:visitors] << ::Herb::Engine::DebugVisitor.new(
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ReActionView
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
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.3
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-07 00:00:00.000000000 Z
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