view_component 4.18.0 → 4.19.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: 2f3ee513a8505728d9295aa0a7c6ce8e228f256058c13f67591ac7697ab4eec1
4
- data.tar.gz: 7b4a193c71baab6711b130dde0dbe2e84297db77d1e3ae1ac26805fe7272b796
3
+ metadata.gz: d29069cd53a93e2e3b1e2285612ecd25985bae4458a842227922a1a5bdb18b96
4
+ data.tar.gz: 6063a6b520fc62961f61e36b30bbbf47eaf5728580a61a5af68231b11c5f7dc4
5
5
  SHA512:
6
- metadata.gz: b196d2a623e878c83325fe8ed684e0d8c938e9daa51668d1fd0665628162d29d6856748d76b65917fe3c6a3849486d77f1a8f50929d1207501fb5d66a2c9d37f
7
- data.tar.gz: aecd6d15e2e16dac5557f9e9a082b191a9c36a604dbc9e4cd067aedeee0e478e7fd0d380267d2a623977c3b58f6666e9ead18ac8e9119a2c6216f350d14bb834
6
+ metadata.gz: 2741959ff497e91a4fd792959667ad0e6ca57f3378e460a8ec6db74c013b09acf4eeb2bfbcbfbfab9b81f92613c29107562c838502b61b5a3b8503e4c75978ed
7
+ data.tar.gz: 8b54025874d993b7fe3b61f565bff74c463ac683f66b0427b05cc3e5791ec1d4b526fd9807010669e641203505c0d0e58376ffab3c6d96e2a1e68bc746e1e4cc
data/docs/CHANGELOG.md CHANGED
@@ -10,6 +10,20 @@ nav_order: 6
10
10
 
11
11
  ## main
12
12
 
13
+ ## 4.19.0
14
+
15
+ * Remove the unused `concurrent-ruby` dependency. `require "concurrent-ruby"` loaded every concurrent-ruby class at boot, a leftover from the `Concurrent::ReadWriteLock` the compiler no longer uses.
16
+
17
+ *Clément Joubert*
18
+
19
+ * Fix every request raising `NoMethodError` in development when an autoload path is a `Pathname`, as engines such as Madmin add. The template watcher now passes the autoload paths to the file watcher as strings.
20
+
21
+ *Anthony Veaudry*
22
+
23
+ * Fix the template annotations integration test failing when it ran after the coverage compile tests, which left components compiled without the annotation in the test cache.
24
+
25
+ *Anthony Veaudry*
26
+
13
27
  ## 4.18.0
14
28
 
15
29
  * Enable caching support for all components by default, and rename `ViewComponent::ExperimentallyCacheable` to `ViewComponent::Cacheable`. Including the module is no longer necessary. Breaking: remove existing `include ViewComponent::ExperimentallyCacheable` lines. Caching is no longer experimental.
@@ -30,7 +30,7 @@ module ViewComponent
30
30
  # changed, or removed. Changes to Ruby files reload the application instead.
31
31
  def template_watcher(file_watcher)
32
32
  extensions = ActionView::Template::Handlers.extensions.map(&:to_s) + %w[yml yaml]
33
- directories = ActiveSupport::Dependencies.autoload_paths.index_with(extensions)
33
+ directories = ActiveSupport::Dependencies.autoload_paths.map(&:to_s).index_with(extensions)
34
34
 
35
35
  file_watcher.new([], directories) { invalidate! }
36
36
  end
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "concurrent-ruby"
4
-
5
3
  module ViewComponent
6
4
  class Compiler
7
5
  # Compiler development mode. Can be either:
@@ -3,7 +3,7 @@
3
3
  module ViewComponent
4
4
  module VERSION
5
5
  MAJOR = 4
6
- MINOR = 18
6
+ MINOR = 19
7
7
  PATCH = 0
8
8
  PRE = nil
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: view_component
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.18.0
4
+ version: 4.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ViewComponent Team
@@ -37,20 +37,6 @@ dependencies:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
39
  version: 7.1.0
40
- - !ruby/object:Gem::Dependency
41
- name: concurrent-ruby
42
- requirement: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - "~>"
45
- - !ruby/object:Gem::Version
46
- version: '1'
47
- type: :runtime
48
- prerelease: false
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: '1'
54
40
  executables: []
55
41
  extensions: []
56
42
  extra_rdoc_files: []