gov_fake_notify 1.2.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 328a4b8bd7150fa5fa80584e6a28163e911f1a8ab8c50d23630d31710a9b845d
4
- data.tar.gz: baf4e19409990d079218613fe1b80572944b9ece9dff39855672baa551810872
3
+ metadata.gz: 0b27e918073fbd08a8c60e02e11d98e5c9546389af6f2ada1980ab287b831cc6
4
+ data.tar.gz: dd70b31bbfe9698653fec986cd7911ce6f7775ac85ab6517a3617358d55b0798
5
5
  SHA512:
6
- metadata.gz: 2ae605a812571782eb2d3147e8b6b39f981e247d783baf40497ed43c89a27bef9bdb384009373a14e8fba52f4c95201b3f731597b7d21e546cb2be61a4245487
7
- data.tar.gz: 808e2eb41722aa9e279280ddfa4c25ffe204c3ae4a026e378411a0e4a8aa1e1558e6078266619b3e840bb26fb6913f64ceae489855d84342e8e90c6578424918
6
+ metadata.gz: ab536c197f14146d2b5a77c1f0a2f414ffe0763b1d19c075dde16694e1eda2af23775a83fe8ba073ecfdd660108f116a2f113f4a990f82a4b55ed7b7481df846
7
+ data.tar.gz: 4d04bbba3ba17c4243a2cf5af4b4498efaeeb9d1ae01c104353203a9d99f296641d76dd4e8fc2a3efb70aec336b068fca0ceb8553dfa6959e7f3b334aebd3b47
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.3
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 (1.2.0)
4
+ gov_fake_notify (2.0.0)
5
5
  activemodel (>= 6.1)
6
- iodine (~> 0.7)
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,33 +13,59 @@ PATH
13
13
  GEM
14
14
  remote: https://rubygems.org/
15
15
  specs:
16
- activemodel (7.0.3.1)
17
- activesupport (= 7.0.3.1)
18
- activesupport (7.0.3.1)
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
28
  ast (2.4.2)
24
- concurrent-ruby (1.1.10)
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)
25
34
  diff-lcs (1.4.4)
26
- i18n (1.12.0)
35
+ drb (2.2.1)
36
+ i18n (1.14.4)
27
37
  concurrent-ruby (~> 1.0)
28
- iodine (0.7.48)
29
- jwt (2.4.1)
30
- mail (2.7.1)
38
+ jwt (2.8.1)
39
+ base64
40
+ mail (2.8.1)
31
41
  mini_mime (>= 0.1.1)
32
- mini_mime (1.1.2)
33
- minitest (5.16.2)
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)
34
58
  parallel (1.21.0)
35
59
  parser (3.0.2.0)
36
60
  ast (~> 2.4.1)
37
- rack (2.2.4)
61
+ puma (6.4.2)
62
+ nio4r (~> 2.0)
63
+ rack (3.0.10)
38
64
  rainbow (3.0.0)
39
65
  rake (12.3.3)
40
66
  regexp_parser (2.1.1)
41
67
  rexml (3.2.5)
42
- roda (3.58.0)
68
+ roda (3.79.0)
43
69
  rack
44
70
  rspec (3.10.0)
45
71
  rspec-core (~> 3.10.0)
@@ -66,9 +92,10 @@ GEM
66
92
  rubocop-ast (1.11.0)
67
93
  parser (>= 3.0.1.1)
68
94
  ruby-progressbar (1.11.0)
69
- thor (1.2.1)
70
- tilt (2.0.11)
71
- tzinfo (2.0.5)
95
+ thor (1.3.1)
96
+ tilt (2.3.0)
97
+ timeout (0.4.1)
98
+ tzinfo (2.0.6)
72
99
  concurrent-ruby (~> 1.0)
73
100
  unicode-display_width (2.1.0)
74
101
 
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.require_paths = ['lib']
29
29
 
30
30
  spec.add_dependency 'activemodel', '>= 6.1'
31
- spec.add_dependency 'iodine', '~> 0.7'
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
- Rack::Server.start app: GovFakeNotify::RootApp, Port: GovFakeNotify.config.port, server: 'iodine'
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'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GovFakeNotify
4
- VERSION = '1.2.0'
4
+ VERSION = '2.0.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gov_fake_notify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
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: 2022-07-25 00:00:00.000000000 Z
11
+ date: 2024-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -25,19 +25,19 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '6.1'
27
27
  - !ruby/object:Gem::Dependency
28
- name: iodine
28
+ name: puma
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.7'
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: '0.7'
40
+ version: '6.4'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: jwt
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -178,7 +178,6 @@ files:
178
178
  - lib/gov_fake_notify/control_app.rb
179
179
  - lib/gov_fake_notify/current_service.rb
180
180
  - lib/gov_fake_notify/files_app.rb
181
- - lib/gov_fake_notify/iodine.rb
182
181
  - lib/gov_fake_notify/notifications_app.rb
183
182
  - lib/gov_fake_notify/root_app.rb
184
183
  - lib/gov_fake_notify/store.rb
@@ -201,7 +200,7 @@ metadata:
201
200
  homepage_uri: https://github.com/hmcts/gov_fake_notify
202
201
  source_code_uri: https://github.com/hmcts/gov_fake_notify
203
202
  changelog_uri: https://github.com/hmcts/gov_fake_notify/changelog.md
204
- post_install_message:
203
+ post_install_message:
205
204
  rdoc_options: []
206
205
  require_paths:
207
206
  - lib
@@ -216,8 +215,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
216
215
  - !ruby/object:Gem::Version
217
216
  version: '0'
218
217
  requirements: []
219
- rubygems_version: 3.1.6
220
- signing_key:
218
+ rubygems_version: 3.4.10
219
+ signing_key:
221
220
  specification_version: 4
222
221
  summary: A fake govuk notify service
223
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