manifester 0.1.1 → 0.1.2
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 +4 -4
- data/app/helpers/manifester/application_helper.rb +5 -5
- data/lib/manifester.rb +4 -0
- data/lib/manifester/version.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 970a70f2001b8db6a644a0a2838892722797a372e4864a68808b820f3b19ba47
|
4
|
+
data.tar.gz: 5593f78a76fbf7555dea253fcad7397c4c8b9f664e75350fbc2e6052fe002740
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 225a319989dd4f87be860b5924c5b1420645d57fb348624c6e5a6501c37e165822f3a3fde229e0b1b309edfa057252be1aff990db9e8f2c94a561ced062cd63c
|
7
|
+
data.tar.gz: cb9a5f88e5e0c4e25c0f9a65bcdc09f3c57e136184de784c34c11d01adf4b2f078a003b2f22b0727061a801d99bce3a1a76291ac6849b5910567f4aa5005c996
|
@@ -4,7 +4,7 @@ module Manifester
|
|
4
4
|
Manifester.instance
|
5
5
|
end
|
6
6
|
|
7
|
-
# Computes the relative path for a given
|
7
|
+
# Computes the relative path for a given Manifester asset.
|
8
8
|
# Returns the relative path using manifest.json and passes it to path_to_asset helper.
|
9
9
|
# This will use path_to_asset internally, so most of their behaviors will be the same.
|
10
10
|
#
|
@@ -15,7 +15,7 @@ module Manifester
|
|
15
15
|
path_to_asset(current_manifester_instance.manifest.lookup!(name), options)
|
16
16
|
end
|
17
17
|
|
18
|
-
# Computes the absolute path for a given
|
18
|
+
# Computes the absolute path for a given Manifester asset.
|
19
19
|
# Returns the absolute path using manifest.json and passes it to url_to_asset helper.
|
20
20
|
# This will use url_to_asset internally, so most of their behaviors will be the same.
|
21
21
|
#
|
@@ -26,14 +26,14 @@ module Manifester
|
|
26
26
|
url_to_asset(current_manifester_instance.manifest.lookup!(name), options)
|
27
27
|
end
|
28
28
|
|
29
|
-
# Computes the relative path for a given
|
29
|
+
# Computes the relative path for a given Manifester image with the same automated processing as image_manifest_tag.
|
30
30
|
# Returns the relative path using manifest.json and passes it to path_to_asset helper.
|
31
31
|
# This will use path_to_asset internally, so most of their behaviors will be the same.
|
32
32
|
def image_manifest_path(name, **options)
|
33
33
|
resolve_path_to_image(name, **options)
|
34
34
|
end
|
35
35
|
|
36
|
-
# Computes the absolute path for a given
|
36
|
+
# Computes the absolute path for a given Manifester image with the same automated
|
37
37
|
# processing as image_manifest_tag. Returns the relative path using manifest.json
|
38
38
|
# and passes it to path_to_asset helper. This will use path_to_asset internally,
|
39
39
|
# so most of their behaviors will be the same.
|
@@ -97,7 +97,7 @@ module Manifester
|
|
97
97
|
javascript_include_tag(*sources_from_manifest_entrypoints(names, type: :javascript), **options)
|
98
98
|
end
|
99
99
|
|
100
|
-
# Creates a link tag, for preloading, that references a given
|
100
|
+
# Creates a link tag, for preloading, that references a given Manifester asset.
|
101
101
|
# In production mode, the digested reference is automatically looked up.
|
102
102
|
# See: https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content
|
103
103
|
#
|
data/lib/manifester.rb
CHANGED
data/lib/manifester/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manifester
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrian Marin
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '6.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: zeitwerk
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
description: Manifester loads stylesheets and javascript assets from your manifest.json
|
28
42
|
file.
|
29
43
|
email:
|