view_component_helper 0.4.0 → 0.4.2

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: 93b7eca6167373623132673b6b72b8fd68ba3510af7c149c811426f25915728d
4
- data.tar.gz: c74a84b1de7204dc509f8339d7729f68bec535098f90f600965f690aac30d58f
3
+ metadata.gz: 39113fcb2c060a723b94fc5239da2333fdf0b79e510a536c41c9b0dd860c367a
4
+ data.tar.gz: 690401de39489f12fdf78df6016205531bbba52643640755bebf9f77c3155847
5
5
  SHA512:
6
- metadata.gz: 111b28a83aecfa3bb8c195b3e5acb11ff35c80912f6f7078fd8e60201ebeba227e537c57a251990ca4a0336716a619842be966e3f0b74089fb159d7b83ffc6d6
7
- data.tar.gz: 8223bac8064f546818512930f855672f8f1f3cf8249720a1aafb5fd0bec85c0711451ae13179c5910067569a122f0c591413a44b3d1558397b345b286c7c6c89
6
+ metadata.gz: 70f3de26a9aa00724f6435d136646d359eda56fcfea75dbc7451eb71cb360f18290638b55c0424afc6834a28412513820be705a28d6aedbe41d395e130cbe4d5
7
+ data.tar.gz: be103eefa27c4fea916e40e462f72d246819b6da2f4e7ada8d72f931d07aa74b513f9b45a79330c672e29f483ccbea4c8767744d9ffec20a00e0060b987bdb32
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- view_component_helper (0.4.0)
4
+ view_component_helper (0.4.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ViewComponentHelper
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.2"
5
5
  end
@@ -7,11 +7,8 @@ module ViewComponentHelper
7
7
 
8
8
  private
9
9
 
10
- def component_class_for(path)
11
- class_names = path.to_s.split("/")
12
- component_name = class_names.map(&:capitalize).join("::")
13
-
14
- component_name.constantize
10
+ def component_class_for(name)
11
+ name.classify.constantize
15
12
  end
16
13
  end
17
14
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: view_component_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - yamitake
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-06 00:00:00.000000000 Z
11
+ date: 2023-08-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'The ''view_component_helper'' gem streamlines View helper method invocation
14
14
  for view_component. Simplify integration and boost productivity. '