effective_cpd 1.4.3 → 1.4.4

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: c9bf9fab63804fd9df4169549c0c278ca470da4b7b702b8203bbabd9cae1a687
4
- data.tar.gz: 32976d633df1ad0832af4bd563c2b9082733e0faca24a43102c4c1f6782d793a
3
+ metadata.gz: 6b3ab431275c110356affc6c6a2f7fd4291b974f1f5ac5d2ab289cc5a6426b1e
4
+ data.tar.gz: 78eca26e37a10c4b1d832738ea92cccbe43c20c157deba577b1a4509e0786294
5
5
  SHA512:
6
- metadata.gz: 0ba9c124af907479bf330535e963aa65b3926430b308c00842cdb4f1346297cf096a15b03a1227b6c53e60a4267a20596e4fe616c0e768d421cfd5a7e4cd5b8a
7
- data.tar.gz: 6b6f0b3c1090e94b6e361bcfe2a0e99649ca2dc1a7ae3be0f3974479ce06f2f587e314fb39ebdde1e973688624340e3cbb6cb4871c0c46fd34925dc846a6385f
6
+ metadata.gz: 9be8da936ad87f771a1c3deed17301140e4d15a60d0d15ba14353b60d69f53b39683efe05351bfb147a7f6ccdfcb5fdb74163bd55628f30a0c7cfd6d98326061
7
+ data.tar.gz: a6e902aaa8115ec5b0e9dfdc246884207fc941597ab38fc0fc49e56cfcb68b6ca0e3c02fb083991183c529375dbce4750898205f36a063036c2094a542160260
@@ -256,12 +256,11 @@ module EffectiveCpdAudit
256
256
  def required_steps
257
257
  steps = [:start, :information, :instructions, :demographics]
258
258
 
259
- steps << :conflict if cpd_audit_level.conflict_of_interest?
260
-
261
- steps << :exemption if cpd_audit_level.can_request_exemption?
259
+ steps << :conflict if cpd_audit_level.conflict_of_interest? && !was_submitted?
260
+ steps << :exemption if cpd_audit_level.can_request_exemption? && !was_submitted?
262
261
 
263
262
  unless exemption_requested?
264
- steps << :extension if cpd_audit_level.can_request_extension?
263
+ steps << :extension if cpd_audit_level.can_request_extension? && !was_submitted?
265
264
  end
266
265
 
267
266
  if exemption_requested? || extension_requested?
@@ -1,3 +1,3 @@
1
1
  module EffectiveCpd
2
- VERSION = '1.4.3'
2
+ VERSION = '1.4.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_cpd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-10 00:00:00.000000000 Z
11
+ date: 2023-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails