hospital 0.7.3 → 0.7.4

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: 9c0ddc10eefd69ba6c0bcfdf55e285dc6c913b1d6f4ce5e0831f565fa2e5c820
4
- data.tar.gz: bce2af94603c9e818a8edd3ebd7a925d8d75ce4dac17844601e76ce6e96d22f6
3
+ metadata.gz: 3ab764f421c7160201af9e785c00b3e3d4169199a921a03a295f5e694f1eb13c
4
+ data.tar.gz: 8aa64d6b14b30149df786c8f1c00b027a4ec1ee741d37e7fa597da02e23a1bce
5
5
  SHA512:
6
- metadata.gz: 832a7be207bfa252dee8ec3d1cc217df08daf5af1cd1f397a8f3ea124779f4159d25305d9a4e7ef5cb73fe98f601be4e0fcc2b156115d81c5769791d05b5b8b0
7
- data.tar.gz: 4cf89b383834224b931dc6c12b8493a21033d9deb43d4dbb0993d031aa6989a3146e0e1d34786be2fe210ab6472461216d5ea13746289ed2e88265ff096ed236
6
+ metadata.gz: 63229fb186f76c3c73bce046be58ab68d0f5a3a3526189e902992ebae073fd915aa16b7e01054806db9f7bc2a3fb08a791aa4aadba1b72f55b8afa23fe3e6245
7
+ data.tar.gz: ea6b28da799c06aa01b271e475449fa61e8bed3cef01f60fe9f68f8707bbaacfb15075075bf917451a47ed923723469468ff1c1dd6586f2f24fbc7f0ac32fd2f
@@ -17,10 +17,10 @@ module Hospital
17
17
  diagnosis.reset
18
18
  end
19
19
 
20
- def check verbose: false
20
+ def check verbose: false, ignore_condition: false
21
21
  diagnosis.reset
22
22
 
23
- if condition.nil? || condition.call
23
+ if ignore_condition || condition.nil? || condition.call
24
24
  @skipped = false
25
25
  code.call(diagnosis)
26
26
  diagnosis
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hospital
4
- VERSION = "0.7.3"
4
+ VERSION = "0.7.4"
5
5
  end
data/lib/hospital.rb CHANGED
@@ -24,9 +24,9 @@ module Hospital
24
24
  end
25
25
 
26
26
  # used to call the checkup for a specific class directly (in specs)
27
- def do_checkup(klass, verbose: false)
27
+ def do_checkup(klass, verbose: false, ignore_condition: false)
28
28
  @@groups.map(&:all_checkups).flatten.select{|cu| cu.klass == klass }.map do |cu|
29
- cu.check verbose: verbose
29
+ cu.check verbose: verbose, ignore_condition: ignore_condition
30
30
  end
31
31
  end
32
32
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hospital
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-29 00:00:00.000000000 Z
11
+ date: 2024-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: require_all