isomorfeus-asset-manager 0.14.16 → 0.14.19

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: 7befddccb82a796903ddfebc8b93cfbff34b59358a33b80406b7a735a1d9e080
4
- data.tar.gz: 8b27f42102ca6596338a15efc3f2c6c5779e92e4036b38b75b9aa8fe1aee7e49
3
+ metadata.gz: 5c7df0d3122b5bfff71c027bed005e9878e0bb64c6ddd1300e6256efb544ddf1
4
+ data.tar.gz: 2aa0e3f088152054b47bec1b9886ed93a843774735a2e7b26d67edda01cf10a8
5
5
  SHA512:
6
- metadata.gz: 669c7fa2ec213c9b37f4f6f9a89a5efbc4a0992794ac7d039798aa84f944819b1b55d30e19fcbbfe1f2b0689f110a64f8f8122a2b3d4df099f9ed2093536bdee
7
- data.tar.gz: b3dec9544fae51330b122b6f38687076bccace87c4bd7d0cd5c2f50e8ff260d46e58a704b9a38f03b65df4c2a54f76b0c213f56d058bd4dac4d0cc31087db6e2
6
+ metadata.gz: 07f69556f092f6d1a8b74a8003cf4564f445fc0938bbfcf2edb68df0d43eec0c298c670284e213c059ef0ec79cca536048a8f55f22a6b543080ab5daea28f93d
7
+ data.tar.gz: 6c1050f997977b5a5351fe3edc94b0c175540f565e62b187e3e3a1d31f616564d1dda5c1fa26759e36c5fa452c68042d032306475d051b4500f461cd22264467
@@ -71,8 +71,7 @@ module Isomorfeus
71
71
  if asset && asset.browser?
72
72
  headers = { Rack::CONTENT_TYPE => 'application/json' }
73
73
  asset_manager.transition(asset_key, asset)
74
- content = get_content(env, headers, asset, asset_key, asset.hash[:css][:map])
75
- return [200, headers, content]
74
+ return [200, headers, get_content(env, headers, asset, asset_key, asset.hash[:css][:map])]
76
75
  end
77
76
  end
78
77
  end
@@ -135,7 +134,7 @@ module Isomorfeus
135
134
  end
136
135
  headers[Rack::CONTENT_LENGTH] = content.size
137
136
  headers['Last-Modified'] = asset.mtime
138
- content
137
+ [content]
139
138
  end
140
139
  end
141
140
  end
@@ -1,5 +1,5 @@
1
1
  module Isomorfeus
2
2
  class AssetManager
3
- VERSION = '0.14.16'
3
+ VERSION = '0.14.19'
4
4
  end
5
5
  end
@@ -53,7 +53,6 @@ module Isomorfeus
53
53
  return if asset.bundled?
54
54
  start = Time.now
55
55
  puts "Isomorfeus Asset Manager bundling #{asset_key} ..."
56
- asset.bundled!
57
56
  asset.touch
58
57
  asset_name = asset_key[0..-4]
59
58
  asset.build_ruby_and_save(asset_key, asset_name, @imports_path)
@@ -65,6 +64,7 @@ module Isomorfeus
65
64
  asset.bundle_css_map(asset_name, @output_path)
66
65
  asset.bundle_js_map(asset_key, @output_path)
67
66
  end
67
+ asset.bundled!
68
68
  puts "Isomorfeus Asset Manager bundling #{asset_key} took #{Time.now - start}s"
69
69
  end
70
70
  end
@@ -87,8 +87,8 @@ module Isomorfeus
87
87
  def handle_errors(asset_key, result)
88
88
  unless result['errors'].empty?
89
89
  result['errors'].each do |e|
90
- print_message(w, 'error')
91
- unless w['notes'].empty?
90
+ print_message(e, 'error')
91
+ unless e['notes'].empty?
92
92
  e['notes'].each do |n|
93
93
  print_message(n, 'note')
94
94
  end
@@ -176,7 +176,9 @@ module Isomorfeus
176
176
  splitting: false,
177
177
  target: '#{asset.browser? ? 'es6' : 'node16' }',
178
178
  write: true
179
- }).then((result) => { global.res_meta = result.metafile; return result; });
179
+ })
180
+ .then((result) => { global.res_meta = result.metafile; return result; }, (reason) => { return { result: { errors: [{text: reson}]}}; })
181
+ .catch((error) => { return { result: { errors: [{text: error.message}]}}; });
180
182
  JAVASCRIPT
181
183
  if analyze
182
184
  analysis = @context.await <<~JAVASCRIPT
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-asset-manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.16
4
+ version: 0.14.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-20 00:00:00.000000000 Z
11
+ date: 2022-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: brotli
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 3.7.0
61
+ version: 3.7.1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 3.7.0
68
+ version: 3.7.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: oj
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -200,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
200
  - !ruby/object:Gem::Version
201
201
  version: '0'
202
202
  requirements: []
203
- rubygems_version: 3.3.3
203
+ rubygems_version: 3.3.7
204
204
  signing_key:
205
205
  specification_version: 4
206
206
  summary: Asset manager and bundler for Isomorfeus.