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 +4 -4
- data/Gemfile.lock +20 -22
- data/README.md +1 -1
- data/et_fake_acas_server.gemspec +2 -2
- data/lib/et_fake_acas_server/json_server.rb +3 -0
- data/lib/et_fake_acas_server/version.rb +1 -1
- metadata +6 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 530c4ac85fdf6268e5d402fcc4a38a3509a028967ee0e15664c9cd684c00df53
|
4
|
+
data.tar.gz: 5d9bf143726ef37d932604a350519e27f406ac55afe1154cb6450c2c63f6b66d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 (
|
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 (~>
|
9
|
-
sinatra-contrib (~>
|
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.
|
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.
|
23
|
-
|
24
|
-
minitest (5.16.3)
|
22
|
+
iodine (0.7.53)
|
23
|
+
minitest (5.17.0)
|
25
24
|
multi_json (1.15.0)
|
26
|
-
mustermann (
|
25
|
+
mustermann (3.0.0)
|
27
26
|
ruby2_keywords (~> 0.0.1)
|
28
|
-
nokogiri (1.
|
29
|
-
mini_portile2 (~> 2.8.0)
|
27
|
+
nokogiri (1.14.0-x86_64-linux)
|
30
28
|
racc (~> 1.4)
|
31
|
-
racc (1.6.
|
32
|
-
rack (2.2.
|
33
|
-
rack-protection (
|
29
|
+
racc (1.6.2)
|
30
|
+
rack (2.2.6.2)
|
31
|
+
rack-protection (3.0.5)
|
34
32
|
rack
|
35
|
-
rake (13.0.
|
33
|
+
rake (13.0.6)
|
36
34
|
ruby2_keywords (0.0.5)
|
37
|
-
sinatra (
|
38
|
-
mustermann (~>
|
39
|
-
rack (~> 2.2)
|
40
|
-
rack-protection (=
|
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 (
|
40
|
+
sinatra-contrib (3.0.5)
|
43
41
|
multi_json
|
44
|
-
mustermann (~>
|
45
|
-
rack-protection (=
|
46
|
-
sinatra (=
|
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
|
-
|
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
|
|
data/et_fake_acas_server.gemspec
CHANGED
@@ -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', '~>
|
28
|
-
spec.add_dependency 'sinatra', '~>
|
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
|
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:
|
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:
|
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: '
|
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: '
|
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: '
|
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: '
|
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
|