tzispa 0.4.17 → 0.4.18

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: db6ad8651dc23b0e5fc821507997bbe5852fd183
4
- data.tar.gz: faaa33378bbaf43503ea90dbaf4a5cb691e8092a
3
+ metadata.gz: 4378e5400ceb4bfafbb9a196f67e97979c5a97c2
4
+ data.tar.gz: 664c88c60e83240a925bec805d597dda292bd256
5
5
  SHA512:
6
- metadata.gz: 0c3861995da2e684ceff1d88e8edc6a85b0ff45c4ad2496939190a86083ebbfe9c91924a0cc83b0de58a3a3c7af50bc77ae88191c76fdf44f75c31e2f8e7f3f7
7
- data.tar.gz: 727516e2a9644f04d436ff760c0ef8432d1155091fb3beadc5974932e07a3b89f3eb3c06fe67c4c5f0ac2de8ff485ce14abf81826113cf2420edcdee2a678e69
6
+ metadata.gz: 0bbfbc1f7237d1b007c9ec7ac6a46ee3d8c8fa9d51f1af65d7f80a0634c92e65ff6ba7332fbc81e1842d3cd39776e7aae3031ecf990acba9184c4cd5b7b32c34
7
+ data.tar.gz: c50378c964156f9f6420a8486025a2902e3022aad8cfdd261ab758ed058e1cb76d6c72148a5629c63b165673fba18c268c10582ae57b9b4c72087a6b9d7319b3
data/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@ Tzispa
2
2
 
3
3
  General purpose web framework
4
4
 
5
+ ## v0.4.18
6
+ - rescue Tzispa::Rig::NotFound in controller/base to set response status code 404
7
+
5
8
  ## v0.4.17
6
9
  - response_verb is send to the conttroller not to the handler ...
7
10
 
@@ -34,6 +34,9 @@ module Tzispa
34
34
  status = catch(:halt) {
35
35
  begin
36
36
  send "#{@callmethod}"
37
+ rescue Tzispa::Rig::NotFound => ex
38
+ context.logger.info "#{ex.message} (#{ex.class})"
39
+ 404
37
40
  rescue StandardError, ScriptError => ex
38
41
  context.logger.error "#{ex.message} (#{ex.class}):\n #{ex.backtrace.join("\n\t") if ex.respond_to?(:backtrace) && ex.backtrace}"
39
42
  debug_info = debug_info(ex) if config.developing
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tzispa
4
- VERSION = '0.4.17'
4
+ VERSION = '0.4.18'
5
5
  FRAMEWORK_NAME = 'Tzispa'
6
6
  GEM_NAME = 'tzispa'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tzispa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.17
4
+ version: 0.4.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Antonio Piñero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-06 00:00:00.000000000 Z
11
+ date: 2016-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack