smart_assets 1.2.0 → 1.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f58dbb7cb9d9bc19de0527595a9411d95fd8f962bb7a8559e0acdac378666d9d
4
- data.tar.gz: eb6a5ee3913821d3147f60ef772b95deccd47b1b5a3b4b8d3592b65fb1b29ba9
3
+ metadata.gz: 4bd4ab83a65e6a570762e8369cbe2e39e2053e37a808891eacded54732133550
4
+ data.tar.gz: 53fcf5595cbcca170633e3c99b8bd09278faf311e47026bdf0ac2bfa2544663e
5
5
  SHA512:
6
- metadata.gz: ab5b8396fe953e3a318cca4a43fde53ac1ddbc6a72248645cd7b4111a30737237e6270f284ba30638bed101ea0470bbb0285abbc59905a2054bcb89961f1b1a8
7
- data.tar.gz: b682f53451d5286143b35fa93de683e4567720b4e9922f17b08ff7d0932f4ddb1a60b160582712217705c65b37ab5b0142cab24559cae737a43d03151c29c36e
6
+ metadata.gz: 6b8c78e8813fa84a229b892941b635e270cfa90461eb326e55cf86d251d2b25f1df7856d9c187b1c45e0df0203653e8ae1f2483db615928e3ba250bbbfa9ab0c
7
+ data.tar.gz: 41f90cd6ca296f0345493cae9db440fd719d2f046d03b480cc0e613ea026f2b2a9dc84038b79f6e3ec35bd9a658a8a8c9728c351080f14165219cf0e800afd81
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2024 thomas morgan
1
+ Copyright 2014-2026 thomas morgan
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # SmartAssets
2
2
 
3
- SmartAssets is a Rack Middleware for Rails that enables delivery of non-digest assets when using the default asset pipeline.
3
+ SmartAssets is a Rack Middleware for Rails that enables delivery of non-digest assets when using Sprockets for the asset pipeline.
4
4
 
5
5
  It solves the problem of production environment requests for assets (eg: `application.css`) returning a 404 because they do not contain a digest (eg: `application-1c8db23293725a8857e5132d59211909.css`).
6
6
 
@@ -14,7 +14,7 @@ This middleware works by reading the sprockets manifest file and internally chan
14
14
 
15
15
  In order to minimize the risks of long caching while using this gem, requests where the requested filename is mutated will set `Cache-Control: public,max-age=60`.
16
16
 
17
- This can be configured in your environment files (or an initializer). `max-age` is in seconds. If you've configured apache or nginx to set Cache-Control, you may need to ensure that configuration doesn't override this.
17
+ This can be configured in your environment files (or an initializer). `max-age` is in seconds. If you've configured Apache, Nginx, Traefik, or any other reverse proxy or load balancer to set Cache-Control, you may need to ensure that configuration doesn't override this.
18
18
 
19
19
  config.smart_assets.cache_control = 'public,max-age=60'
20
20
 
@@ -42,6 +42,13 @@ And then execute:
42
42
  $ bundle
43
43
 
44
44
 
45
+ ## Compatibility
46
+
47
+ Works with `sprockets-rails` 3.x. `propshaft` not presently supported.
48
+
49
+ Tested against the latest Rails, but should work from Rails 6.1 onward.
50
+
51
+
45
52
  ## Contributing
46
53
 
47
54
  1. Fork it ( https://github.com/zarqman/smart_assets/fork )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SmartAssets
4
- VERSION = '1.2.0'
4
+ VERSION = '1.3.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - thomas morgan
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-03 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rails
@@ -17,9 +16,6 @@ dependencies:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
18
  version: '6.1'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '8.1'
23
19
  type: :runtime
24
20
  prerelease: false
25
21
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,9 +23,6 @@ dependencies:
27
23
  - - ">="
28
24
  - !ruby/object:Gem::Version
29
25
  version: '6.1'
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '8.1'
33
26
  - !ruby/object:Gem::Dependency
34
27
  name: sprockets-rails
35
28
  requirement: !ruby/object:Gem::Requirement
@@ -111,8 +104,9 @@ homepage: https://github.com/zarqman/smart_assets
111
104
  licenses:
112
105
  - MIT
113
106
  metadata:
107
+ homepage_uri: https://github.com/zarqman/smart_assets
108
+ source_code_uri: https://github.com/zarqman/smart_assets
114
109
  changelog_uri: https://github.com/zarqman/smart_assets/blob/master/CHANGELOG.md
115
- post_install_message:
116
110
  rdoc_options: []
117
111
  require_paths:
118
112
  - lib
@@ -127,8 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
121
  - !ruby/object:Gem::Version
128
122
  version: '0'
129
123
  requirements: []
130
- rubygems_version: 3.5.22
131
- signing_key:
124
+ rubygems_version: 3.6.9
132
125
  specification_version: 4
133
126
  summary: Rails/Rack middleware to enable delivery of non-digest assets
134
127
  test_files: []