manifester 0.1.6 → 0.1.7

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: '088a2766a4deabda3e26b0d0efac8b7c00686310c40c63dac4094e0b2177e294'
4
- data.tar.gz: d786b667e35626daab164c4bc86e8f5703e74ff1e78ee837aa2ff96b162c73ca
3
+ metadata.gz: 29824867c809881b67054ed4b5afe7da25f2522c8942c2a97ffabc3cb77e318e
4
+ data.tar.gz: 0f7e32d8feaf9d0808b4c280ca3ea8b480b2f43ef449e6294f1c2071498df8e4
5
5
  SHA512:
6
- metadata.gz: 4862ea4890fa0d2c8372c008a9fd982e0accf20c2fc3ef70e95f5e6b318e6851b25702f8b73a18f72a5faa38f1d2a6e0258314d773a9b7a69ce935016ff1857a
7
- data.tar.gz: 51e5199b390f57262d8cff1cf07488dfe90637e63a12195a8d247988976982885e37702b09dc8737b2793848e389246eca88affcebe1321a34bd70c325dc90f8
6
+ metadata.gz: 43ec8577fc3597f5ee45875c6d057c8c08da99f437a817fd8239f069925e47dbca35409420a6cf0905ea3928059ed662835ac3192413d937b8723a53516269f3
7
+ data.tar.gz: b582bb945ae72312d85ac10ecd117e07faf4061511818281d13d57718e2d1e904a1e89c8c17b976cb10104ccbc8682a56917a9be56d2a9fb8721974bcb65ad4a
data/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Manifester
2
- Short description and motivation.
2
+ Manifester was born from the need to ship webpacker generated assets without webpacker.
3
+
4
+ When we first shipped [Avo](https://github.com/avo-hq/avo) we shipped it with the whole Webpacker pipeline. That meant rebuilding the assets on every deploy of the parent app and other nasty unwanted behaviors (conflicting pipelines, etc.).
5
+
6
+ We just needed something that would take the packed files when we and
3
7
 
4
8
  ## Usage
5
9
  How to use my plugin.
@@ -108,7 +108,7 @@ module Manifester
108
108
  def javascript_manifest_tag(*names, **options)
109
109
  return javascript_pack_tag(*names, **options) if fallback_to_webpacker?
110
110
 
111
- javascript_include_tag(*sources_from_manifest_entrypoints(names, type: :javascript), **options)
111
+ javascript_include_tag(*manifester_sources_from_manifest_entrypoints(names, type: :javascript), **options)
112
112
  end
113
113
 
114
114
  # Creates a link tag, for preloading, that references a given Manifester asset.
@@ -153,12 +153,12 @@ module Manifester
153
153
  def stylesheet_manifest_tag(*names, **options)
154
154
  return stylesheet_pack_tag(*names, **options) if fallback_to_webpacker?
155
155
 
156
- stylesheet_link_tag(*sources_from_manifest_entrypoints(names, type: :stylesheet), **options)
156
+ stylesheet_link_tag(*manifester_sources_from_manifest_entrypoints(names, type: :stylesheet), **options)
157
157
  end
158
158
 
159
159
  private
160
160
 
161
- def sources_from_manifest_entrypoints(names, type:)
161
+ def manifester_sources_from_manifest_entrypoints(names, type:)
162
162
  names.map { |name| current_manifester_instance.manifest.lookup_manifest_with_chunks!(name.to_s, type: type) }.flatten.uniq
163
163
  end
164
164
 
@@ -1,3 +1,3 @@
1
1
  module Manifester
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
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.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin
@@ -38,8 +38,8 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: Manifester loads stylesheets and javascript assets from your manifest.json
42
- file.
41
+ description: Manifester loads your webpacker generated javascript and stylesheets
42
+ assets from your manifest.json file.
43
43
  email:
44
44
  - adrian@adrianthedev.com
45
45
  executables: []
@@ -58,11 +58,11 @@ files:
58
58
  - lib/manifester/manifest.rb
59
59
  - lib/manifester/version.rb
60
60
  - lib/tasks/manifester_tasks.rake
61
- homepage: https://avohq.io
61
+ homepage: https://github.com/avo-hq/manifester
62
62
  licenses:
63
63
  - MIT
64
64
  metadata:
65
- homepage_uri: https://avohq.io
65
+ homepage_uri: https://github.com/avo-hq/manifester
66
66
  source_code_uri: https://github.com/avo-hq/manifester
67
67
  changelog_uri: https://github.com/avo-hq/manifester
68
68
  post_install_message:
@@ -83,6 +83,5 @@ requirements: []
83
83
  rubygems_version: 3.0.3
84
84
  signing_key:
85
85
  specification_version: 4
86
- summary: Manifester loads stylesheets and javascript assets from your manifest.json
87
- file.
86
+ summary: Manifester loads your webpacker generated assets.
88
87
  test_files: []