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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12509d83d332a8563759cef0b244aa92d96290f3a5578cf6a5fa7dc47a3ad889
4
- data.tar.gz: 67f2e3b9a3120dc9627a5d8ecfab71d648ebcb4207b66b34ad1afc464e149131
3
+ metadata.gz: ba7e64f833285ce837eaa898746c6801a297495c3dc4a14869a2b7dfb12ee97a
4
+ data.tar.gz: b19a832d43a12a70769d017bb38e59ef2da16b18e62a5d480c75379673d39156
5
5
  SHA512:
6
- metadata.gz: 5e403a748eaa88a6e7e633a62eb9fa23624200a44f4612e48770ad30c0c1cdee2f6036b97e874919eaed5f06bde4e5e3000a8532b5b994abb90ef82d00c8c20e
7
- data.tar.gz: 245d5e89c79f3d2e8bdacedbceaf7e0e3bccda4064da5efdda1072497b946a7f82264d4ea9dd73ffae90c1a1472485ec47442c91985cd53aa2c14a7845f040ea
6
+ metadata.gz: d18dacb103fb7fe11b10bfa1cc5be9242fd8d10d2a7756a80748d041a52dc1b08c0577a24b05b4b8c6955f5f711fd91e8ed93c5587d078da480576e67233349b
7
+ data.tar.gz: eff33c723ee6a2c2a8a6a08afeb57438da50892f04564ca35f82754ea5011c0a58e02f26dc7ecef44050d9de2b1bbe3e35394f7bae29a6b94a4329c076c7953d
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2023 thomas morgan
1
+ Copyright (c) 2014-2024 thomas morgan
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -49,3 +49,8 @@ And then execute:
49
49
  3. Commit your changes (`git commit -am 'Add some feature'`)
50
50
  4. Push to the branch (`git push origin my-new-feature`)
51
51
  5. Create new Pull Request
52
+
53
+
54
+ ## License
55
+
56
+ MIT
@@ -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
- if app.config.respond_to?(:public_file_server)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SmartAssets
4
- VERSION = '1.0.0'
4
+ VERSION = '1.1.0'
5
5
  end
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.0.0
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: 2023-10-05 00:00:00.000000000 Z
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: '7.2'
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: '7.2'
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.4.10
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