publishing_platform_location 0.4.2 → 0.4.3
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: 697dd05c6bf9ce5f546900bc91639a0827befa0dc283870faea79b0714f7c865
|
|
4
|
+
data.tar.gz: 635606aa06064cb7cd4580e15ea455effc656ff0d674dd656e5ffddff16d1122
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6b15d3ba239b7277a2ff9f5691a0089d79cfcd0aacfda88add5aaa5721251f7b5936298b60a71c7e087a20bf355c5f01b09fa923fe474aaa83b1736e70ec7edd
|
|
7
|
+
data.tar.gz: 1cfd92b6e12b4bb08c5eb015b6f0982cd02c9d7e60d9706e0d2c421165ac633074311940791d75703034b59ffaf02b92577f11e60125a32fc89e9373b653045c
|
|
@@ -47,6 +47,13 @@ class PublishingPlatformLocation
|
|
|
47
47
|
find(service, options.merge(external: true))
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
+
# Find the base URL for assets.
|
|
51
|
+
#
|
|
52
|
+
# @return [String] The assets base URL.
|
|
53
|
+
def asset_root
|
|
54
|
+
env_var_or_fallback("PUBLISHING_PLATFORM_ASSET_ROOT") { find("assets") }
|
|
55
|
+
end
|
|
56
|
+
|
|
50
57
|
# Find the base URL for the public website frontend.
|
|
51
58
|
def website_root
|
|
52
59
|
env_var_or_fallback("PUBLISHING_PLATFORM_WEBSITE_ROOT") { find("www") }
|
|
@@ -55,7 +62,7 @@ class PublishingPlatformLocation
|
|
|
55
62
|
class << self
|
|
56
63
|
extend Forwardable
|
|
57
64
|
|
|
58
|
-
def_delegators :new, :find, :external_url_for, :website_root
|
|
65
|
+
def_delegators :new, :find, :external_url_for, :asset_root, :website_root
|
|
59
66
|
end
|
|
60
67
|
|
|
61
68
|
private
|