bowtie-io 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 76ff84184ca2e50f02a42c5dc8cfe8f161dc6eee
4
- data.tar.gz: 288772ac304aea183f0c6c95be6adea13def9040
3
+ metadata.gz: 894cf0e3d5257ab32f996188cdb0b44be87d1402
4
+ data.tar.gz: 0eafe7dbe364307c6104f63094e115e29cb26d3d
5
5
  SHA512:
6
- metadata.gz: abca3ab762ce01164ba01f5eb76fc0c3e032b66ba4e031971a4561f9bf546f86827eddaf9d6e350deaae650c9f48e320c8d770b4afd0b8a8aea9358e92c2d2d4
7
- data.tar.gz: 1090e2fec10c582df360349e5c679d2dc8d5c7c5aae896f50fd7a249d2448db0612dbf150aa16ea47d5b3dea758a76e845417ae9fa290e66bcf092742f26c384
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
- status, response, headers = @app.call(env)
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
@@ -1,3 +1,3 @@
1
1
  module Bowtie
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.6'
3
3
  end
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
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-05-02 00:00:00.000000000 Z
11
+ date: 2015-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll