isomorfeus-asset-manager 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isomorfeus/asset_manager/js_import.rb +12 -9
- data/lib/isomorfeus/asset_manager/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4322f1c6ad8dff9d4df265bc44715ed4bb057e031ac81d9d3a13e8f7eef885f7
|
4
|
+
data.tar.gz: 3fb59bd726d4c25cd9f214b511d44759aea3e4af056e298ccd6afd70971c7ccf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
-
|
48
|
-
|
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
|
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.
|
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-
|
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.
|
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.
|
26
|
+
version: 0.4.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: oj
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|