non-digest-assets 2.0.0 → 2.1.0

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +16 -19
  3. metadata +17 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ebdb930f957681b539f3dbfc214cd3a041ed901a1e9fb01719f8a611f5227af
4
- data.tar.gz: 76141afddc5de405fbd84e258a1af2a7fbff36e60bdb5846a54d356cee3989fc
3
+ metadata.gz: 3a3433ab2d073111ffd8139abb4afe36a14aed99e949b37cd28270b075015c68
4
+ data.tar.gz: 113f6f5ac39816845650f4127cbce739d66feee73225ca124f73209a9631b052
5
5
  SHA512:
6
- metadata.gz: 854e20da094f3c1ed59a5e33cd76b7082985555d074adcec436f2d5501a6fe93ab2d4499c4bdb890179a9c7e05335c824a434c003591c33d7c9fc846d331e218
7
- data.tar.gz: f626372d9ee5705a70b19e567c9f3f1181262d8db9e39a5e57a8100d3fe0f95ebd4b4b0c7982075b9217dffe9a10876ad7a7754f1cf6983f7aad8a40425f8d2f
6
+ metadata.gz: 4a63c8cec3f04af579271975f125b6fd3e4798670965cb187f4e8af9e8d075649d9c9bbbe1aeec72ee6364abfb9894b845a399e1f2b7aceaef0fc76b6be3b3d8
7
+ data.tar.gz: bab17ed7ca819150b17573b501f43368f2f096d2d18080779bf4a00c69cfb801f770ee4a5858de78082505b0c250cf16ff804df2187adf9de87c9f7362f85801
data/README.md CHANGED
@@ -1,16 +1,13 @@
1
- Non-digest assets in Rails
2
- ==========================
1
+ # Non-digest assets in Rails
3
2
 
4
- What is it?
5
- -----------
3
+ ## What is it?
6
4
 
7
5
  In Rails starting from version 4, there is no way to by default compile both
8
6
  digest and non-digest assets. This is problematic if you also need to refer to
9
7
  assets from outside your Rails application. This gem solves the problem with the
10
8
  minimum possible effort.
11
9
 
12
- How do I install it?
13
- --------------------
10
+ ## How do I install it?
14
11
 
15
12
  Just put it in your Gemfile
16
13
 
@@ -33,8 +30,7 @@ path of the asset in question.
33
30
  Note that the logical path is what you would provide to `asset_url`, so for an
34
31
  image at `RAILS_ROOT/assets/images/foo.png` the logical path is `foo.png`
35
32
 
36
- But shouldn't I always use the Rails asset helpers anyway?
37
- ----------------------------------------------------------
33
+ ## But shouldn't I always use the Rails asset helpers anyway?
38
34
 
39
35
  Yes. But there are some obvious cases where you can't do this:
40
36
 
@@ -42,8 +38,8 @@ Yes. But there are some obvious cases where you can't do this:
42
38
  * In a static error page, e.g. a 404 page or a 500 page
43
39
  * Referencing the assets from outside your rails application
44
40
 
