adsf 1.4.7 → 1.4.8
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 +4 -4
- data/NEWS.md +6 -0
- data/README.md +3 -3
- data/lib/adsf/server.rb +1 -1
- data/lib/adsf/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d47c094094044d3f804bfb77bfd56b43fb6705bbccafb7e33085a4d3bd8fdcf1
|
|
4
|
+
data.tar.gz: 5b5a8708d1cf40b11975c668c2caef9635148eb3b3622479e3564ecc4a757871
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b95fd1886ed101dc6b1a7ebce8fd8b5251849b261553a0f196462e9e2d372de673144c45683c180bbe279c00cc711ebab9480d8da038ca6c618b1fd5d96f2b11
|
|
7
|
+
data.tar.gz: 0422a6745355809dd5b37018447175905fd2c8fca5495d0c5c92a284a09033d46ed580cc585830823435ef2af65faa0c665934186add0bec42a00d39a5a03923
|
data/NEWS.md
CHANGED
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::
|
|
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::
|
|
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::
|
|
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
data/lib/adsf/version.rb
CHANGED
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.
|
|
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-
|
|
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.
|
|
84
|
+
rubygems_version: 3.4.20
|
|
85
85
|
signing_key:
|
|
86
86
|
specification_version: 4
|
|
87
87
|
summary: a tiny static file server
|