isomorfeus-asset-manager 0.18.0 → 0.18.1

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: 486b0e88361ec2f8327edafe58bcb53a8a6144213b1c20b5d95a46896194f64b
4
- data.tar.gz: 619ebe73617ff46ae636933f6d50d2c0cdf8e6647b000eebd9c6182e886f5f61
3
+ metadata.gz: 35473bc2ce6816a9d7f6475490dfdaab499fb0ecd0e13aa046715e0da9c149bb
4
+ data.tar.gz: 6b382b48cf9db06486b6e0c46e4ee37f1c7018625cc58e9ad442b1bc964378c2
5
5
  SHA512:
6
- metadata.gz: a8141bf24eb28eb34648cb5933e36e9e402f918b027aac6665bef3681b9332df74f9110d791b48e1ca440c9c1553df71ba6e9b9ddec84a07754a5b1e2ab53186
7
- data.tar.gz: 4f7fe18080c40927a34ffd1257b5bc0b44bf80173999f8f4a60fc87df83742c67dc806c1e106a362d646e960333c3c5d727d6ed87d709968ff94cd5d02dcc564
6
+ metadata.gz: c91e4cdc3fb1ceda1300307711fbc30a619d2b2d9458d12951495aeaafd34a6b115648eb0782bfc548bc1ab36fedc5fdaf54caf9a1b965217418f20fd7adeb88
7
+ data.tar.gz: aed9fec1ab0b00945ea81e0c482f30108bf3ac7d28a6564093c36820cffc4ff794b40f1df42b8f1764ebb1380147dea612da5edf518546d3a16f544cb981c228
@@ -11,13 +11,8 @@ module Isomorfeus
11
11
  def initialize(app)
12
12
  @app = app
13
13
  @asset_manager = Isomorfeus::AssetManager.new
14
- if Isomorfeus.assets_path.end_with?('/')
15
- @assets_path = Isomorfeus.assets_path
16
- @assets_path_size = @assets_path.size
17
- else
18
- @assets_path = Isomorfeus.assets_path + '/'
19
- @assets_path_size = @assets_path.size
20
- end
14
+ @assets_path = Isomorfeus.assets_path.end_with?('/') ? Isomorfeus.assets_path : "#{Isomorfeus.assets_path}/"
15
+ @assets_path_size = @assets_path.size
21
16
  rescue Exception => e
22
17
  STDERR.puts "#{e.message}\n#{e.backtrace&.join("\n")}\n"
23
18
  end
@@ -1,5 +1,5 @@
1
1
  module Isomorfeus
2
2
  class AssetManager
3
- VERSION = '0.18.0'
3
+ VERSION = '0.18.1'
4
4
  end
5
5
  end
@@ -112,6 +112,9 @@ module Isomorfeus
112
112
  elsif file.end_with?('.js')
113
113
  Isomorfeus.assets.each_value { |asset| asset.unbundle! }
114
114
  update_json = Oj.dump({ reload: file }, mode: :strict)
115
+ elsif file.end_with?('.css')
116
+ Isomorfeus.assets.each_value { |asset| asset.unbundle! }
117
+ update_json = Oj.dump({ reload: file }, mode: :strict)
115
118
  else
116
119
  update_json = Oj.dump({ error: "Don't know how to update #{file}!" }, mode: :strict)
117
120
  end
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.18.0
4
+ version: 0.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-18 00:00:00.000000000 Z
11
+ date: 2023-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: brotli
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.6.1
47
+ version: 0.6.2
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.6.1
54
+ version: 0.6.2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: listen
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -75,7 +75,7 @@ dependencies:
75
75
  version: 3.13.23
76
76
  - - "<"
77
77
  - !ruby/object:Gem::Version
78
- version: 3.15.0
78
+ version: 3.16.0
79
79
  type: :runtime
80
80
  prerelease: false
81
81
  version_requirements: !ruby/object:Gem::Requirement
@@ -85,7 +85,7 @@ dependencies:
85
85
  version: 3.13.23
86
86
  - - "<"
87
87
  - !ruby/object:Gem::Version
88
- version: 3.15.0
88
+ version: 3.16.0
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: opal
91
91
  requirement: !ruby/object:Gem::Requirement