proscenium-view_component 0.4.0 → 0.6.0

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: cbc92f34cb6a8423be6788cb9042eb7f91fb5a94dc58b27e0b66bc5d1aa1f140
4
- data.tar.gz: ac0f267aa2b75830384240e78b6388f3794cf700980f8fb05418bc7459fca303
3
+ metadata.gz: 67080ac650689cca4ae611fb82ef4ea4024c517ff876c2b1af95c349cfc032b1
4
+ data.tar.gz: 18b791fc9212a047573284c777424acd79730c9b91337c8691e68b30f516c9a3
5
5
  SHA512:
6
- metadata.gz: 7c33511a5054fc9028c6ad480327dc3b39b082202c7fb352f27df46b9997d9307f86f8199080674c819614af28e8849c248ca5d0ba08b7181291529a42ddf3eb
7
- data.tar.gz: 480a16bba4201fd7ee2726d8c6b2f807a5e6211ae2927dc9d872bd53cdce470695f71cbe97261d871c1009e5e35d1cc0e4d1ef7a390358531fc0b00896443ade
6
+ metadata.gz: 49986be8182e814223652421bd03e55af5e2ded402cb5f2eb0f8df1a9ac84322097f6d2a1d371e5cfdeefc16e5948626abb7e20bbcf7b69bb6057eef21ecd102
7
+ data.tar.gz: 8defd2fc98a3a92835fce3a2e15a92a3a2510bb853a9b1a41adbc76c7bc66cbd8a4c3116a1b889ca859f577d67347769736aa514dc3c5d30c8b9d659a1cddaad
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.4.2
1
+ 3.4.8
@@ -18,5 +18,12 @@ module Proscenium::ViewComponent
18
18
  tag.div content || 'loading...'
19
19
  end
20
20
  end
21
+
22
+ def virtual_path
23
+ @virtual_path ||= begin
24
+ paths = Proscenium::Resolver.resolve(self.class.source_path.sub_ext('.jsx').to_s)
25
+ paths.is_a?(Array) ? paths.find { |x| x.ends_with?('.js') } : paths
26
+ end
27
+ end
21
28
  end
22
29
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Proscenium
4
4
  module ViewComponent
5
- VERSION = '0.4.0'
5
+ VERSION = '0.6.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proscenium-view_component
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Moss
@@ -13,14 +13,14 @@ dependencies:
13
13
  name: proscenium
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - "~>"
16
+ - - ">="
17
17
  - !ruby/object:Gem::Version
18
18
  version: 0.21.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
- - - "~>"
23
+ - - ">="
24
24
  - !ruby/object:Gem::Version
25
25
  version: 0.21.0
26
26
  - !ruby/object:Gem::Dependency
@@ -49,14 +49,14 @@ dependencies:
49
49
  requirements:
50
50
  - - "~>"
51
51
  - !ruby/object:Gem::Version
52
- version: 4.0.1
52
+ version: 4.1.1
53
53
  type: :runtime
54
54
  prerelease: false
55
55
  version_requirements: !ruby/object:Gem::Requirement
56
56
  requirements:
57
57
  - - "~>"
58
58
  - !ruby/object:Gem::Version
59
- version: 4.0.1
59
+ version: 4.1.1
60
60
  description: Proscenium integration for ViewComponent
61
61
  email:
62
62
  - joel@developwithstyle.com
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  requirements: []
101
- rubygems_version: 3.6.7
101
+ rubygems_version: 4.0.3
102
102
  specification_version: 4
103
103
  summary: Proscenium integration for ViewComponent
104
104
  test_files: []