isomorfeus-asset-manager 0.14.11 → 0.14.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78b774bc55cc59e8fee7021c0cad65221b01885e932f7881cf6f006e45898400
4
- data.tar.gz: 76c7b73948ed055aeeca30847e307ef1e7ef7174075463abbfff04555e032df3
3
+ metadata.gz: 0d50c569569e02ba08898b07c244ad40c2be45d190e98635383f53932391d725
4
+ data.tar.gz: 5c662d03177f4ab834d3667b34e44f20e485822a5474143be29171e63755c5d6
5
5
  SHA512:
6
- metadata.gz: 9e05e0fdb8f88f717638ba1aece5332d737e7e7e16f0262519386eebb4e92b21af5e31176e76dabed2d19afed09a3b8652922c0365c49625cac3e4827e72f722
7
- data.tar.gz: 8a67ce45a8dad7badc69a5e4cff9d617ff0f5bd9e9316d369fc335e190793110696f684ac2289dd31874eeaba25d06e63dcd9f1d543870b7197d61168d813b96
6
+ metadata.gz: c186995284e3e0bffddcf3aee7c7af958ba68af4d2f724c725d030a0098a9ebaa7c02e7fd5df43c61192e4784b78c6aa65e01ac372266dca0ed3ae3916da68b0
7
+ data.tar.gz: f92d390b1703c40b1141197dd0ee34445951139f4535bae6491e47d784045c60b673f42deeb21504a3f4de2c3c43bdbf324f9f30f4471a1c44bdada62d3a364d
@@ -33,7 +33,7 @@ module Isomorfeus
33
33
  if Isomorfeus.assets.key?(asset_key)
34
34
  asset = Isomorfeus.assets[asset_key]
35
35
  if asset && asset.target != :node
36
- asset_manager.transition(asset_key, asset)
36
+ asset_manager.transition(asset_key, asset) unless asset.bundled?
37
37
  if asset.bundle_ruby_modules.key?(module_name)
38
38
  headers = {}
39
39
  headers['Last-Modified'] = asset.mtime
@@ -1,5 +1,5 @@
1
1
  module Isomorfeus
2
2
  class AssetManager
3
- VERSION = '0.14.11'
3
+ VERSION = '0.14.12'
4
4
  end
5
5
  end
@@ -108,7 +108,7 @@ module Isomorfeus
108
108
  asset.ruby_imports.each do |ruby_import|
109
109
  module_name = ruby_import.module_name
110
110
  out_file = File.join(@imports_path, module_name + '.rb.js')
111
- next if !Isomorfeus.development? && File.exist?(out_file)
111
+ next if Isomorfeus.production? && File.exist?(out_file)
112
112
  result = Opal::Builder.build(ruby_import.resolved_path, { esm: true })
113
113
  rb[module_name] = { js: result.to_s }
114
114
  if !Isomorfeus.production? && asset.target != :node
@@ -117,7 +117,7 @@ module Isomorfeus
117
117
  else
118
118
  FileUtils.mkdir_p(File.join(*[@imports_path].concat(module_name.split('/')[0...-1]))) if module_name.include?('/')
119
119
  File.write(out_file, rb[module_name][:js])
120
- rb[module_name][:js] = nil
120
+ rb[module_name][:js] = nil if Isomorfeus.production?
121
121
  end
122
122
  end
123
123
  rb
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-asset-manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.11
4
+ version: 0.14.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann