et_fake_ccd 1.0.7 → 1.1.3

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: 68262f61af0ce95dfaa92dcfc79940605390ced1c42a210ee877ca3fd32d707f
4
- data.tar.gz: 821bc36a0e3f5450e0d9fde465f7222c4b95f6fa281f775337e82a34e1fe3d64
3
+ metadata.gz: 715abb41a7a8c8b03d511144100c3c850bdf0c28ac692ff4035fe4f1e98fbd20
4
+ data.tar.gz: 610bfb8032916563890b8078e433ad7db24b7d42ba623d2e01579432f9fe489d
5
5
  SHA512:
6
- metadata.gz: 54a23c3c0b99047ce308194b76766de3b0e807a9b49a8c7eb2918334e22e0a3f3ac287f8edcb32ab6a695ff576fe493fa17c62be0275d0d25345e23fec3c85ab
7
- data.tar.gz: 2771cb8fc14d77ad56c5cf6f1069f6452f8b55ec1ffb8bfb476aaba1e054cce33cb67eaf412e5c9d10b43462225af6758ebdfd25c9b4f781a6571586a8d7e516
6
+ metadata.gz: 5b0c423548802001cad2d385821ad76aae05a760e00152fac1fb7fc5864246401ac98bd70267c93cf9e744831ca6abf96dcb3056f99cf0e157ae3504908732fb
7
+ data.tar.gz: 29bdc2795a91160e1bdd654d5b10a83074f568a10d0a63e69e8509c318fd1fe4d527607b806918b68019c6ec7a407b49a07b2eac3c66deaa1c0b60cf6af2a41e
@@ -1,43 +1,42 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- et_fake_ccd (1.0.7)
4
+ et_fake_ccd (1.1.3)
5
5
  activemodel (>= 5.2.3)
6
6
  iodine (~> 0.7)
7
7
  json-schema (~> 2.5)
8
8
  roda (~> 3.21)
9
- rotp (~> 5.1)
9
+ rotp (~> 6.2)
10
10
  thor (~> 1.0)
11
11
  tilt (~> 2.0, >= 2.0.9)
12
12
 
13
13
  GEM
14
14
  remote: https://rubygems.org/
15
15
  specs:
16
- activemodel (6.0.2.2)
17
- activesupport (= 6.0.2.2)
18
- activesupport (6.0.2.2)
16
+ activemodel (6.1.1)
17
+ activesupport (= 6.1.1)
18
+ activesupport (6.1.1)
19
19
  concurrent-ruby (~> 1.0, >= 1.0.2)
20
- i18n (>= 0.7, < 2)
21
- minitest (~> 5.1)
22
- tzinfo (~> 1.1)
23
- zeitwerk (~> 2.2)
20
+ i18n (>= 1.6, < 2)
21
+ minitest (>= 5.1)
22
+ tzinfo (~> 2.0)
23
+ zeitwerk (~> 2.3)
24
24
  addressable (2.7.0)
25
25
  public_suffix (>= 2.0.2, < 5.0)
26
- concurrent-ruby (1.1.6)
26
+ concurrent-ruby (1.1.7)
27
27
  diff-lcs (1.3)
28
- i18n (1.8.2)
28
+ i18n (1.8.7)
29
29
  concurrent-ruby (~> 1.0)
30
- iodine (0.7.38)
30
+ iodine (0.7.43)
31
31
  json-schema (2.8.1)
32
32
  addressable (>= 2.4)
33
- minitest (5.14.0)
34
- public_suffix (4.0.4)
35
- rack (2.2.2)
33
+ minitest (5.14.3)
34
+ public_suffix (4.0.6)
35
+ rack (2.2.3)
36
36
  rake (13.0.1)
37
- roda (3.31.0)
37
+ roda (3.40.0)
38
38
  rack
39
- rotp (5.1.0)
40
- addressable (~> 2.5)
39
+ rotp (6.2.0)
41
40
  rspec (3.9.0)
42
41
  rspec-core (~> 3.9.0)
43
42
  rspec-expectations (~> 3.9.0)
@@ -52,11 +51,10 @@ GEM
52
51
  rspec-support (~> 3.9.0)
53
52
  rspec-support (3.9.2)
54
53
  thor (1.0.1)
55
- thread_safe (0.3.6)
56
54
  tilt (2.0.10)
57
- tzinfo (1.2.7)
58
- thread_safe (~> 0.1)
59
- zeitwerk (2.3.0)
55
+ tzinfo (2.0.4)
56
+ concurrent-ruby (~> 1.0)
57
+ zeitwerk (2.4.2)
60
58
 
61
59
  PLATFORMS
62
60
  ruby
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_dependency 'roda', '~> 3.21'
27
27
  spec.add_dependency 'thor', '~> 1.0'
28
28
  spec.add_dependency 'activemodel', '>= 5.2.3'
29
- spec.add_dependency 'rotp', '~> 5.1'
29
+ spec.add_dependency 'rotp', '~> 6.2'
30
30
  spec.add_dependency 'tilt', '~> 2.0', '>= 2.0.9'
31
31
  spec.add_dependency 'iodine', '~> 0.7'
32
32
  spec.add_dependency 'json-schema', '~> 2.5'
@@ -1,7 +1,7 @@
1
1
  require 'active_model'
2
2
  module EtFakeCcd
3
3
  module Command
4
- class CreateBulkActionCaseCommand
4
+ class CreateMultipleCaseCommand
5
5
  include ActiveModel::Model
6
6
  include ActiveModel::Attributes
7
7
 
@@ -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/create_bulk_action_case_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'
@@ -1,4 +1,5 @@
1
1
  require 'singleton'
2
+ require 'fileutils'
2
3
  module EtFakeCcd
3
4
  class Config
4
5
  include Singleton
@@ -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", "createBulkAction", "token" do |uid, jid, ctid|
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 'createBulkAction' then ::EtFakeCcd::Command::CreateBulkActionCaseCommand.from_json json
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": "createBulkAction"
205
+ "event_id": "createMultiple"
206
206
  }
207
207
  JSON.generate(j)
208
208
  end
@@ -35,9 +35,11 @@ module EtFakeCcd
35
35
 
36
36
  def start_multiple_response(response)
37
37
  j = {
38
- "caseRefNumberCount": response.case_reference_count,
39
- "startCaseRefNumber": response.start_reference,
40
- "multipleRefNumber": response.multiple_reference
38
+ "data": {
39
+ "caseRefNumberCount": response.case_reference_count,
40
+ "startCaseRefNumber": response.start_reference,
41
+ "multipleRefNumber": response.multiple_reference
42
+ }
41
43
  }
42
44
  JSON.generate(j)
43
45
  end
@@ -1,3 +1,3 @@
1
1
  module EtFakeCcd
2
- VERSION = "1.0.7"
2
+ VERSION = "1.1.3"
3
3
  end
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.7
4
+ version: 1.1.3
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-04-16 00:00:00.000000000 Z
11
+ date: 2021-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: roda
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '5.1'
61
+ version: '6.2'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '5.1'
68
+ version: '6.2'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: tilt
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -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
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
226
  version: '0'
227
227
  requirements: []
228
228
  rubyforge_project:
229
- rubygems_version: 2.7.7
229
+ rubygems_version: 2.7.6
230
230
  signing_key:
231
231
  specification_version: 4
232
232
  summary: Fake CCD server for employment tribunals