railpack 1.6.4 → 1.6.5

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: c0b4907fa79d2aa5a2fa7c9ebfe76d47ed479c7f4ec532025f4bcb6210457879
4
- data.tar.gz: 41c10edd90326912d2e8e04bb115cfad692918dd209c09ab33c791b4f8ee3c1f
3
+ metadata.gz: 40568a9077768fb60afd15a95cf5e2b2f16f9cabb47f968180604c2991fc092d
4
+ data.tar.gz: 3f2c6e5df8085276243f81ba9e38381a66e4d8d52ea76adddb5100e3034f0f16
5
5
  SHA512:
6
- metadata.gz: e0f41f4a3d2736ca17548f61528a8cbaa4caa24cf86b866cb65ab47443888e6a1c020bde70485d1c343afbcd70a479822771b8a5d909c19db6de831fce7725c3
7
- data.tar.gz: 7e4bcbc244e12d0021a66893ac53363d14ddd0fdfc5cc7f05cdd747e06892b98b94a2ec086450e505a0877dbe51189f4f885a967e2d779454dbe2a9fc50ce418
6
+ metadata.gz: 1f1efc06f8d2532a08d365a4c3e1b679a2fc23dfafb682a1b3f3f67d52b59da582aacb67f996f2f0cf920c558de5a311ea1033d278f0f21d9c40f578578cd3ed
7
+ data.tar.gz: 6706d2db7f8a5c0540b5c5aa15e02be039149585eee6f617a1e46eca7233b9a8659fc09a5b38e50e89b8f6c08bedb3f58824e8acfa428f8d3c78c15c019d79bf
@@ -217,10 +217,15 @@ module Railpack
217
217
  # Check Rails.application.config.assets class directly (more reliable)
218
218
  if defined?(Rails) && Rails.respond_to?(:application) && Rails.application
219
219
  assets_config = Rails.application.config.assets
220
- if assets_config.is_a?(Propshaft::Assembler) || defined?(Propshaft::Assembler)
221
- :propshaft
222
- elsif defined?(Sprockets::Manifest)
223
- :sprockets
220
+ begin
221
+ if defined?(Propshaft) && Propshaft.const_defined?(:Assembler) && assets_config.is_a?(Propshaft::Assembler)
222
+ return :propshaft
223
+ end
224
+ rescue NameError
225
+ # Propshaft::Assembler not available
226
+ end
227
+ if defined?(Sprockets::Manifest)
228
+ return :sprockets
224
229
  end
225
230
  end
226
231
 
@@ -1,3 +1,3 @@
1
1
  module Railpack
2
- VERSION = "1.6.4"
2
+ VERSION = "1.6.5"
3
3
  end
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.6.4
4
+ version: 1.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - 21tycoons LLC