thomler 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3bb9671468c81722904e431c4a525eaee5babec1
4
- data.tar.gz: 558d96e2c4aa0494ba57e13ee909fdcff81a11cc
3
+ metadata.gz: 66e661473a4bfdf037473dc7a191dc626e95022e
4
+ data.tar.gz: 1e64cfae985096c05ef13172bacafa82455d4bb6
5
5
  SHA512:
6
- metadata.gz: 196a7c6cf4256ccbd6445800e691487fe23edcb72e0a56274fad405135a26418177ea4e9eca6fc77dd2a72bd91719ba44a5df179ed94c40826ca7353073b0a8c
7
- data.tar.gz: e8dd9edc33f5b84733bad1bcbf7c91d31beee110ea49052e083ec0310a8b3fb7e8bbff9d9f5b4617ee854f2403cead4c17a21a8e85dcbb10207d75028898a844
6
+ metadata.gz: 03a8d3df384a249f1b6f0e52a9924f48b84af502169fb79e1436d74bf0afab80393c89c798ed8309bf799ab4c997464a268fa61c5e679d0d54e068b0b13b5dba
7
+ data.tar.gz: 7238c836d55c2bedbb97913704dae45950a07c25d3339707eda01392a0304dd7be897ab1256fce0f3abd5fbdc0b463b5d9f0f939c924f7b770656ac59fe2715e
@@ -1,3 +1,3 @@
1
1
  module Thomler
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
data/lib/thomler.rb CHANGED
@@ -10,7 +10,10 @@ module Thomler
10
10
  end
11
11
  klass, act = get_controller_and_action(env)
12
12
  controller = klass.new(env)
13
- text = controller.send(act)
13
+ begin
14
+ text = controller.send(act)
15
+ rescue "Resource not found"
16
+ end
14
17
  [200, {'Content-Type' => 'text/html'}, [text]]
15
18
  end
16
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thomler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Osborn