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 +4 -4
- data/lib/hospital/checkup.rb +2 -2
- data/lib/hospital/version.rb +1 -1
- data/lib/hospital.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3ab764f421c7160201af9e785c00b3e3d4169199a921a03a295f5e694f1eb13c
|
|
4
|
+
data.tar.gz: 8aa64d6b14b30149df786c8f1c00b027a4ec1ee741d37e7fa597da02e23a1bce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 63229fb186f76c3c73bce046be58ab68d0f5a3a3526189e902992ebae073fd915aa16b7e01054806db9f7bc2a3fb08a791aa4aadba1b72f55b8afa23fe3e6245
|
|
7
|
+
data.tar.gz: ea6b28da799c06aa01b271e475449fa61e8bed3cef01f60fe9f68f8707bbaacfb15075075bf917451a47ed923723469468ff1c1dd6586f2f24fbc7f0ac32fd2f
|
data/lib/hospital/checkup.rb
CHANGED
|
@@ -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
|
data/lib/hospital/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2024-05-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: require_all
|