et_fake_ccd 0.1.27 → 0.1.28

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: 232ea5fdd8a52f3eef798c32422769d34c4fb9b30296f97db08e3a613247b36c
4
- data.tar.gz: b35dc423cb11a892e16554f7350d889425214cd3cfba2cdf5f04c3bd8f6ca52a
3
+ metadata.gz: d26bd97a75cc4636550fa11f70e34fe74950b829dc116a3cb89db5734669f626
4
+ data.tar.gz: 4384a49bf8a2e50318c1ebcb7906dff68854d3ee4513ee427892fd53fae1b1e0
5
5
  SHA512:
6
- metadata.gz: d7a91c2c046f74cdb9b2e7623f32594cc4e430a8b61341042c86522e5fe35eebedff62cde1c36b6c0514496d01172b4394621ad6ac7aceb4babd68e63c0e55f9
7
- data.tar.gz: ed4cef33fefb8923ba3276440a596ca4122d8983407b2ed9513c29ed5d013b8d5cad28e92613f7329aa3c364f6d775692db088d021ef5f369ed5ae25029c5f4e
6
+ metadata.gz: 1459e60f07fecc68f8866069da348c9a11143dcb748d68d7b4a7cc3beaff55f8bedf172d255ca8e34bb00a5af361d99541c75208540982d1d349db835768a98a
7
+ data.tar.gz: 4b35985d641fcbc0a3093f90c8d5f2f33ecf721816e74f6541a46eeb6f0e73cd4685a8cd042238284275864062b2f171c31e4ca6afd7fa93504bc48da288f7b8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- et_fake_ccd (0.1.27)
4
+ et_fake_ccd (0.1.28)
5
5
  activemodel (~> 5.2, >= 5.2.3)
6
6
  puma (~> 3.12)
7
7
  roda (~> 3.21)
@@ -27,10 +27,10 @@ module EtFakeCcd
27
27
  end
28
28
  end
29
29
  end
30
- r.is "caseworkers", String, "jurisdictions", String, "case-types", String, "event-triggers", "uploadDocument", "token" do |uid, jid, ctid|
30
+ r.is "caseworkers", String, "jurisdictions", String, "case-types", String, "cases", String, "event-triggers", "uploadDocument", "token" do |uid, jid, ctid, cid|
31
31
  r.get do
32
32
  if EtFakeCcd::AuthService.validate_service_token(r.headers['ServiceAuthorization'].gsub(/\ABearer /, '')) && EtFakeCcd::AuthService.validate_user_token(r.headers['Authorization'].gsub(/\ABearer /, ''))
33
- initiate_upload_document(uid, jid, ctid)
33
+ initiate_upload_document(uid, jid, ctid, cid)
34
34
  else
35
35
  r.halt 403, forbidden_error_for(r)
36
36
  end
@@ -144,7 +144,7 @@ module EtFakeCcd
144
144
  JSON.generate(j)
145
145
  end
146
146
 
147
- def initiate_upload_document(uid, jid, ctid)
147
+ def initiate_upload_document(uid, jid, ctid, cid)
148
148
  j = {
149
149
  "token": "eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJvZDRwZ3NhbDQwcTdndHI0Y2F1bmVmZGU5aSIsInN1YiI6IjIyIiwiaWF0IjoxNTYxOTY2NzM1LCJldmVudC1pZCI6ImluaXRpYXRlQ2FzZSIsImNhc2UtdHlwZS1pZCI6IkVtcFRyaWJfTVZQXzEuMF9NYW5jIiwianVyaXNkaWN0aW9uLWlkIjoiRU1QTE9ZTUVOVCIsImNhc2UtdmVyc2lvbiI6ImJmMjFhOWU4ZmJjNWEzODQ2ZmIwNWI0ZmEwODU5ZTA5MTdiMjIwMmYifQ.u-OfexKFu52uvSgTNVHJ5kUQ9KTZGClRIRnGXRPSmGY",
150
150
  "case_details": {
@@ -1,3 +1,3 @@
1
1
  module EtFakeCcd
2
- VERSION = "0.1.27"
2
+ VERSION = "0.1.28"
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: 0.1.27
4
+ version: 0.1.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Taylor