gov_fake_notify 1.1.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.idea/modules.xml +8 -0
- data/.ruby-version +1 -1
- data/Gemfile.lock +45 -20
- data/gov_fake_notify.gemspec +2 -2
- data/lib/gov_fake_notify/cli/root.rb +10 -2
- data/lib/gov_fake_notify/version.rb +1 -1
- metadata +12 -12
- data/lib/gov_fake_notify/iodine.rb +0 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0b27e918073fbd08a8c60e02e11d98e5c9546389af6f2ada1980ab287b831cc6
|
|
4
|
+
data.tar.gz: dd70b31bbfe9698653fec986cd7911ce6f7775ac85ab6517a3617358d55b0798
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab536c197f14146d2b5a77c1f0a2f414ffe0763b1d19c075dde16694e1eda2af23775a83fe8ba073ecfdd660108f116a2f113f4a990f82a4b55ed7b7481df846
|
|
7
|
+
data.tar.gz: 4d04bbba3ba17c4243a2cf5af4b4498efaeeb9d1ae01c104353203a9d99f296641d76dd4e8fc2a3efb70aec336b068fca0ceb8553dfa6959e7f3b334aebd3b47
|
data/.idea/modules.xml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/gov_fake_notify.iml" filepath="$PROJECT_DIR$/.idea/gov_fake_notify.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
3.2.2
|
data/Gemfile.lock
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
gov_fake_notify (
|
|
5
|
-
activemodel (
|
|
6
|
-
iodine (~> 0.7)
|
|
4
|
+
gov_fake_notify (2.0.0)
|
|
5
|
+
activemodel (>= 6.1)
|
|
7
6
|
jwt (~> 2.2, >= 2.2.3)
|
|
8
7
|
mail (~> 2.7, >= 2.7.1)
|
|
8
|
+
puma (~> 6.4)
|
|
9
9
|
roda (~> 3.48)
|
|
10
10
|
thor (~> 1.1)
|
|
11
11
|
tilt (~> 2.0, >= 2.0.10)
|
|
@@ -13,34 +13,59 @@ PATH
|
|
|
13
13
|
GEM
|
|
14
14
|
remote: https://rubygems.org/
|
|
15
15
|
specs:
|
|
16
|
-
activemodel (
|
|
17
|
-
activesupport (=
|
|
18
|
-
activesupport (
|
|
16
|
+
activemodel (7.1.3.2)
|
|
17
|
+
activesupport (= 7.1.3.2)
|
|
18
|
+
activesupport (7.1.3.2)
|
|
19
|
+
base64
|
|
20
|
+
bigdecimal
|
|
19
21
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
22
|
+
connection_pool (>= 2.2.5)
|
|
23
|
+
drb
|
|
20
24
|
i18n (>= 1.6, < 2)
|
|
21
25
|
minitest (>= 5.1)
|
|
26
|
+
mutex_m
|
|
22
27
|
tzinfo (~> 2.0)
|
|
23
|
-
zeitwerk (~> 2.3)
|
|
24
28
|
ast (2.4.2)
|
|
25
|
-
|
|
29
|
+
base64 (0.2.0)
|
|
30
|
+
bigdecimal (3.1.7)
|
|
31
|
+
concurrent-ruby (1.2.3)
|
|
32
|
+
connection_pool (2.4.1)
|
|
33
|
+
date (3.3.4)
|
|
26
34
|
diff-lcs (1.4.4)
|
|
27
|
-
|
|
35
|
+
drb (2.2.1)
|
|
36
|
+
i18n (1.14.4)
|
|
28
37
|
concurrent-ruby (~> 1.0)
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
mail (2.
|
|
38
|
+
jwt (2.8.1)
|
|
39
|
+
base64
|
|
40
|
+
mail (2.8.1)
|
|
32
41
|
mini_mime (>= 0.1.1)
|
|
33
|
-
|
|
34
|
-
|
|
42
|
+
net-imap
|
|
43
|
+
net-pop
|
|
44
|
+
net-smtp
|
|
45
|
+
mini_mime (1.1.5)
|
|
46
|
+
minitest (5.22.3)
|
|
47
|
+
mutex_m (0.2.0)
|
|
48
|
+
net-imap (0.4.10)
|
|
49
|
+
date
|
|
50
|
+
net-protocol
|
|
51
|
+
net-pop (0.1.2)
|
|
52
|
+
net-protocol
|
|
53
|
+
net-protocol (0.2.2)
|
|
54
|
+
timeout
|
|
55
|
+
net-smtp (0.5.0)
|
|
56
|
+
net-protocol
|
|
57
|
+
nio4r (2.7.1)
|
|
35
58
|
parallel (1.21.0)
|
|
36
59
|
parser (3.0.2.0)
|
|
37
60
|
ast (~> 2.4.1)
|
|
38
|
-
|
|
61
|
+
puma (6.4.2)
|
|
62
|
+
nio4r (~> 2.0)
|
|
63
|
+
rack (3.0.10)
|
|
39
64
|
rainbow (3.0.0)
|
|
40
65
|
rake (12.3.3)
|
|
41
66
|
regexp_parser (2.1.1)
|
|
42
67
|
rexml (3.2.5)
|
|
43
|
-
roda (3.
|
|
68
|
+
roda (3.79.0)
|
|
44
69
|
rack
|
|
45
70
|
rspec (3.10.0)
|
|
46
71
|
rspec-core (~> 3.10.0)
|
|
@@ -67,12 +92,12 @@ GEM
|
|
|
67
92
|
rubocop-ast (1.11.0)
|
|
68
93
|
parser (>= 3.0.1.1)
|
|
69
94
|
ruby-progressbar (1.11.0)
|
|
70
|
-
thor (1.
|
|
71
|
-
tilt (2.0
|
|
72
|
-
|
|
95
|
+
thor (1.3.1)
|
|
96
|
+
tilt (2.3.0)
|
|
97
|
+
timeout (0.4.1)
|
|
98
|
+
tzinfo (2.0.6)
|
|
73
99
|
concurrent-ruby (~> 1.0)
|
|
74
100
|
unicode-display_width (2.1.0)
|
|
75
|
-
zeitwerk (2.5.3)
|
|
76
101
|
|
|
77
102
|
PLATFORMS
|
|
78
103
|
ruby
|
data/gov_fake_notify.gemspec
CHANGED
|
@@ -27,8 +27,8 @@ Gem::Specification.new do |spec|
|
|
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
28
28
|
spec.require_paths = ['lib']
|
|
29
29
|
|
|
30
|
-
spec.add_dependency 'activemodel', '
|
|
31
|
-
spec.add_dependency '
|
|
30
|
+
spec.add_dependency 'activemodel', '>= 6.1'
|
|
31
|
+
spec.add_dependency 'puma', '~> 6.4'
|
|
32
32
|
spec.add_dependency 'jwt', '~> 2.2', '>= 2.2.3'
|
|
33
33
|
spec.add_dependency 'mail', '~> 2.7', '>= 2.7.1'
|
|
34
34
|
spec.add_dependency 'roda', '~> 3.48'
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require 'thor'
|
|
4
|
-
require 'gov_fake_notify/iodine'
|
|
5
4
|
require 'uri'
|
|
6
5
|
require 'net/http'
|
|
7
6
|
require 'yaml'
|
|
7
|
+
require 'puma'
|
|
8
|
+
require 'puma/configuration'
|
|
8
9
|
module GovFakeNotify
|
|
9
10
|
module Cli
|
|
10
11
|
# Root of all commands
|
|
@@ -29,7 +30,14 @@ module GovFakeNotify
|
|
|
29
30
|
c.from(YAML.parse(File.read(options.config)).to_ruby.merge(options.slice(*(options.keys - ['config']))))
|
|
30
31
|
end
|
|
31
32
|
end
|
|
32
|
-
|
|
33
|
+
|
|
34
|
+
conf = Puma::Configuration.new do |user_config|
|
|
35
|
+
user_config.threads 1, 1
|
|
36
|
+
user_config.workers 1
|
|
37
|
+
user_config.port GovFakeNotify.config.port
|
|
38
|
+
user_config.app { GovFakeNotify::RootApp }
|
|
39
|
+
end
|
|
40
|
+
Puma::Launcher.new(conf, log_writer: Puma::LogWriter.stdio).run
|
|
33
41
|
end
|
|
34
42
|
|
|
35
43
|
desc 'create-template', 'Create a template'
|
metadata
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gov_fake_notify
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- garytaylor
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-04-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemodel
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "
|
|
17
|
+
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '6.1'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - "
|
|
24
|
+
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '6.1'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name:
|
|
28
|
+
name: puma
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
33
|
+
version: '6.4'
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
40
|
+
version: '6.4'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: jwt
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -149,6 +149,7 @@ extensions: []
|
|
|
149
149
|
extra_rdoc_files: []
|
|
150
150
|
files:
|
|
151
151
|
- ".gitignore"
|
|
152
|
+
- ".idea/modules.xml"
|
|
152
153
|
- ".rspec"
|
|
153
154
|
- ".rubocop.yml"
|
|
154
155
|
- ".rubocop_todo.yml"
|
|
@@ -177,7 +178,6 @@ files:
|
|
|
177
178
|
- lib/gov_fake_notify/control_app.rb
|
|
178
179
|
- lib/gov_fake_notify/current_service.rb
|
|
179
180
|
- lib/gov_fake_notify/files_app.rb
|
|
180
|
-
- lib/gov_fake_notify/iodine.rb
|
|
181
181
|
- lib/gov_fake_notify/notifications_app.rb
|
|
182
182
|
- lib/gov_fake_notify/root_app.rb
|
|
183
183
|
- lib/gov_fake_notify/store.rb
|
|
@@ -200,7 +200,7 @@ metadata:
|
|
|
200
200
|
homepage_uri: https://github.com/hmcts/gov_fake_notify
|
|
201
201
|
source_code_uri: https://github.com/hmcts/gov_fake_notify
|
|
202
202
|
changelog_uri: https://github.com/hmcts/gov_fake_notify/changelog.md
|
|
203
|
-
post_install_message:
|
|
203
|
+
post_install_message:
|
|
204
204
|
rdoc_options: []
|
|
205
205
|
require_paths:
|
|
206
206
|
- lib
|
|
@@ -215,8 +215,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
215
215
|
- !ruby/object:Gem::Version
|
|
216
216
|
version: '0'
|
|
217
217
|
requirements: []
|
|
218
|
-
rubygems_version: 3.
|
|
219
|
-
signing_key:
|
|
218
|
+
rubygems_version: 3.4.10
|
|
219
|
+
signing_key:
|
|
220
220
|
specification_version: 4
|
|
221
221
|
summary: A fake govuk notify service
|
|
222
222
|
test_files: []
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require 'iodine'
|
|
4
|
-
# Iodine setup - use conditional setup to allow command-line arguments to override these:
|
|
5
|
-
if defined?(Iodine)
|
|
6
|
-
Iodine.threads = ENV.fetch('RAILS_MAX_THREADS', 1).to_i if Iodine.threads.zero?
|
|
7
|
-
Iodine.workers = ENV.fetch('WEB_CONCURRENCY', 1).to_i if Iodine.workers.zero?
|
|
8
|
-
Iodine::DEFAULT_SETTINGS[:port] = ENV.fetch('PORT') if ENV.key?('PORT')
|
|
9
|
-
end
|