railpack 1.2.13 → 1.2.15
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/lib/railpack/config.rb +8 -1
- data/lib/railpack/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: 2f23b323df32ca24a6de97e59e97ee08e36f914d9214de37b8e40bffce198845
|
|
4
|
+
data.tar.gz: e69cb9e90db0a5c30790cb56ad8a9b38813a25d35a08211a1c39f294998671ee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6bd6bf1fa473824dbce6386d2396165aadc0fcf50b707b967646050518bbf460b7854a98fc5e97a393fd079b0704e68d7f9a2f99697ee3bd07d1e047fb7b40cb
|
|
7
|
+
data.tar.gz: c4f64e3e4ebc380bd47de4bc053f2960da58098ed048d06011fbf5550e420c845ea4452644ca5accbb908b1a76c81bef6066bb5eb7e1f4901cede7308fbf9a07
|
data/lib/railpack/config.rb
CHANGED
|
@@ -93,6 +93,8 @@ module Railpack
|
|
|
93
93
|
raise Error, "Config is immutable. Set values in config/railpack.yml"
|
|
94
94
|
else
|
|
95
95
|
# Getter - read from merged config (backward compatibility)
|
|
96
|
+
# TODO: In v2.0, remove this fallback and require explicit accessors
|
|
97
|
+
warn "DEPRECATED: Dynamic config access via '#{config_key}' will be removed in v2.0. Use explicit accessors instead." if defined?(Rails) && Rails.logger
|
|
96
98
|
env = args.first || current_env
|
|
97
99
|
return for_environment(env)[config_key] if for_environment(env).key?(config_key)
|
|
98
100
|
super
|
|
@@ -223,7 +225,12 @@ module Railpack
|
|
|
223
225
|
# Validate bundler name exists in known bundlers
|
|
224
226
|
bundler_name = config['bundler']
|
|
225
227
|
if bundler_name && !@config.key?(bundler_name)
|
|
226
|
-
|
|
228
|
+
message = "Unknown bundler '#{bundler_name}'. Known bundlers: #{@config.keys.grep(/^(bun|esbuild|rollup|webpack)$/).join(', ')}"
|
|
229
|
+
if ENV['RAILPACK_STRICT']
|
|
230
|
+
raise Error, message
|
|
231
|
+
else
|
|
232
|
+
Railpack.logger.warn(message)
|
|
233
|
+
end
|
|
227
234
|
end
|
|
228
235
|
end
|
|
229
236
|
|
data/lib/railpack/version.rb
CHANGED