react-manifest-rails 0.2.25 → 0.2.26
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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/react_manifest/generator.rb +9 -7
- data/lib/react_manifest/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b8bb6838aaa46da5189da7bfba7c7733b909e1a1dda061f0e1020f2c86969bb
|
|
4
|
+
data.tar.gz: 86aaee63e4333b5d32539a98d21c1eca47fc449acdd0edd617319b3361feb67c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e1479c5685f649940a378031a99618a835779e6c3ecc39cf38b445196f4878dcb6650ec83f7631d58f621032047495d72f79670e5058a6aae7aebac25f8f467c
|
|
7
|
+
data.tar.gz: 71b29ea8d787d9989c86c07256f174f9768bce7a257eef86143d96ca1481287c31906aa33b08e5b9ff2d788614a90ffbc58d82db6b2bdab85efe3a57c3306d3d
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.2.26] - 2026-04-22
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- 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!`.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- Release preflight script now runs the full RSpec suite and RuboCop before allowing a tag/push, blocking the release if either fails.
|
|
17
|
+
|
|
10
18
|
## [0.2.25] - 2026-04-22
|
|
11
19
|
|
|
12
20
|
### 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
|
|
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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
|
|
90
|
-
|
|
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])
|