rails-assets-manifest 3.0.0 → 3.0.1

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: 36c667b7c457d214df43ac5f4c9e54f5baac237c0f9a61ac3eeedc6d1d458ab9
4
- data.tar.gz: 1a7c777200e2087c05be7759091007857861261a5d00912256f35f5ff98d2a6c
3
+ metadata.gz: 5974a3b4fff5b1fe7707a7df0aaaf7d354c8d020561055bacac3cc9dc39e6355
4
+ data.tar.gz: 30f7391c4b4e56f7df9c2af7ddc22ae80571a7c8fe8651f8d8248eb5a2edc493
5
5
  SHA512:
6
- metadata.gz: 6117f1e88a27ba3dd5ce5edc85a21952e91de97abd3d72bc9b37a1527aa8352a7170371acf2bec29a268a8aced6b3519af4d9e4409848f041c9d950090ca38cb
7
- data.tar.gz: 2f38b29bf90d82cd5a4a8e039a2fef2bd536326d1fe81eb3ee9e04d5b2637f4f3114a5deeb75ce6a6aec332cdf7874056033d4dde53d8bea7bc5d053774dbc6a
6
+ metadata.gz: 6195b6c9b380df50db4d494e766f3255c32974e5594174044a41dc0081d3b612c7463a45204b844f4caa9622ae4aed4417c764503e0fe983dc235428ed3b89ff
7
+ data.tar.gz: 34c468a647f03cf79c25f409c2e660fb891265fb3bba513742b06bcaceeaa8a2b974d2e8325d87c2371ca674de711109ae3b5a2033c55e7fef28bd168a5def29
@@ -4,12 +4,13 @@ on: push
4
4
  jobs:
5
5
  rspec:
6
6
  name: "ruby:${{ matrix.ruby }} rails:${{ matrix.rails }} ${{ matrix.variant }}"
7
- runs-on: ubuntu-20.04
7
+ runs-on: ubuntu-22.04
8
8
 
9
9
  strategy:
10
10
  fail-fast: false
11
11
  matrix:
12
12
  ruby:
13
+ - "3.2"
13
14
  - "3.1"
14
15
  - "3.0"
15
16
  - "2.7"
@@ -22,8 +23,8 @@ jobs:
22
23
  - ""
23
24
  - "no-sprockets"
24
25
  exclude:
25
- - ruby: "3.1"
26
- rails: "6.1"
26
+ - ruby: "3.2"
27
+ rails: "5.2"
27
28
  - ruby: "3.1"
28
29
  rails: "6.0"
29
30
  - ruby: "3.1"
@@ -49,7 +50,7 @@ jobs:
49
50
 
50
51
  rubocop:
51
52
  name: rubocop
52
- runs-on: ubuntu-20.04
53
+ runs-on: ubuntu-22.04
53
54
 
54
55
  env:
55
56
  BUNDLE_WITHOUT: development
