blood_groups 0.0.1 → 0.0.2
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/blood_groups.rb +3 -3
- 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: 5f300c76aabb95a6ce8988c2f65710bb83f778dc9ce6a4fd497b98eeba7e473a
|
|
4
|
+
data.tar.gz: 12643f60ef8ffa41e6fbfedde42c2e45332295f2334fc240984be69d52a70003
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ddf3af1f125e3ac97a2eb45e4f182a9754072fe3d28b03bdd2e8eae8b71c993dcaf5f44701fb5eac4bcfc98fcde3eaae28b4fe47cb24a357d736573a51957750
|
|
7
|
+
data.tar.gz: 600d5ca90f2a091a216510338b6a786e66e18f1d7702b9431692ed88049d024dff09c74917e6512a71212b5fae06d66632abf28c9c9e4c84f7c0fd27768c7e68
|
data/lib/blood_groups.rb
CHANGED
|
@@ -17,7 +17,7 @@ class BloodGroups
|
|
|
17
17
|
return [@@universal_donor, 'B']
|
|
18
18
|
when "AB"
|
|
19
19
|
return [@@universal_donor, 'A', 'B', @@universal_recipient]
|
|
20
|
-
else
|
|
20
|
+
else
|
|
21
21
|
return nil
|
|
22
22
|
end
|
|
23
23
|
end
|
|
@@ -34,8 +34,8 @@ class BloodGroups
|
|
|
34
34
|
return [@@universal_recipient, 'B']
|
|
35
35
|
when "AB"
|
|
36
36
|
return [@@universal_recipient]
|
|
37
|
-
else
|
|
38
|
-
return
|
|
37
|
+
else
|
|
38
|
+
return nil
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: blood_groups
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sanjay Adhith
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-08-
|
|
11
|
+
date: 2019-08-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Simple gem for working with blood groups.
|
|
14
14
|
email: sgxadhith@outlook.com
|