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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2286b4231db339b1475ba7c3cc4dadab0238bfefda06e29698b8a137c43969c1
4
- data.tar.gz: cc8610973b007b112ef52735aa4b8553f7e4ccdbc44929c2dbecbce8c8beeef1
3
+ metadata.gz: 21d42f972482f9afac8467471bd70d3682487a54652bac219695a26725ede1cc
4
+ data.tar.gz: a00779baf61365609511de237e1c6a4f8c663c000876b94b0961d26d2f817bd3
5
5
  SHA512:
6
- metadata.gz: aaec72d53ef0f56a5220d6e7efbf027264bb926081723231ad6062ce2946099efe01cb80dae1b943faeff4fbbe6293591b97d7d2b27cd9711007037c1825ee7c
7
- data.tar.gz: 95b4545de1b8a9e365c62803cbfbf11d712c21eb0b63c9e310c32eb7ace1b9f49dfed6041f4fe5e37efcc33742a70b6ca90ca06333df534588ef0316637a9dbf
6
+ metadata.gz: 4a4ba2f8071398fdb4eb9c9a4f0cb11a3c9aede0ad69a5ee62377c7fc4dea16f893d66e5c22fe0135a6c49dde8d795a531b92df9ad9d6ed4ac4bdd8e0de93c43
7
+ data.tar.gz: 91117745b596704d91894d330eade81fc1cfda162f7ce4d640dfaf20fa8e58e94934a645a82c584db22aadde982ccfad98f52122bf75709095e78ecd6bfe1a56
@@ -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
 
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Async
22
22
  module HTTP
23
- VERSION = "0.34.3"
23
+ VERSION = "0.34.4"
24
24
  end
25
25
  end
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.3
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-20 00:00:00.000000000 Z
11
+ date: 2018-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async