et_fake_ccd 1.1.8 → 1.1.9

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
  SHA256:
3
- metadata.gz: cd57fcc3c5d480bd2f9d03f845f3725e9c66ecfb474cd45f35a3f71f17c127a4
4
- data.tar.gz: 12d45f1ce7902d3e00aa9a72fa679399616cd6ccaf49d14ade8f304ee9a7668e
3
+ metadata.gz: 1bf967c29880b1ad1e3994fbdc45b4b33e785ac3c0e89b87cbac456421e9acd8
4
+ data.tar.gz: 6fe8f3072516fdd21832687ce98ddc542e795914b5ffc1b5edad6c1e37dd87c8
5
5
  SHA512:
6
- metadata.gz: e85fc5b46ad461ad35ff32931558e05cd9ff952646f82183fd115ba6649e665e84b70e6508fad1651f76a3d35b8dd7bec0c27db03936a7d3f15e3b9effc0cea9
7
- data.tar.gz: ac163e07dbf8738d7fe1b1fe634a242f7313547a447e07a25b90c272fdae5ae64d5dc390cebc98c642933774225eab474ccd1205387a54eb6228973452aec60c
6
+ metadata.gz: cf544a8326303e22e002b38b91291f42e1aaef310ed8e5d6040cbf910a047c66f83c5f0bc5a2be707eb28c00cd35a943a73124c36214176e4fd0ecaa15ab1ca6
7
+ data.tar.gz: 862e06a37b7ad391f2af5effd8653650db6cf80ce594a7376b29b6f58ea9ae529560325fd4b0123412eb53f7cdfc19831c54129962962dd31d124ad9252dc967
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- et_fake_ccd (1.1.8)
4
+ et_fake_ccd (1.1.9)
5
5
  activemodel (>= 5.2.3)
6
6
  iodine (~> 0.7)
7
7
  json-schema (~> 2.5)
@@ -68,12 +68,14 @@ module EtFakeCcd
68
68
  end
69
69
  end
70
70
  r.is "caseworkers", String, "jurisdictions", String, "case-types", String, "cases", String do |uid, jid, ctid, case_id|
71
- with_forced_error_handling(r, stage: :data) do
72
- if !EtFakeCcd::AuthService.validate_service_token(r.headers['ServiceAuthorization'].gsub(/\ABearer /, '')) || !EtFakeCcd::AuthService.validate_user_token(r.headers['Authorization'].gsub(/\ABearer /, ''))
73
- r.halt 403, forbidden_error_for(r)
74
- break
71
+ r.get do
72
+ with_forced_error_handling(r, stage: :data) do
73
+ if !EtFakeCcd::AuthService.validate_service_token(r.headers['ServiceAuthorization'].gsub(/\ABearer /, '')) || !EtFakeCcd::AuthService.validate_user_token(r.headers['Authorization'].gsub(/\ABearer /, ''))
74
+ r.halt 403, forbidden_error_for(r)
75
+ break
76
+ end
77
+ case_response(case_id, uid, jid, ctid)
75
78
  end
76
- case_response(case_id, uid, jid, ctid)
77
79
  end
78
80
 
79
81
  end
@@ -1,3 +1,3 @@
1
1
  module EtFakeCcd
2
- VERSION = "1.1.8"
2
+ VERSION = "1.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: et_fake_ccd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
4
+ version: 1.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Taylor