@@ -0,0 +1,22 @@
1
+ # markdownlint config
2
+
3
+ # The CHANGELOG contains duplicated headers by design
4
+ MD024: false
5
+
6
+ # MD013/line-length: disable line length for all. We prefer lines as
7
+ # long as paragraph with in-editor line breaks.
8
+ MD013: false
9
+
10
+ # MD033/no-inline-html: allow often need tags
11
+ MD033:
12
+ allowed_elements:
13
+ - figure
14
+ - figcaption
15
+
16
+ # MD046/code-block-style: code block style conflicting with
17
+ # admonitions...
18
+ MD046: false
19
+
20
+ # MD048/code-fence-style: code fence style
21
+ MD048:
22
+ style: backtick
data/CHANGELOG.md CHANGED
@@ -3,9 +3,8 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a Changelog](http://keepachangelog.com/).
5
5
 
6
-
7
-
8
6
  ## Unreleased
7
+
9
8
  ---
10
9
 
11
10
  ### New
@@ -16,79 +15,95 @@ This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a Ch
16
15
 
17
16
  ### Breaks
18
17
 
18
+ ## 3.0.1 - (2023-08-17)
19
+
20
+ ---
21
+
22
+ ### Fixes
23
+
24
+ - Active View: nil is not a valid asset source issue in production app
19
25
 
20
26
  ## 3.0.0 - (2022-02-08)
27
+
21
28
  ---
22
29
 
23
30
  ### New
24
- * Test integration with a Rails application without sprockets
25
- * Add support for Rails 7.0 and Ruby 3.1
26
31
 
32
+ - Test integration with a Rails application without sprockets
33
+ - Add support for Rails 7.0 and Ruby 3.1
27
34
 
28
35
  ### Breaks
29
- * Default to `public/assets/assets-manifest.json` manifest path matching new default from `webpack-assets-manifest` plugin
30
- * Only support single manifest source file and error if not found (#9)
31
- * Use `config.assets_manifest` as the config base to avoid conflicts in apps without sprockets (#9)
32
- * Drop support for Ruby <2.7
33
36
 
37
+ - Default to `public/assets/assets-manifest.json` manifest path matching new default from `webpack-assets-manifest` plugin
38
+ - Only support single manifest source file and error if not found (#9)
39
+ - Use `config.assets_manifest` as the config base to avoid conflicts in apps without sprockets (#9)
40
+ - Drop support for Ruby <2.7
34
41
 
35
42
  ## 2.1.2 - (2021-09-05)
43
+
36
44
  ---
37
45
 
38
46
  ### Fixes
39
- * Return correct fully qualified URLs from manifest when relative URL host or asset host is configured
40
47
 
48
+ - Return correct fully qualified URLs from manifest when relative URL host or asset host is configured
41
49
 
42
50
  ## 2.1.1 - (2021-06-20)
51
+
43
52
  ---
44
53
 
45
54
  ### Fixes
46
- * Super method signature for keyword arguments
47
55
 
56
+ - Super method signature for keyword arguments
48
57
 
49
58
  ## 2.1.0 - (2019-09-11)
59
+
50
60
  ---
51
61
 
52
62
  ### New
53
- * Automatically add `crossorigin="anonymous"` for SRI resources
54
- * Separate manifest caching and eager loading
63
+
64
+ - Automatically add `crossorigin="anonymous"` for SRI resources
65
+ - Separate manifest caching and eager loading
55
66
 
56
67
  ### Changes
57
- * Remove defunct onboot manifest validation (f3fe8f57)
58
68
 
69
+ - Remove defunct onboot manifest validation (f3fe8f57)
59
70
 
60
71
  ## 2.0.1 - (2019-08-09)
72
+
61
73
  ---
62
74
 
63
75
  ### Fixes
64
- * Fix check if assets option node already exists
65
76
 
77
+ - Fix check if assets option node already exists
66
78
 
67
79
  ## 2.0.0 - (2019-08-08)
80
+
68
81
  ---
69
82
 
70
83
  ### New
71
- * Accept glob patterns for `manifests` option
72
84
 
85
+ - Accept glob patterns for `manifests` option
73
86
 
74
87
  ### Breaks
75
- * Change `manifest` configuration option into `manifests` to support multiple files
76
88
 
89
+ - Change `manifest` configuration option into `manifests` to support multiple files
77
90
 
78
91
  ## 1.1.0 - (2019-08-08)
92
+
79
93
  ---
80
94
 
81
95
  ### New
82
- * Add passthrough option to load assets from other plugins (e.g. sprockets)
96
+
97
+ - Add passthrough option to load assets from other plugins (e.g. sprockets)
83
98
 
84
99
  ### Changes
85
- * Only default to add available integrity if asset is from the manifest
86
100
 
101
+ - Only default to add available integrity if asset is from the manifest
87
102
 
88
103
  ## 1.0.0 - (2019-08-07)
104
+
89
105
  ---
90
106
 
91
107
  ### New
92
- * Initial release
93
-
94
108
 
109
+ - Initial release
data/Gemfile CHANGED
@@ -12,7 +12,7 @@ gem 'sqlite3', require: false
12
12
 
13
13
  gem 'rake', '~> 13.0'
14
14
  gem 'rspec', '~> 3.0'
15
- gem 'rspec-rails', '~> 5.0'
15
+ gem 'rspec-rails', '~> 6.0'
16
16
 
17
17
  gem 'pry'
18
18
  gem 'rubocop-config', github: 'jgraichen/rubocop-config', ref: 'v7', require: false
@@ -73,7 +73,7 @@ module Rails::Assets::Manifest
73
73
 
74
74
  # integrity hash passed directly
75
75
  if required.is_a?(String)
76
- next yield(source, integrity: required, crossorigin: 'anonymous', **kwargs)
76
+ next yield(source, {integrity: required, crossorigin: 'anonymous', **kwargs})
77
77
  end
78
78
 
79
79
  # Explicit passed `true` option
@@ -82,7 +82,7 @@ module Rails::Assets::Manifest
82
82
 
83
83
  raise IntegrityMissing.new "SRI missing for #{path}" unless integrity
84
84
 
85
- next yield(source, integrity: integrity, crossorigin: 'anonymous', **kwargs)
85
+ next yield(source, {integrity: integrity, crossorigin: 'anonymous', **kwargs})
86
86
  end
87
87
 
88
88
  # No integrity option passed or `nil` default from above
@@ -92,11 +92,11 @@ module Rails::Assets::Manifest
92
92
  # Only if it is an asset from our manifest and there is an integrity
93
93
  # we default to adding one
94
94
  if entry && entry.integrity
95
- next yield(source, integrity: entry.integrity, crossorigin: 'anonymous', **kwargs)
95
+ next yield(source, {integrity: entry.integrity, crossorigin: 'anonymous', **kwargs})
96
96
  end
97
97
  end
98
98
 
99
- yield(source, **kwargs)
99
+ yield(source, kwargs)
100
100
  end.join.html_safe
101
101
  end
102
102
 
@@ -6,7 +6,7 @@ module Rails
6
6
  module VERSION
7
7
  MAJOR = 3
8
8
  MINOR = 0
9
- PATCH = 0
9
+ PATCH = 1
10
10
  STAGE = nil
11
11
 
12
12
  STRING = [MAJOR, MINOR, PATCH, STAGE].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-assets-manifest
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Graichen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-08 00:00:00.000000000 Z
11
+ date: 2023-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -62,6 +62,7 @@ files:
62
62
  - ".editorconfig"
63
63
  - ".github/workflows/test.yml"
64
64
  - ".gitignore"
65
+ - ".markdownlint.yaml"
65
66
  - ".rspec"
66
67
  - ".rubocop.yml"
67
68
  - Appraisals
@@ -105,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
106
  - !ruby/object:Gem::Version
106
107
  version: '0'
107
108
  requirements: []
108
- rubygems_version: 3.3.3
109
+ rubygems_version: 3.4.18
109
110
  signing_key:
110
111
  specification_version: 4
111
112
  summary: Load all rails assets from an external manifest.