reactionview 0.1.4 → 0.1.5

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: 759c72b49aa6f260c5fe480829b691ad1f18a9d0cf2d009e91d63a64e72ccf46
4
- data.tar.gz: d9f91b3cac05b87187c4ff49c9983a929d82b14848423e1370534675c73ef45a
3
+ metadata.gz: c644cc29cb89b6a3c99cfdd0af5d068341aefb0ca0829d1f93d974372a8b7452
4
+ data.tar.gz: 1e7514f308c34416e30687c80995db9a3076273a4707ea9e35e1692268f4c465
5
5
  SHA512:
6
- metadata.gz: de2c78c653976d81ad8031c47b10637ee320167cc74a51a7f311bc0e21dc9f2cc086f6ccc192563dce6be9aa7993b4414df83c443a894070f307485559810528
7
- data.tar.gz: b0e4b6bdfde0ac204ae0557755b5f4b1f8b7f0b4a20102af94a016cfb647d9d083569d3aae1f43efe899d7d73e32827401dafccc349e1f69beed70145655b69b
6
+ metadata.gz: bd8637092413b51ee333d7dd42e708adc08107cf53b35f637c9cde13f97b1bfbdd461b995c4e24fd140e1ebcd9c8295e8c316ae2ce61107af3bc400a8b47f1fd
7
+ data.tar.gz: 31c694de1a363be722e642e7171dea5df9997e2c6992c0d1c3b9b93ecdf6a5df7ed7d15f6600f8ba244b3c2edabe17a547f143293071fbd79ddc7c227fa27a22
@@ -11,7 +11,7 @@ module ReActionView
11
11
  def call(template, source)
12
12
  visitors = []
13
13
 
14
- if ::ReActionView.config.debug_mode_enabled?
14
+ if ::ReActionView.config.debug_mode_enabled? && local_template?(template)
15
15
  visitors << ::Herb::Engine::DebugVisitor.new(
16
16
  file_path: template.identifier,
17
17
  project_path: Rails.root.to_s
@@ -37,8 +37,15 @@ module ReActionView
37
37
  template.identifier.include?("/layouts/")
38
38
  end
39
39
 
40
+ def local_template?(template)
41
+ return true unless template.respond_to?(:identifier) && template.identifier
42
+
43
+ template.identifier.start_with?("#{Rails.root}/app/views")
44
+ end
45
+
40
46
  def reactionview_dev_tools_markup(template)
41
47
  return nil unless layout_template?(template) && ::ReActionView.config.debug_mode_enabled?
48
+ return nil unless local_template?(template)
42
49
 
43
50
  <<~HTML
44
51
  <meta name="herb-debug-mode" content="true">
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ReActionView
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end
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
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Roth
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-10-12 00:00:00.000000000 Z
10
+ date: 2025-10-19 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: actionview