react-manifest-rails 0.2.25 → 0.2.27

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: d9e8231e4932b06cc8cd5d4684cf0361be694e0a0ae6e677e5bea4d3dfa2c17e
4
- data.tar.gz: 4d1f52eb5463788fac2eb5cce0e777081f11f56a1401a7eab15fbc8cb8601cf6
3
+ metadata.gz: 95a89b37c1332d074e881e5676c346540b069ecbeafc7dd42526ce53f24a0285
4
+ data.tar.gz: e351a53101a5b3c91f31e8fd9279e221fd0a345c56d7f6d003ca5a6d5280624f
5
5
  SHA512:
6
- metadata.gz: 20ab3b9ad41551d772ac6fe89a17676728afe52d688ebd6b61cd4d7cb7d169cc246003a3c38ac468d8f8e3c10ec26e80e02330f78cebdad4a9a26a82cf700020
7
- data.tar.gz: a3829ad0e2f0eb4f7d3cf61ce31bad0a570b40a6fb96082d37da692c9826c3d60c7e72710d64b5b014b9cb7c1fba18b85169d8d62fd3033fda66a67e652df1ae
6
+ metadata.gz: 5fa34a6989ccedc7a1b459e3ba68365ec16c82606069c319c7c093d7440cfe4a7e223a4e617e4b25fa1f4b5ab345c73e80fd2f0e0d12d0773121d5221cb2aefa
7
+ data.tar.gz: eb604c20d10c84b9bf0abd6091e346eed18cb05063d88de4f1f8ec8e034dfe399db51c3c66d4ca0d7f8d67e9f1e57cc0c84823804c5da45e5d04e23467a4b55b
data/CHANGELOG.md CHANGED
@@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.27] - 2026-05-11
11
+
12
+ ### Fixed
13
+ - Boot-time manifest generation now runs on every development restart rather than only when manifests are completely absent. Shared files added between restarts (e.g. via `git merge`) are picked up immediately without needing to touch a watched file or manually run `rails react_manifest:generate`.
14
+
15
+ ### Changed
16
+ - Removed dead selective-shared-loading infrastructure from `Generator`. The scanner is no longer called from `Generator#run!` (it remains available for `react_manifest:analyze`). `build_controller_context` no longer computes `shared_requires`, `shared_lib_requires`, or their four supporting private methods (`shared_require_path_set`, `shared_lib_require_paths`, `build_shared_dependency_map`, `expand_shared_requires`). Controller manifests continue to load all shared files via `ux_shared` plus cross-bundle and external dependencies.
17
+
18
+ ## [0.2.26] - 2026-04-22
19
+
20
+ ### Fixed
21
+ - Resolved RuboCop offenses introduced in v0.2.25: removed useless `lib_reqs`/`shared_reqs` assignments in `build_controller`, corrected multiline method-call indentation in `build_shared`, and wrapped long line in `run!`.
22
+
23
+ ### Changed
24
+ - Release preflight script now runs the full RSpec suite and RuboCop before allowing a tag/push, blocking the release if either fails.
25
+
10
26
  ## [0.2.25] - 2026-04-22
11
27
 
12
28
  ### Fixed
@@ -48,7 +48,9 @@ module ReactManifest
48
48
 
49
49
  # Phase 1: build all content in memory — no I/O.
50
50
  shared_manifest = build_shared(classification.shared_dirs)
51
- manifests = [shared_manifest] + classification.controller_dirs.map { |ctrl| build_controller(ctrl, controller_context) }
51
+ manifests = [shared_manifest] + classification.controller_dirs.map do |ctrl|
52
+ build_controller(ctrl, controller_context)
53
+ end
52
54
 
53
55
  migrate_legacy_manifests!
54
56
 
@@ -66,10 +68,10 @@ module ReactManifest
66
68
  def build_shared(shared_dirs)
67
69
  lines = header_lines
68
70
  reqs = shared_dirs
69
- .flat_map { |d| js_files_in(d[:path]) }
70
- .map { |f| normalize_require_path(relative_require_path(f)) }
71
- .uniq
72
- .sort
71
+ .flat_map { |d| js_files_in(d[:path]) }
72
+ .map { |f| normalize_require_path(relative_require_path(f)) }
73
+ .uniq
74
+ .sort
73
75
 
74
76
  if reqs.empty?
75
77
  lines << "// (no shared JS files found)"
@@ -86,8 +88,8 @@ module ReactManifest
86
88
  lines = header_lines
87
89
  always_include_reqs = controller_context[:always_include_requires].fetch(ctrl[:bundle_name], [])
88
90
  dep_requires = controller_dependency_requires(ctrl[:bundle_name], controller_context)
89
- lib_reqs = controller_context[:shared_lib_requires]
90
- shared_reqs = controller_context[:shared_requires].fetch(ctrl[:bundle_name], Set.new).to_a.sort
91
+ controller_context[:shared_lib_requires]
92
+ controller_context[:shared_requires].fetch(ctrl[:bundle_name], Set.new).to_a.sort
91
93
  ext_reqs = controller_context[:external_requires].fetch(ctrl[:bundle_name], Set.new).to_a.sort
92
94
 
93
95
  files = js_files_in(ctrl[:path])
@@ -1,3 +1,3 @@
1
1
  module ReactManifest
2
- VERSION = "0.2.25".freeze
2
+ VERSION = "0.2.27".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: react-manifest-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.25
4
+ version: 0.2.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Noonan