soar_sc_routing 0.1.2 → 0.1.3

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: e4bd6fd1019579ecc65c2f79ecb5ed381d9d50f5
4
- data.tar.gz: f5200814bcbe2ca3d1704488ba08f1c24a989c9d
3
+ metadata.gz: 8c9a7badfb60bc2acf2ed4b01bf6fe3521334521
4
+ data.tar.gz: c46ab8608538fa426a186f8fe93a6d89adf1f03a
5
5
  SHA512:
6
- metadata.gz: 3e78cc0388a87229d2b45e0509860e6418283505cfbe983d4a8b0926fb0fb53a2726c22ad36702154d9aff9d89ae7f3652b01671a074236b657bd60d93c5ed09
7
- data.tar.gz: 47acc2b21d7e045245e80a79ed1553eeec1823040c1351cc9eca2c291437055f36f4f169e2fe38a8f6ce58ca0550eb0fc27064fca44711d23af4cfe82e40c29f
6
+ metadata.gz: 05490515fd8d0a957f3c9ed661de46de887ffc4450c4925d924bfa06aefae51d0c126da06c89fc298f2089b9c5545b77f1b0b8128b7023c38cd6529eec15c7ad
7
+ data.tar.gz: a57628ff0900bd8b744cace067858ae5d0a0cfdad9e6eacede0e08649db7f30733cd621c553e7c10ea81a3b3ae601ac703e76af92712d26101b662f257bb0379
@@ -39,7 +39,7 @@ module SoarScRouting
39
39
  resource = SoarScRouting::Resource.new(detail['description'], "#{detail['service_name']}", detail['method'].upcase, detail['params'])
40
40
  add_resource_route(detail['path'], resource, interpret_secured(detail), interpret_authorized(detail)) do |request|
41
41
  if detail['controller']
42
- return delegate_to_controller_and_renderer(detail, startup_flow_id)
42
+ return delegate_to_controller_and_renderer(detail, startup_flow_id, request)
43
43
  elsif detail['action']
44
44
  http_code, headers, body = detail['action'].call(request)
45
45
  [http_code, headers, [body]]
@@ -91,7 +91,7 @@ module SoarScRouting
91
91
  raise ArgumentError.new("nfrs['authorization'] must be provided") if detail['nfrs']['authorization'].nil?
92
92
  end
93
93
 
94
- def delegate_to_controller_and_renderer(detail, startup_flow_id)
94
+ def delegate_to_controller_and_renderer(detail, startup_flow_id, request)
95
95
  controller = nil
96
96
  begin
97
97
  controller = Object::const_get("SoarSc::Web::Controllers::#{detail['controller']}").new(@configuration)
@@ -1,3 +1,3 @@
1
1
  module SoarScRouting
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar_sc_routing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernst Van Graan