isomorfeus-asset-manager 0.12.0 → 0.12.1

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: e92ad4c34e5b1c973ca4c16b8604fe46148c8e2eaad20b3e7dbe1f380094b13f
4
- data.tar.gz: 4862aeaf75d7dc1394fc51c7948fc0c62d91b121c4ec971475b952057c21bf8e
3
+ metadata.gz: 4322f1c6ad8dff9d4df265bc44715ed4bb057e031ac81d9d3a13e8f7eef885f7
4
+ data.tar.gz: 3fb59bd726d4c25cd9f214b511d44759aea3e4af056e298ccd6afd70971c7ccf
5
5
  SHA512:
6
- metadata.gz: c746fdab0004a98d7a69d1b7e160b1334ba3a1c2e2eb9e8233ef524dd137b0bd45997c1f148168aae4afa27c6f92fc90d8aa2eabe2b69dbe7dfc971efd07d540
7
- data.tar.gz: c76e75768ee2f5284a8e3b3745ef1e21a5799c4e7ff1134919fa8b963080398cabfb1717dfce18eaa9d569ceb738a0feb89f718fd65faf78cefa6504664e0d4d
6
+ metadata.gz: 9c73e59b221e26ff3d9e90920d02b6c6f47400e3808e36099d43d0f838090ba31d8231dbec1af43c5adddad62974a10be5b3560ed1a6e29c9adff6d38b6efda2
7
+ data.tar.gz: bfbef83aa44a0763209e1cedab3cc754e066e630309feea7252ff7b81e7922c7ad274e1aa00e6b628554fb38519bc644898cb5e9d740b42479b5691c8424b3cf
@@ -16,7 +16,11 @@ module Isomorfeus
16
16
  js << "import { #{@imported_constants} as #{@js_constant}_#{@js_sub_constant} } from \"#{@package}\";\n"
17
17
  else
18
18
  if @imported_constants.is_a?(String)
19
- js << "import #{@imported_constants} from \"#{@package}\";\n"
19
+ if @imported_constants == '*'
20
+ js << "import * as #{@js_constant} from \"#{@package}\";\n"
21
+ else
22
+ js << "import #{@imported_constants} from \"#{@package}\";\n"
23
+ end
20
24
  else
21
25
  js << "import { #{@imported_constants.join(", ")} } from \"#{@package}\";\n"
22
26
  end
@@ -28,7 +32,11 @@ module Isomorfeus
28
32
  js << "global.#{@js_constant}.#{@js_sub_constant} = #{@js_constant}_#{@js_sub_constant};\n"
29
33
  else
30
34
  if @imported_constants.is_a?(String)
31
- js << "global.#{@js_constant}.#{@import_assignment ? @import_assignment : @imported_constants} = #{@imported_constants};\n"
35
+ if @imported_constants == '*'
36
+ js << "global.#{@js_constant} = #{@js_constant};\n"
37
+ else
38
+ js << "global.#{@js_constant}.#{@import_assignment ? @import_assignment : @imported_constants} = #{@imported_constants};\n"
39
+ end
32
40
  else
33
41
  @imported_constants.each do |imported_constant|
34
42
  js << "global.#{@js_constant}.#{@import_assignment ? @import_assignment : imported_constant} = #{imported_constant};\n"
@@ -44,13 +52,8 @@ module Isomorfeus
44
52
  elsif @js_constant.nil?
45
53
  js << "import \"#{@package}\";\n"
46
54
  else
47
- if @js_constant[0] == @js_constant[0].upcase
48
- js << "import * as #{@js_constant} from \"#{@package}\";\n"
49
- js << "global.#{@js_constant} = #{@js_constant};\n"
50
- else
51
- js << "import #{@js_constant} from \"#{@package}\";\n"
52
- js << "global.#{@js_constant} = #{@js_constant};\n"
53
- end
55
+ js << "import #{@js_constant} from \"#{@package}\";\n"
56
+ js << "global.#{@js_constant} = #{@js_constant};\n"
54
57
  end
55
58
  js
56
59
  end
@@ -1,5 +1,5 @@
1
1
  module Isomorfeus
2
2
  class AssetManager
3
- VERSION = '0.12.0'
3
+ VERSION = '0.12.1'
4
4
  end
5
5
  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.12.0
4
+ version: 0.12.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: 2021-09-03 00:00:00.000000000 Z
11
+ date: 2021-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: isomorfeus-speednode
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.4.0
19
+ version: 0.4.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.4.0
26
+ version: 0.4.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: oj
29
29
  requirement: !ruby/object:Gem::Requirement