45
- What about other solutions?
46
- --------------------------
41
+ ## What about other solutions?
42
+
47
43
  [sprockets-redirect](https://github.com/sikachu/sprockets-redirect) uses a rack
48
44
  middleware to 302 redirect to the digest asset. This is terrible for
49
45
  performance because it requires 2 HTTP requests, and it also hits your ruby
@@ -55,27 +51,28 @@ will solve this problem, but requires an extra rake task. It won't work by
55
51
  default with things like capistrano / heroku. And it requires you to manage the
56
52
  code in your app.
57
53
 
58
- Why do I need digest assets at all?
59
- -----------------------------------
54
+ ## Why do I need digest assets at all?
60
55
 
61
56
  Digests are used for cache busting. Remember that if you use the non-digest
62
57
  assets and serve them with far-future expires headers, you will cause problems
63
58
  with cached assets if the contents ever need to change. You must bear this in
64
59
  mind when using non-digest assets.
65
60
 
66
- Why is this not the default or a config option in Rails?
67
- ----------------------------------------------------------------
61
+ ## Why is this not the default or a config option in Rails?
68
62
 
69
63
  The sprockets-rails developers do not want to support it.
70
64
  [Read the discussion here](https://github.com/rails/sprockets-rails/issues/49)
71
65
 
72
- Which versions of Ruby and Rails are supported?
73
- --------------------------------------
66
+ ## Which versions of Ruby and Rails are supported?
74
67
 
75
- This gem is tested with Rails 5.2 and 6.0 and targets Ruby 2.5 and up.
68
+ This gem is tested with Rails 5.2, 6.0, 6.1 and 7.0 alpha and targets Ruby 2.6
69
+ and up.
76
70
 
77
- Who wrote this?
78
- ---------------
71
+ ## Who wrote this?
79
72
 
80
73
  This gem was created under a different name by Alex Speller and is currently
81
74
  maintained by Matijs van Zuijlen.
75
+
76
+ ## Can I contribute?
77
+
78
+ Certainly. See [CONTRIBUTING.md](CONTRIBUTING.md) for contribution guidelines.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: non-digest-assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Speller
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-10-08 00:00:00.000000000 Z
12
+ date: 2021-12-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -20,7 +20,7 @@ dependencies:
20
20
  version: '5.2'
21
21
  - - "<"
22
22
  - !ruby/object:Gem::Version
23
- version: '6.2'
23
+ version: '7.1'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
@@ -30,7 +30,7 @@ dependencies:
30
30
  version: '5.2'
31
31
  - - "<"
32
32
  - !ruby/object:Gem::Version
33
- version: '6.2'
33
+ version: '7.1'
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: sprockets
36
36
  requirement: !ruby/object:Gem::Requirement
@@ -99,20 +99,20 @@ dependencies:
99
99
  requirements:
100
100
  - - ">="
101
101
  - !ruby/object:Gem::Version
102
- version: '5.0'
102
+ version: '5.2'
103
103
  - - "<"
104
104
  - !ruby/object:Gem::Version
105
- version: '6.2'
105
+ version: '7.1'
106
106
  type: :development
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - ">="
111
111
  - !ruby/object:Gem::Version
112
- version: '5.0'
112
+ version: '5.2'
113
113
  - - "<"
114
114
  - !ruby/object:Gem::Version
115
- version: '6.2'
115
+ version: '7.1'
116
116
  - !ruby/object:Gem::Dependency
117
117
  name: rake
118
118
  requirement: !ruby/object:Gem::Requirement
@@ -147,14 +147,14 @@ dependencies:
147
147
  requirements:
148
148
  - - "~>"
149
149
  - !ruby/object:Gem::Version
150
- version: 1.22.0
150
+ version: 1.24.0
151
151
  type: :development
152
152
  prerelease: false
153
153
  version_requirements: !ruby/object:Gem::Requirement
154
154
  requirements:
155
155
  - - "~>"
156
156
  - !ruby/object:Gem::Version
157
- version: 1.22.0
157
+ version: 1.24.0
158
158
  - !ruby/object:Gem::Dependency
159
159
  name: rubocop-packaging
160
160
  requirement: !ruby/object:Gem::Requirement
@@ -175,14 +175,14 @@ dependencies:
175
175
  requirements:
176
176
  - - "~>"
177
177
  - !ruby/object:Gem::Version
178
- version: 1.11.3
178
+ version: 1.12.0
179
179
  type: :development
180
180
  prerelease: false
181
181
  version_requirements: !ruby/object:Gem::Requirement
182
182
  requirements:
183
183
  - - "~>"
184
184
  - !ruby/object:Gem::Version
185
- version: 1.11.3
185
+ version: 1.12.0
186
186
  - !ruby/object:Gem::Dependency
187
187
  name: rubocop-rails
188
188
  requirement: !ruby/object:Gem::Requirement
@@ -217,14 +217,14 @@ dependencies:
217
217
  requirements:
218
218
  - - "~>"
219
219
  - !ruby/object:Gem::Version
220
- version: 2.5.0
220
+ version: 2.6.0
221
221
  type: :development
222
222
  prerelease: false
223
223
  version_requirements: !ruby/object:Gem::Requirement
224
224
  requirements:
225
225
  - - "~>"
226
226
  - !ruby/object:Gem::Version
227
- version: 2.5.0
227
+ version: 2.6.0
228
228
  description: |2
229
229
  Rails provides no option to generate both digest and non-digest
230
230
  assets. Installing this gem automatically creates both digest and
@@ -241,7 +241,8 @@ files:
241
241
  homepage: http://github.com/mvz/non-digest-assets
242
242
  licenses:
243
243
  - MIT
244
- metadata: {}
244
+ metadata:
245
+ rubygems_mfa_required: 'true'
245
246
  post_install_message:
246
247
  rdoc_options: []
247
248
  require_paths:
@@ -257,7 +258,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
257
258
  - !ruby/object:Gem::Version
258
259
  version: '0'
259
260
  requirements: []
260
- rubygems_version: 3.2.22
261
+ rubygems_version: 3.2.33
261
262
  signing_key:
262
263
  specification_version: 4
263
264
  summary: Make the Rails asset pipeline generate non-digest along with digest assets