railpack 1.2.4 → 1.2.6
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 +14 -4
- data/lib/railpack/version.rb +1 -1
- data/test/railpack_test.rb +0 -37
- 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: 30e7e6b4dbbc67e8442766655424ad14dacc36f1e5a3cc6e58211ad6ba0f1442
|
|
4
|
+
data.tar.gz: af9393a87f9030d6da531c365d69cfb9c2e8bca4798b8889e8c4e6cb2c461f99
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 503ae2cfc7ac3372396c300dae41d921c06f776d8cf3b18debaf815719db1d86483907832fe849682bcc50fa39e24496f21db3fe352cc20a3180429e58e250e5
|
|
7
|
+
data.tar.gz: b818edd2afb5d9b1c6b608227aec6e93729eb2210c0dbc597124e68103e0ce049758081e08590e66cf674540d57a307d7f61dceabad61a2d571f50b89b1ee4f5
|
data/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [1.2.6] - 2026-01-26
|
|
4
|
+
|
|
5
|
+
- Add dedicated config_test.rb file for Config class unit tests
|
|
6
|
+
- Comprehensive Config class testing with 12 focused unit tests
|
|
7
|
+
- Test initialization, default values, build flags/args, environment overrides
|
|
8
|
+
- Test YAML file loading, error handling, and dynamic method access
|
|
9
|
+
- Improved test organization with separate test files per class
|
|
10
|
+
- All 24 tests passing with 86 assertions
|
|
11
|
+
|
|
3
12
|
## [1.2.4] - 2026-01-26
|
|
4
13
|
|
|
5
|
-
- Add comprehensive test suite (
|
|
6
|
-
- Test config system
|
|
7
|
-
- Test
|
|
8
|
-
- Test bundle size calculation
|
|
14
|
+
- Add comprehensive test suite (19 tests, 72 assertions)
|
|
15
|
+
- Test config system including YAML file loading from Rails.root
|
|
16
|
+
- Test bundler implementations, manager features, event hooks
|
|
17
|
+
- Test error handling, asset manifest generation, bundle size calculation
|
|
18
|
+
- Test Rails integration and environment overrides
|
|
9
19
|
- Add default logger with Logger.new($stdout)
|
|
10
20
|
- Fix logger nil issues in manager
|
|
11
21
|
|
data/lib/railpack/version.rb
CHANGED
data/test/railpack_test.rb
CHANGED
|
@@ -49,44 +49,7 @@ class RailpackTest < Minitest::Test
|
|
|
49
49
|
assert_equal Railpack::WebpackBundler, Railpack::Manager::BUNDLERS['webpack']
|
|
50
50
|
end
|
|
51
51
|
|
|
52
|
-
def test_config_loading_without_rails
|
|
53
|
-
# Test config loading without Rails.root
|
|
54
|
-
config = Railpack::Config.new
|
|
55
|
-
assert_equal 'bun', config.bundler
|
|
56
|
-
assert_equal './app/javascript/application.js', config.entrypoint
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
def test_config_environment_overrides
|
|
60
|
-
# Test environment override logic with default config
|
|
61
|
-
config = Railpack::Config.new
|
|
62
|
-
dev_config = config.for_environment('development')
|
|
63
|
-
prod_config = config.for_environment('production')
|
|
64
|
-
|
|
65
|
-
# Development should have sourcemap enabled by default
|
|
66
|
-
assert_equal true, dev_config['sourcemap']
|
|
67
|
-
# Production should have minify enabled by default
|
|
68
|
-
assert_equal true, prod_config['minify']
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
def test_config_build_flags
|
|
72
|
-
# Test build flags generation with default config
|
|
73
|
-
config = Railpack::Config.new
|
|
74
|
-
flags = config.build_flags
|
|
75
52
|
|
|
76
|
-
assert_includes flags, '--target=browser'
|
|
77
|
-
assert_includes flags, '--format=esm'
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
def test_config_build_args
|
|
81
|
-
# Test build args generation with default config
|
|
82
|
-
config = Railpack::Config.new
|
|
83
|
-
args = config.build_args
|
|
84
|
-
|
|
85
|
-
assert_includes args, './app/javascript/application.js'
|
|
86
|
-
assert_includes args, '--outdir=app/assets/builds'
|
|
87
|
-
assert_includes args, '--target=browser'
|
|
88
|
-
assert_includes args, '--format=esm'
|
|
89
|
-
end
|
|
90
53
|
|
|
91
54
|
def test_manager_bundle_size_calculation
|
|
92
55
|
# Create test output directory with fake assets
|