smart_assets 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +5 -0
- data/lib/smart_assets/railtie.rb +1 -7
- data/lib/smart_assets/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba7e64f833285ce837eaa898746c6801a297495c3dc4a14869a2b7dfb12ee97a
|
4
|
+
data.tar.gz: b19a832d43a12a70769d017bb38e59ef2da16b18e62a5d480c75379673d39156
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d18dacb103fb7fe11b10bfa1cc5be9242fd8d10d2a7756a80748d041a52dc1b08c0577a24b05b4b8c6955f5f711fd91e8ed93c5587d078da480576e67233349b
|
7
|
+
data.tar.gz: eff33c723ee6a2c2a8a6a08afeb57438da50892f04564ca35f82754ea5011c0a58e02f26dc7ecef44050d9de2b1bbe3e35394f7bae29a6b94a4329c076c7953d
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
data/lib/smart_assets/railtie.rb
CHANGED
@@ -11,13 +11,7 @@ module SmartAssets
|
|
11
11
|
prefix = app.config.smart_assets.prefix || app.config.assets.prefix || '/assets'
|
12
12
|
cc = app.config.smart_assets.cache_control
|
13
13
|
|
14
|
-
|
15
|
-
app.config.public_file_server.enabled = true # >= 5.0
|
16
|
-
elsif app.config.respond_to?(:serve_static_files)
|
17
|
-
app.config.serve_static_files = true # = 4.2
|
18
|
-
else
|
19
|
-
app.config.serve_static_assets = true # <= 4.1
|
20
|
-
end
|
14
|
+
app.config.public_file_server.enabled = true
|
21
15
|
|
22
16
|
app.middleware.insert_after(::Rack::Sendfile, SmartAssets::Rack, prefix, cc)
|
23
17
|
end
|
data/lib/smart_assets/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smart_assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thomas morgan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '6.1'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '8.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '6.1'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '8.0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: sprockets-rails
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
127
|
- !ruby/object:Gem::Version
|
128
128
|
version: '0'
|
129
129
|
requirements: []
|
130
|
-
rubygems_version: 3.
|
130
|
+
rubygems_version: 3.5.22
|
131
131
|
signing_key:
|
132
132
|
specification_version: 4
|
133
133
|
summary: Rails/Rack middleware to enable delivery of non-digest assets
|