bowtie-io 1.0.4 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bowtie/middleware/static.rb +1 -16
- data/lib/bowtie/version.rb +1 -1
- 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: 894cf0e3d5257ab32f996188cdb0b44be87d1402
|
4
|
+
data.tar.gz: 0eafe7dbe364307c6104f63094e115e29cb26d3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01b3ae60be2211e9f4ae2aabe311b8494c7d89eff5035e52fda83996fab0b3fb8f500e329582fbdc442a460afb023a2579758af44a31b3ec1e60543b139aed70
|
7
|
+
data.tar.gz: eb8bfa1a836e96c5e7252dd473b882a1cf7b07de35b6049e13107be97b59d9826bc39f633fa1c5a2349cce8fc884e2e17f069c051b7138567f7a7810ef44cfc8
|
@@ -11,22 +11,7 @@ module Bowtie::Middleware
|
|
11
11
|
status = status.to_i
|
12
12
|
|
13
13
|
if status != 200 && !status.between?(300, 399)
|
14
|
-
|
15
|
-
status = status.to_i
|
16
|
-
|
17
|
-
if status == 404
|
18
|
-
env['PATH_INFO'] = '/404.html'
|
19
|
-
elsif status == 403
|
20
|
-
env['PATH_INFO'] = '/403.html'
|
21
|
-
elsif status.between?(500, 599)
|
22
|
-
env['PATH_INFO'] = '/500.html'
|
23
|
-
elsif status.between?(400, 499)
|
24
|
-
env['PATH_INFO'] = '/400.html'
|
25
|
-
else
|
26
|
-
return [status, response, headers]
|
27
|
-
end
|
28
|
-
|
29
|
-
return @rack_static.call(env)
|
14
|
+
return @app.call(env)
|
30
15
|
else
|
31
16
|
[status, response, headers]
|
32
17
|
end
|
data/lib/bowtie/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bowtie-io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Kassemi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|