et_fake_acas_server 1.0.0 → 2.0.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: df1e3d0a4eb74db657cd414d241db42bda898b486d58f90d4d3fb36dcb8e7021
4
- data.tar.gz: 8dc55a2fbf8a876c264c2b62df697f2a225d00643d3100ccec954e890c0ef312
3
+ metadata.gz: 530c4ac85fdf6268e5d402fcc4a38a3509a028967ee0e15664c9cd684c00df53
4
+ data.tar.gz: 5d9bf143726ef37d932604a350519e27f406ac55afe1154cb6450c2c63f6b66d
5
5
  SHA512:
6
- metadata.gz: 750f165ebf45b7b8cdae1eb8e6ff61cce2a641f728c3b1fdd16be88498721808a2e2750dd85b2cd2f763a892c29cd12b00267e666055083866ccaf9a29087a89
7
- data.tar.gz: 48c1d190c4391b001b66db4d2d4725bdf4846a973f057994dc7793fa8bbafa88a83f977123ffe1addd2c8b138dd1793c9b6b6cc3f718932b33f0f58278e42614
6
+ metadata.gz: cd1823147f3d2718fae376d3a221e0f2927937cab106613c6a2a17ee544cd5320e867b7878b710cf59526b91d546df263f22b60a9ed512db990d1f898fc38d3c
7
+ data.tar.gz: bd4a9a6e2c9206998ada8247b189af6245847cb6f35ccd3cf9702d734182d6c44c8a3157f998d9f82a8c239c14f53c27aa942bb3d8ba3b6fdce0712a7ce84254
data/Gemfile.lock CHANGED
@@ -1,17 +1,17 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- et_fake_acas_server (1.0.0)
4
+ et_fake_acas_server (2.0.0)
5
5
  activesupport (>= 6.1)
6
6
  iodine (~> 0.7)
7
7
  nokogiri (~> 1.8, >= 1.8.2)
8
- sinatra (~> 2.0, >= 2.0.3)
9
- sinatra-contrib (~> 2.0)
8
+ sinatra (~> 3.0)
9
+ sinatra-contrib (~> 3.0)
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- activesupport (7.0.3.1)
14
+ activesupport (7.0.4.1)
15
15
  concurrent-ruby (~> 1.0, >= 1.0.2)
16
16
  i18n (>= 1.6, < 2)
17
17
  minitest (>= 5.1)
@@ -19,31 +19,29 @@ GEM
19
19
  concurrent-ruby (1.1.10)
20
20
  i18n (1.12.0)
21
21
  concurrent-ruby (~> 1.0)
22
- iodine (0.7.48)
23
- mini_portile2 (2.8.0)
24
- minitest (5.16.3)
22
+ iodine (0.7.53)
23
+ minitest (5.17.0)
25
24
  multi_json (1.15.0)
26
- mustermann (2.0.2)
25
+ mustermann (3.0.0)
27
26
  ruby2_keywords (~> 0.0.1)
28
- nokogiri (1.13.8)
29
- mini_portile2 (~> 2.8.0)
27
+ nokogiri (1.14.0-x86_64-linux)
30
28
  racc (~> 1.4)
31
- racc (1.6.0)
32
- rack (2.2.4)
33
- rack-protection (2.2.2)
29
+ racc (1.6.2)
30
+ rack (2.2.6.2)
31
+ rack-protection (3.0.5)
34
32
  rack
35
- rake (13.0.1)
33
+ rake (13.0.6)
36
34
  ruby2_keywords (0.0.5)
37
- sinatra (2.2.2)
38
- mustermann (~> 2.0)
39
- rack (~> 2.2)
40
- rack-protection (= 2.2.2)
35
+ sinatra (3.0.5)
36
+ mustermann (~> 3.0)
37
+ rack (~> 2.2, >= 2.2.4)
38
+ rack-protection (= 3.0.5)
41
39
  tilt (~> 2.0)
42
- sinatra-contrib (2.2.2)
40
+ sinatra-contrib (3.0.5)
43
41
  multi_json
44
- mustermann (~> 2.0)
45
- rack-protection (= 2.2.2)
46
- sinatra (= 2.2.2)
42
+ mustermann (~> 3.0)
43
+ rack-protection (= 3.0.5)
44
+ sinatra (= 3.0.5)
47
45
  tilt (~> 2.0)
48
46
  tilt (2.0.11)
49
47
  tzinfo (2.0.5)
data/README.md CHANGED
@@ -41,7 +41,7 @@ These are as follows (note, the 'R' can also be 'NE' or 'MU')
41
41
 
42
42
  R000200/18/68 - Returns a 'No Match'
43
43
 
44
- R000201/18/68 - Returns an 'Invalid Certificate Format'
44
+ R000300/18/68 - Returns a delayed (2 mins) valid certificate for error checking
45
45
 
46
46
  R000500/18/68 - Returns an 'Internal Error'
47
47
 
@@ -24,8 +24,8 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "bundler", "~> 1.16"
25
25
  spec.add_development_dependency "rake", "~> 13.0"
26
26
  spec.add_dependency 'iodine', '~> 0.7'
27
- spec.add_dependency 'sinatra-contrib', '~> 2.0'
28
- spec.add_dependency 'sinatra', '~> 2.0', '>= 2.0.3'
27
+ spec.add_dependency 'sinatra-contrib', '~> 3.0'
28
+ spec.add_dependency 'sinatra', '~> 3.0'
29
29
  spec.add_dependency 'nokogiri', '~> 1.8', '>= 1.8.2'
30
30
  spec.add_dependency 'activesupport', '>= 6.1'
31
31
  end
@@ -32,6 +32,9 @@ module EtFakeAcasServer
32
32
  case certificate_number
33
33
  when /\A(R|NE|MU)000200/ then
34
34
  json_builder_for_no_match(certificate_number)
35
+ when /\A(R|NE|MU)000300/ then
36
+ sleep 120
37
+ json_builder_for_found(certificate_number)
35
38
  when /\A(R|NE|MU)000500/ then
36
39
  halt 500, JSON.pretty_generate(json_builder_for_internal_error)
37
40
  else
@@ -1,3 +1,3 @@
1
1
  module EtFakeAcasServer
2
- VERSION = "1.0.0"
2
+ VERSION = "2.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: et_fake_acas_server
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.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: 2022-09-02 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,34 +58,28 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '2.0'
61
+ version: '3.0'
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: '2.0'
68
+ version: '3.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sinatra
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '2.0'
76
- - - ">="
77
- - !ruby/object:Gem::Version
78
- version: 2.0.3
75
+ version: '3.0'
79
76
  type: :runtime
80
77
  prerelease: false
81
78
  version_requirements: !ruby/object:Gem::Requirement
82
79
  requirements:
83
80
  - - "~>"
84
81
  - !ruby/object:Gem::Version
85
- version: '2.0'
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- version: 2.0.3
82
+ version: '3.0'
89
83
  - !ruby/object:Gem::Dependency
90
84
  name: nokogiri
91
85
  requirement: !ruby/object:Gem::Requirement