async-http 0.34.3 → 0.34.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/async/http/body/file.rb +4 -1
- data/lib/async/http/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21d42f972482f9afac8467471bd70d3682487a54652bac219695a26725ede1cc
|
4
|
+
data.tar.gz: a00779baf61365609511de237e1c6a4f8c663c000876b94b0961d26d2f817bd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a4ba2f8071398fdb4eb9c9a4f0cb11a3c9aede0ad69a5ee62377c7fc4dea16f893d66e5c22fe0135a6c49dde8d795a531b92df9ad9d6ed4ac4bdd8e0de93c43
|
7
|
+
data.tar.gz: 91117745b596704d91894d330eade81fc1cfda162f7ce4d640dfaf20fa8e58e94934a645a82c584db22aadde982ccfad98f52122bf75709095e78ecd6bfe1a56
|
data/lib/async/http/body/file.rb
CHANGED
@@ -26,9 +26,10 @@ module Async
|
|
26
26
|
module Body
|
27
27
|
class File < Readable
|
28
28
|
BLOCK_SIZE = Async::IO::Stream::BLOCK_SIZE
|
29
|
+
MODE = ::File::RDONLY | ::File::BINARY
|
29
30
|
|
30
31
|
def self.open(path, *args)
|
31
|
-
self.new(::File.open(path), *args)
|
32
|
+
self.new(::File.open(path, MODE), *args)
|
32
33
|
end
|
33
34
|
|
34
35
|
def initialize(file, range = nil, block_size: BLOCK_SIZE)
|
@@ -53,6 +54,8 @@ module Async
|
|
53
54
|
super
|
54
55
|
end
|
55
56
|
|
57
|
+
attr :file
|
58
|
+
|
56
59
|
attr :offset
|
57
60
|
attr :length
|
58
61
|
|
data/lib/async/http/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.34.
|
4
|
+
version: 0.34.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|