thomler 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/thomler/version.rb +1 -1
- data/lib/thomler.rb +3 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bb9671468c81722904e431c4a525eaee5babec1
|
4
|
+
data.tar.gz: 558d96e2c4aa0494ba57e13ee909fdcff81a11cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 196a7c6cf4256ccbd6445800e691487fe23edcb72e0a56274fad405135a26418177ea4e9eca6fc77dd2a72bd91719ba44a5df179ed94c40826ca7353073b0a8c
|
7
|
+
data.tar.gz: e8dd9edc33f5b84733bad1bcbf7c91d31beee110ea49052e083ec0310a8b3fb7e8bbff9d9f5b4617ee854f2403cead4c17a21a8e85dcbb10207d75028898a844
|
data/lib/thomler/version.rb
CHANGED
data/lib/thomler.rb
CHANGED
@@ -5,6 +5,9 @@ require "thomler/routing"
|
|
5
5
|
module Thomler
|
6
6
|
class Application
|
7
7
|
def call env
|
8
|
+
if env['PATH_INFO'] == '/favicon.ico'
|
9
|
+
return [404, {'Content-Type' => 'text/html'}, []]
|
10
|
+
end
|
8
11
|
klass, act = get_controller_and_action(env)
|
9
12
|
controller = klass.new(env)
|
10
13
|
text = controller.send(act)
|