rack-grid-serve 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rack/grid_serve.rb +2 -2
  3. data/test.rb +2 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a11280dd4dffb5008753a183fcbf54d09947460
4
- data.tar.gz: cdfa9132a8459c8ba7b749c6ce713b4580c91b12
3
+ metadata.gz: 66bbd379048cb82f31b37e0bcb709b134c03f79b
4
+ data.tar.gz: 9276473a170cca1d1a43722293f80312f6554874
5
5
  SHA512:
6
- metadata.gz: be437c29d9d41ca89318e79bf195a77a6e3537539e5402be88b73683ae68bf233b8e497d54d8fb01a698879f556572fa939f15026dcc9a43fced98ee00518798
7
- data.tar.gz: defa40e7cfc0cdc101b70de3a6b8b4afa9883d9f0882703bec04c275bb02df693c2086f4ad01d3fc223b732fec6280dc0d700388d2df1c6cf797b2525003fa90
6
+ metadata.gz: 0613287fda9a502c945447ae47be72e675dd83e1fe98170e06c27d288cefaf8b6e938e2ac9f2e008aaed58d0e0e333a2b5b7ee1a0a1588f590a709c50882b6ee
7
+ data.tar.gz: a97f26ba15c0541a21cc109b92196efaf15f40f4b0a821bf43d2f03fef88aec4762297be869fc6c5184ea27bf8623e2d077408ae2d386faf5da18202b426c990
@@ -8,7 +8,7 @@ end
8
8
 
9
9
  class Rack::GridServe
10
10
 
11
- VERSION = '0.0.6'
11
+ VERSION = '0.0.7'
12
12
 
13
13
  def initialize app, opts={}
14
14
  @app = app
@@ -26,7 +26,7 @@ class Rack::GridServe
26
26
  if under_prefix? req
27
27
  file = find_file req
28
28
  if file.nil?
29
- [404, {'Content-Type'=>'text/plain'}, 'Not Found']
29
+ [404, {'Content-Type'=>'text/plain'}, ['Not Found']]
30
30
  else
31
31
  last_modified = Time.at file['uploadDate'].to_i
32
32
  headers = {
data/test.rb CHANGED
@@ -15,12 +15,12 @@ class TestRackGridServe < MiniTest::Test
15
15
  include Rack::Test::Methods
16
16
 
17
17
  def app
18
- Rack::GridServe.new(inner_app, db: DB)
18
+ Rack::Lint.new(Rack::GridServe.new(inner_app, db: DB))
19
19
  end
20
20
 
21
21
  def inner_app
22
22
  lambda {|env|
23
- [200, {'Content-Type'=>'text/plain'}, "Inner"]
23
+ [200, {'Content-Type'=>'text/plain'}, ["Inner"]]
24
24
  }
25
25
  end
26
26
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-grid-serve
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mickael Riga
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-05 00:00:00.000000000 Z
11
+ date: 2017-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack