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.
- checksums.yaml +4 -4
- data/lib/rack/grid_serve.rb +2 -2
- data/test.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66bbd379048cb82f31b37e0bcb709b134c03f79b
|
4
|
+
data.tar.gz: 9276473a170cca1d1a43722293f80312f6554874
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0613287fda9a502c945447ae47be72e675dd83e1fe98170e06c27d288cefaf8b6e938e2ac9f2e008aaed58d0e0e333a2b5b7ee1a0a1588f590a709c50882b6ee
|
7
|
+
data.tar.gz: a97f26ba15c0541a21cc109b92196efaf15f40f4b0a821bf43d2f03fef88aec4762297be869fc6c5184ea27bf8623e2d077408ae2d386faf5da18202b426c990
|
data/lib/rack/grid_serve.rb
CHANGED
@@ -8,7 +8,7 @@ end
|
|
8
8
|
|
9
9
|
class Rack::GridServe
|
10
10
|
|
11
|
-
VERSION = '0.0.
|
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.
|
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-
|
11
|
+
date: 2017-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|