manifester 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f56198d24089e1e07ceefeb6d32815b16cb9fd4af486f35115ad723cb79da23
4
- data.tar.gz: 5e5da6d15231011463c71fd74f5c10ad64f98c582a73a19010f8c8d8bee176e7
3
+ metadata.gz: 970a70f2001b8db6a644a0a2838892722797a372e4864a68808b820f3b19ba47
4
+ data.tar.gz: 5593f78a76fbf7555dea253fcad7397c4c8b9f664e75350fbc2e6052fe002740
5
5
  SHA512:
6
- metadata.gz: eea664adc048231d6e35d6c0589cf758e07d4c98e2b172254560ae15dbde10d3fc05704b8edde38a09251cf220e3177b419ea377763834c99a83a80b5c65490b
7
- data.tar.gz: 8f40f946e02ab5a68954183e4102b93b8bafb32f8e181974f14e5e4419c36dbf921cbde76c7282387f876a4afc29356f881f9bba3e31379c71504af51c46b2ed
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 Webpacker asset.
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 Webpacker asset.
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 Webpacker image with the same automated processing as image_manifest_tag.
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 Webpacker image with the same automated
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 Webpacker asset.
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
@@ -1,5 +1,9 @@
1
+ require "zeitwerk"
1
2
  require "manifester/version"
2
3
 
4
+ loader = Zeitwerk::Loader.for_gem
5
+ loader.setup
6
+
3
7
  module Manifester
4
8
  extend self
5
9
 
@@ -1,3 +1,3 @@
1
1
  module Manifester
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
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.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: