et_fake_ccd 1.0.8 → 1.1.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 793c6c2279604591ddd390b31815a5b29f744ee79bcfad14853135c68f23221f
|
4
|
+
data.tar.gz: 44179a20549c501467c5496cc044aa603c0125f034d0efeaa565cb10898920c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d22a000add350493a0b4bd82e14700a5478265ebea86b4f91cff659105e4ab1636ecef020e67cb40b11d3c7daf59fc08035a52ee2dabf5085a7530c951f32fae
|
7
|
+
data.tar.gz: a3ba62f532fccdda2d943a70ec654842d8384d7c2297ff8a2cccd6d65551446d9929a536e8e4719f80c35eff4d79eef826b4c23ce0a97548a31ea282f49a5766
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
et_fake_ccd (1.0
|
4
|
+
et_fake_ccd (1.1.0)
|
5
5
|
activemodel (>= 5.2.3)
|
6
6
|
iodine (~> 0.7)
|
7
7
|
json-schema (~> 2.5)
|
@@ -13,28 +13,28 @@ PATH
|
|
13
13
|
GEM
|
14
14
|
remote: https://rubygems.org/
|
15
15
|
specs:
|
16
|
-
activemodel (6.0.
|
17
|
-
activesupport (= 6.0.
|
18
|
-
activesupport (6.0.
|
16
|
+
activemodel (6.0.3.2)
|
17
|
+
activesupport (= 6.0.3.2)
|
18
|
+
activesupport (6.0.3.2)
|
19
19
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
20
20
|
i18n (>= 0.7, < 2)
|
21
21
|
minitest (~> 5.1)
|
22
22
|
tzinfo (~> 1.1)
|
23
|
-
zeitwerk (~> 2.2)
|
23
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
24
24
|
addressable (2.7.0)
|
25
25
|
public_suffix (>= 2.0.2, < 5.0)
|
26
26
|
concurrent-ruby (1.1.6)
|
27
27
|
diff-lcs (1.3)
|
28
|
-
i18n (1.8.
|
28
|
+
i18n (1.8.5)
|
29
29
|
concurrent-ruby (~> 1.0)
|
30
|
-
iodine (0.7.
|
30
|
+
iodine (0.7.40)
|
31
31
|
json-schema (2.8.1)
|
32
32
|
addressable (>= 2.4)
|
33
|
-
minitest (5.14.
|
34
|
-
public_suffix (4.0.
|
35
|
-
rack (2.2.
|
33
|
+
minitest (5.14.1)
|
34
|
+
public_suffix (4.0.5)
|
35
|
+
rack (2.2.3)
|
36
36
|
rake (13.0.1)
|
37
|
-
roda (3.
|
37
|
+
roda (3.33.0)
|
38
38
|
rack
|
39
39
|
rotp (5.1.0)
|
40
40
|
addressable (~> 2.5)
|
@@ -56,7 +56,7 @@ GEM
|
|
56
56
|
tilt (2.0.10)
|
57
57
|
tzinfo (1.2.7)
|
58
58
|
thread_safe (~> 0.1)
|
59
|
-
zeitwerk (2.
|
59
|
+
zeitwerk (2.4.0)
|
60
60
|
|
61
61
|
PLATFORMS
|
62
62
|
ruby
|
data/lib/et_fake_ccd/commands.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'et_fake_ccd/command/lease_command'
|
2
2
|
require 'et_fake_ccd/command/login_user_command'
|
3
3
|
require 'et_fake_ccd/command/create_case_command'
|
4
|
-
require 'et_fake_ccd/command/
|
4
|
+
require 'et_fake_ccd/command/create_multiple_case_command'
|
5
5
|
require 'et_fake_ccd/command/upload_document_command'
|
6
6
|
require 'et_fake_ccd/command/upload_documents_to_case_command'
|
7
7
|
require 'et_fake_ccd/command/start_multiple_command'
|
@@ -19,7 +19,7 @@ module EtFakeCcd
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
22
|
-
r.is "caseworkers", String, "jurisdictions", String, "case-types", String, "event-triggers", "
|
22
|
+
r.is "caseworkers", String, "jurisdictions", String, "case-types", String, "event-triggers", "createMultiple", "token" do |uid, jid, ctid|
|
23
23
|
r.get do
|
24
24
|
if EtFakeCcd::AuthService.validate_service_token(r.headers['ServiceAuthorization'].gsub(/\ABearer /, '')) && EtFakeCcd::AuthService.validate_user_token(r.headers['Authorization'].gsub(/\ABearer /, ''))
|
25
25
|
initiate_bulk_case(uid, jid, ctid)
|
@@ -69,7 +69,7 @@ module EtFakeCcd
|
|
69
69
|
|
70
70
|
command = case json.dig('event', 'id')
|
71
71
|
when 'initiateCase' then ::EtFakeCcd::Command::CreateCaseCommand.from_json json
|
72
|
-
when '
|
72
|
+
when 'createMultiple' then ::EtFakeCcd::Command::CreateMultipleCaseCommand.from_json json
|
73
73
|
else
|
74
74
|
r.halt 400, unknown_event_error_for(r)
|
75
75
|
end
|
@@ -202,7 +202,7 @@ module EtFakeCcd
|
|
202
202
|
"delete_draft_response_status": nil,
|
203
203
|
"security_classifications": {}
|
204
204
|
},
|
205
|
-
"event_id": "
|
205
|
+
"event_id": "createMultiple"
|
206
206
|
}
|
207
207
|
JSON.generate(j)
|
208
208
|
end
|
data/lib/et_fake_ccd/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: et_fake_ccd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gary Taylor
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: roda
|
@@ -180,8 +180,8 @@ files:
|
|
180
180
|
- lib/et_fake_ccd/auth_service.rb
|
181
181
|
- lib/et_fake_ccd/cli.rb
|
182
182
|
- lib/et_fake_ccd/cli/root.rb
|
183
|
-
- lib/et_fake_ccd/command/create_bulk_action_case_command.rb
|
184
183
|
- lib/et_fake_ccd/command/create_case_command.rb
|
184
|
+
- lib/et_fake_ccd/command/create_multiple_case_command.rb
|
185
185
|
- lib/et_fake_ccd/command/lease_command.rb
|
186
186
|
- lib/et_fake_ccd/command/login_user_command.rb
|
187
187
|
- lib/et_fake_ccd/command/start_multiple_command.rb
|
@@ -225,8 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
225
|
- !ruby/object:Gem::Version
|
226
226
|
version: '0'
|
227
227
|
requirements: []
|
228
|
-
|
229
|
-
rubygems_version: 2.7.7
|
228
|
+
rubygems_version: 3.0.8
|
230
229
|
signing_key:
|
231
230
|
specification_version: 4
|
232
231
|
summary: Fake CCD server for employment tribunals
|