rack-grid-serve 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rack/grid_serve.rb +2 -6
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 00c045ab328e8d6c02e99b63a60aaa0b969c50b9
4
- data.tar.gz: 4191a3f5970bc899555e4b0b94ad603f83229983
3
+ metadata.gz: 5f15f36dd211a0b4989e5b9f9419b511d54d4c91
4
+ data.tar.gz: bb83c242d493337ff48bf251537286d124548c4b
5
5
  SHA512:
6
- metadata.gz: f38407d72fe33bd7f0c756562a43952f4bb7687741d394aa33c23616138c90a74ab2832841ff06554e9d2c7ab26dcce69579e980f1d0121e8ca826b42a465beb
7
- data.tar.gz: 114504fbfb3cd42f95bcc063ec2b74672fa84dd0e77a885055b28927fe786871117b24eb7b0523da2d5aaf90a871e1914dc2e3d706989ec3344ec2ae3f47843b
6
+ metadata.gz: de8a8e0c70bfbd3daef2d1defb4c1e31d58c6c173ff5c340d09b197cfab9b4b5ce541acdc2c6b890ad2bdf003f585713c98127d27222feb137e28ddde115afad
7
+ data.tar.gz: 3f8699cc96bad4379f89d10bddb26f5e9fc6fbe5b70b25e889896f75b976a94b1ad5e48decf89ffc46539eee3f8e5dd3edcb996149de69c1e02283e21017299b
@@ -9,7 +9,7 @@ end
9
9
 
10
10
  class Rack::GridServe
11
11
 
12
- VERSION = '0.0.9'.freeze
12
+ VERSION = '0.0.10'.freeze
13
13
 
14
14
  DEFAULT_PREFIX = 'gridfs'.freeze
15
15
  DEFAULT_CACHE_CONTROL = 'no-cache'.freeze
@@ -63,11 +63,7 @@ class Rack::GridServe
63
63
  headers.delete(CONTENT_LENGTH)
64
64
  [304, headers, []]
65
65
  else
66
- content = String.new
67
- @db.fs.open_download_stream(file[ID_KEY]) do |stream|
68
- content = stream.read
69
- end
70
- [200, headers, [content]]
66
+ [200, headers, @db.fs.open_download_stream(file[ID_KEY])]
71
67
  end
72
68
  end
73
69
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-grid-serve
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mickael Riga