soar_smaak 0.1.13 → 0.1.14

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: c766fa00af3936aaa82b438c41b4c6ee34510f49
4
- data.tar.gz: 819887f096c13fd9e211b092e33b08727185baaa
3
+ metadata.gz: 4dd32ee9f3d23dfb851a6c6ba5c708744dca471a
4
+ data.tar.gz: d2af9080f9efe8c2b594e0b6e7058f9176a1efac
5
5
  SHA512:
6
- metadata.gz: 76493ce49d0739fdd69f3da7c4e4d7c2d4204e012546a8551d0a4c3ed8814e50c81c0b2248854527e07fa2ec9a563a39bf4bd39caffbf029d62eb9d916e31355
7
- data.tar.gz: 11c2eb8ba1b77d156c8959e330b3fc9b4629204be7c4f6a2b01f07fb312ed86de8e995d02c63f71303235d65c8b9fa22129ea584b2b2f1f24047e57cec9aa6cf
6
+ metadata.gz: ba0d899a12ad7ae065abe67bb7a4b9308dba6497007b225901670cfcff82487ae51bbee398ad5719841431adb6a23cfa128a1a9b42507790b28274748288d685
7
+ data.tar.gz: 61771b192cd935d8635e938e8c251f729f62ef6455bd4007c587f6ab10561afbd80640e4a202180f75ae62d768b42e8f54d57d382fbf79d729a757e6b3a6bf98
@@ -24,7 +24,11 @@ module SoarSmaak
24
24
  request = Rack::Request.new(env)
25
25
  if SoarSmaak::Interpreter::smaak_request?(request) or @signed_routes[request.path]
26
26
  @auditing.debug("Smaak: routing smaak request")
27
- auth_message, body = smaak(request)
27
+ begin
28
+ auth_message, body = smaak(request)
29
+ rescue => ex
30
+ return [500, {"Content-Type" => "text/html"}, ['Unable to route request on SMAAK route. Was your request a SMAAK request?']]
31
+ end
28
32
  return [403, {}, [" 403 - Not authorized"]] if not auth_message.identifier
29
33
  @auditing.debug("Smaak: request authorized for #{auth_message.identifier}")
30
34
  env["rack.input"] = body
@@ -1,3 +1,3 @@
1
1
  module SoarSmaak
2
- VERSION = "0.1.13"
2
+ VERSION = "0.1.14"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar_smaak
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernst Van Graan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-19 00:00:00.000000000 Z
11
+ date: 2016-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack