pakyow-assets 1.0.0.rc3 → 1.0.0.rc4
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 88694df5b418b2f7427454db094cf32c5b9e8546c291105d83238db6e0ae15e2
|
|
4
|
+
data.tar.gz: 302ba46b2f0fdef618377f229a93d28fe81cf971b1f10463ee8a20376e5a7b18
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0432774c6f5510a7da648df8235ed424b0d9d6a0223f06655290ce4f150d79e0ed7596129f38b361fa3230c4e452dbebdd9fef7f8979ce03ee1a2c68feb92322
|
|
7
|
+
data.tar.gz: 4a1950155bc5acd90b6840c41179985bcf0f51f2265a6dd721fff3f4aa228f523890bee0048a13b497c1d913a9b29b3eec6278c5ef241c146bba345b6e2fa82c
|
data/lib/pakyow/assets/asset.rb
CHANGED
|
@@ -121,7 +121,14 @@ module Pakyow
|
|
|
121
121
|
# content rather than incurring that cost on boot.
|
|
122
122
|
#
|
|
123
123
|
def freeze
|
|
124
|
-
|
|
124
|
+
@freezing = true
|
|
125
|
+
unless @freezing
|
|
126
|
+
public_path
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if instance_variable_defined?(:@content) && (!@config.fingerprint || instance_variable_defined?(:@fingerprinted_public_path))
|
|
130
|
+
super
|
|
131
|
+
end
|
|
125
132
|
end
|
|
126
133
|
|
|
127
134
|
def each(&block)
|
|
@@ -155,10 +162,16 @@ module Pakyow
|
|
|
155
162
|
|
|
156
163
|
def public_path
|
|
157
164
|
if @config.fingerprint
|
|
158
|
-
|
|
159
|
-
File.
|
|
160
|
-
|
|
161
|
-
|
|
165
|
+
unless instance_variable_defined?(:@fingerprinted_public_path)
|
|
166
|
+
@fingerprinted_public_path = File.join(
|
|
167
|
+
File.dirname(@public_path),
|
|
168
|
+
fingerprinted_filename
|
|
169
|
+
)
|
|
170
|
+
|
|
171
|
+
freeze
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
@fingerprinted_public_path
|
|
162
175
|
else
|
|
163
176
|
@public_path
|
|
164
177
|
end
|
|
@@ -206,7 +219,7 @@ module Pakyow
|
|
|
206
219
|
#
|
|
207
220
|
@related.each do |asset|
|
|
208
221
|
if asset != self && content.include?(asset.logical_path)
|
|
209
|
-
content.gsub!(asset.logical_path, asset.public_path)
|
|
222
|
+
content.gsub!(asset.logical_path, File.join(@config.host, asset.public_path))
|
|
210
223
|
end
|
|
211
224
|
end
|
|
212
225
|
end
|
|
@@ -25,14 +25,14 @@ module Pakyow
|
|
|
25
25
|
apply_extension do
|
|
26
26
|
after "boot", "fetch.assets.externals" do
|
|
27
27
|
if config.assets.externals.pakyow
|
|
28
|
-
external_script :pakyow, "^1.0.0-rc.
|
|
28
|
+
external_script :pakyow, "^1.0.0-rc.2", package: "@pakyow/js", files: [
|
|
29
29
|
"dist/pakyow.js",
|
|
30
30
|
"dist/components/confirmable.js",
|
|
31
31
|
"dist/components/form.js",
|
|
32
32
|
"dist/components/freshener.js",
|
|
33
33
|
"dist/components/navigator.js",
|
|
34
34
|
"dist/components/socket.js",
|
|
35
|
-
"dist/components/
|
|
35
|
+
"dist/components/submittable.js"
|
|
36
36
|
]
|
|
37
37
|
end
|
|
38
38
|
|
|
@@ -13,7 +13,7 @@ module Pakyow
|
|
|
13
13
|
if self.class.includes_framework?(:presenter)
|
|
14
14
|
self.class.processor :html do |content|
|
|
15
15
|
state(:asset).each do |asset|
|
|
16
|
-
content.gsub!(asset.logical_path, asset.public_path)
|
|
16
|
+
content.gsub!(asset.logical_path, File.join(config.assets.host, asset.public_path))
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
content
|
|
@@ -22,11 +22,11 @@ module Pakyow
|
|
|
22
22
|
pack.public_path
|
|
23
23
|
}.each do |pack|
|
|
24
24
|
if pack.javascripts?
|
|
25
|
-
head.object.append_html("<script src=\"#{pack.public_path}.js\"></script>\n")
|
|
25
|
+
head.object.append_html("<script src=\"#{File.join(app.config.assets.host, pack.public_path)}.js\"></script>\n")
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
if pack.stylesheets?
|
|
29
|
-
head.object.append_html("<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"#{pack.public_path}.css\">\n")
|
|
29
|
+
head.object.append_html("<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"#{File.join(app.config.assets.host, pack.public_path)}.css\">\n")
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
32
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pakyow-assets
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.0.
|
|
4
|
+
version: 1.0.0.rc4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bryan Powell
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-07-
|
|
11
|
+
date: 2019-07-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pakyow-core
|
|
@@ -16,56 +16,56 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - '='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 1.0.0.
|
|
19
|
+
version: 1.0.0.rc4
|
|
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: 1.0.0.
|
|
26
|
+
version: 1.0.0.rc4
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: pakyow-presenter
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - '='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 1.0.0.
|
|
33
|
+
version: 1.0.0.rc4
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - '='
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 1.0.0.
|
|
40
|
+
version: 1.0.0.rc4
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: pakyow-routing
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
45
|
- - '='
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 1.0.0.
|
|
47
|
+
version: 1.0.0.rc4
|
|
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: 1.0.0.
|
|
54
|
+
version: 1.0.0.rc4
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: pakyow-support
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
59
|
- - '='
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: 1.0.0.
|
|
61
|
+
version: 1.0.0.rc4
|
|
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: 1.0.0.
|
|
68
|
+
version: 1.0.0.rc4
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: execjs
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|