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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21f2c37d6ae5d2b014ce1271ee6a641f16c3794b62cd02b2247a50ba3f85e05b
4
- data.tar.gz: 9246c36e1e123dea6c9cc79d0695255ebeeb2500bb6cd44f82cc4c1980728706
3
+ metadata.gz: 30e7e6b4dbbc67e8442766655424ad14dacc36f1e5a3cc6e58211ad6ba0f1442
4
+ data.tar.gz: af9393a87f9030d6da531c365d69cfb9c2e8bca4798b8889e8c4e6cb2c461f99
5
5
  SHA512:
6
- metadata.gz: d4c07780ac0d88dbe06a6cb0812c19621f56452afe25da7c5ceac7217c4b1003cb0b93fdb1e48cffde26459f8fd6e5333ff6ea8f32a5246ba7bd3131b7855d3c
7
- data.tar.gz: 858a12ceb1ea3811f05b567886162bb1a3d60d35a07ee42b529ced30ee9dfbccdd2ce71afb999013d3f3f1152915734fcd1906f7d85fd5709cb9b1f0b72edbac
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 (18 tests, 62 assertions)
6
- - Test config system, bundler implementations, manager functionality
7
- - Test event hooks, error handling, asset manifest generation
8
- - Test bundle size calculation and Rails integration
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
 
@@ -1,3 +1,3 @@
1
1
  module Railpack
2
- VERSION = "1.2.4"
2
+ VERSION = "1.2.6"
3
3
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railpack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - 21tycoons LLC