adsf 1.4.7 → 1.4.8

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: cd19b64a645ae62ffcc22dcf97cf5cb98d4ce756583755631646e03e369740a4
4
- data.tar.gz: aa88b49a59830d4298cf5b634258010d6b1d0757a4192de2a1fae156c81bf0af
3
+ metadata.gz: d47c094094044d3f804bfb77bfd56b43fb6705bbccafb7e33085a4d3bd8fdcf1
4
+ data.tar.gz: 5b5a8708d1cf40b11975c668c2caef9635148eb3b3622479e3564ecc4a757871
5
5
  SHA512:
6
- metadata.gz: c82f31a29d08c8d30e349e2e37188343516ae8dfe924aa96f027f55bb22553a6c521d40335bc20668e1190abcc8e662aeb0f920e0eca247e6d9cf2b6f3ee8f45
7
- data.tar.gz: 4ad549207aecfff4ac26468c63e5ec58a8971f8fd7b3db6179cf4c1783f266e16cfaaa4f2cc491bbe5b03e2f79c91befa251f07a224715aef8b2db3c2071e3a5
6
+ metadata.gz: b95fd1886ed101dc6b1a7ebce8fd8b5251849b261553a0f196462e9e2d372de673144c45683c180bbe279c00cc711ebab9480d8da038ca6c618b1fd5d96f2b11
7
+ data.tar.gz: 0422a6745355809dd5b37018447175905fd2c8fca5495d0c5c92a284a09033d46ed580cc585830823435ef2af65faa0c665934186add0bec42a00d39a5a03923
data/NEWS.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release notes for adsf
2
2
 
3
+ ## 1.4.8 (2023-10-14)
4
+
5
+ Fixes:
6
+
7
+ * Fixed deprecation warning for `Rack::File` (#30, #32)
8
+
3
9
  ## 1.4.7 (2023-03-18)
4
10
 
5
11
  Fixes:
data/README.md CHANGED
@@ -35,7 +35,7 @@ The `Adsf::Rack::IndexFileFinder` middleware makes Rack load an index file (e.g.
35
35
 
36
36
  ```ruby
37
37
  use Adsf::Rack::IndexFileFinder, root: 'public'
38
- run Rack::File.new('public')
38
+ run Rack::Files.new('public')
39
39
  ```
40
40
 
41
41
  It takes the following options:
@@ -48,12 +48,12 @@ It takes the following options:
48
48
  use Adsf::Rack::IndexFileFinder,
49
49
  root: 'public',
50
50
  index_filenames: %w[index.html index.xhtml]
51
- run Rack::File.new('public')
51
+ run Rack::Files.new('public')
52
52
  ```
53
53
 
54
54
  **Why not use `Rack::Static`?** Rack comes with `Rack::Static`, whose purpose is similar to, but not the same as, `Adsf::Rack::IndexFileFinder`. In particular:
55
55
 
56
- - `Adsf::Rack::IndexFileFinder` does not serve files, unlike `Rack::Static`. `IndexFileFinder` only rewrites the incoming request and passes it on (usually to `Rack::File`).
56
+ - `Adsf::Rack::IndexFileFinder` does not serve files, unlike `Rack::Static`. `IndexFileFinder` only rewrites the incoming request and passes it on (usually to `Rack::Files`).
57
57
 
58
58
  - `Adsf::Rack::IndexFileFinder` supports multiple index files, while `Rack::Static` only supports one (you could have multiple `Rack::Static` middlewares, one for each index filenames, though).
59
59
 
data/lib/adsf/server.rb CHANGED
@@ -66,7 +66,7 @@ module Adsf
66
66
  use ::Rack::LiveReload, no_swf: true, source: :vendored
67
67
  end
68
68
 
69
- run ::Rack::File.new(root)
69
+ run ::Rack::Files.new(root)
70
70
  end.to_app
71
71
  end
72
72
 
data/lib/adsf/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Adsf
4
- VERSION = '1.4.7'
4
+ VERSION = '1.4.8'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adsf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.7
4
+ version: 1.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Defreyne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-18 00:00:00.000000000 Z
11
+ date: 2023-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  requirements: []
84
- rubygems_version: 3.4.8
84
+ rubygems_version: 3.4.20
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: a tiny static file server