gors 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/gors.rb +0 -5
  2. metadata +1 -17
@@ -29,11 +29,6 @@ module Gors
29
29
  matcheddata = routesinfo[1]
30
30
 
31
31
  if(controller == nil)
32
- if(File.exist?("public"+env["REQUEST_PATH"]))
33
- fm = FileMagic.new(FileMagic::MAGIC_MIME)
34
- mime = fm.file("public/"+env["REQUEST_PATH"])
35
- return ["200",{"Content-type" => mime},[File.read("public"+env["REQUEST_PATH"])]]
36
- end
37
32
  if(@settings.server != "thin")
38
33
  response = ["<h1>404 Not Found</h1>"]
39
34
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -59,22 +59,6 @@ dependencies:
59
59
  - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
- - !ruby/object:Gem::Dependency
63
- name: filemagic
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- type: :runtime
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
62
  description: A web framework built on top of Rack, it has the simplicity of sinatra
79
63
  and the structure of rails
80
64
  email: bram.vandenbogaerde@gmail.com