rackr 0.0.43 → 0.0.44

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rackr/router.rb +2 -0
  3. data/lib/rackr.rb +2 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e2cc704247949346f6cfc0fde345dc102320dafaf55b37f955aadb39b45f076
4
- data.tar.gz: ca4d5ae5a2b41ca2f543962bb9464fd1fdaec34454a681829590d12817832c8f
3
+ metadata.gz: 3e5867f9d9dab3c8331510c345df1c57e8fb00628493796b7f6b031646b0d7e3
4
+ data.tar.gz: 2a390c59f7d5a0405522f4448d94db6f9d0e8c0bee775543d017aec010844af8
5
5
  SHA512:
6
- metadata.gz: 106da24676d33cd7121ea8408cdb4a3231c44228f7f0d3e97a41114c7896da234d70411f29c3e71c3c79b54425fe8504747cc67deea37d96497364f90a1b410d
7
- data.tar.gz: f857873f017b893c49d552115cab7535b08debde99d530cf50a1b48cf50ae81cef7b212560b54559c2564c2e11b43e01e2692120aa5097bf75dde07618bd883c
6
+ metadata.gz: 8739b713136d2c97394ce64a3e45b385c5df7c4481796575d38f43411974f5e9168e2730e1f955b0608a0c3c045f95154137386a6c66107bcfaf447f335de656
7
+ data.tar.gz: c13efed3e12031b84129ce74351e710be2a6b36a49a31db2392060a88ef58631821fa4b1be9af7bf27a4e49a8e90edbb38bb5d0265a4a6fc72e3904b11f8c6ce
data/lib/rackr/router.rb CHANGED
@@ -62,6 +62,8 @@ class Rackr
62
62
  end
63
63
 
64
64
  endpoint_result
65
+ rescue Rackr::NotFound
66
+ render_not_found(request_builder.call)
65
67
  rescue Exception => e
66
68
  @error.call(request_builder.call, e)
67
69
  end
data/lib/rackr.rb CHANGED
@@ -5,6 +5,8 @@ require_relative 'rackr/action'
5
5
  require_relative 'rackr/callback'
6
6
 
7
7
  class Rackr
8
+ class NotFound < StandardError; end
9
+
8
10
  include Action
9
11
 
10
12
  def initialize(config = {}, before: [], after: [])
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rackr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.43
4
+ version: 0.0.44
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrique F. Teixeira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-13 00:00:00.000000000 Z
11
+ date: 2023-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erubi