MedCounter 0.1.0 → 0.1.1
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/MedCounter/version.rb +1 -1
- data/lib/MedCounter.rb +0 -27
- 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: 4eec50fd56b6b012f10ca8be9ba008db8b137d2dc3aa2325c15b60e5f4e7fea0
|
|
4
|
+
data.tar.gz: b8bf1ba36863264795948d94e600f8da8199f3fce925bf62fa31ca3cb91735d2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a681e0414aa748927e78d2b39ca44633ad9e40d9c838f8f942a00f47e7424000cef6dff54da339734a48c7f4014f09d34d9967a36ef1670dcf0f03c3a3de62ac
|
|
7
|
+
data.tar.gz: 3f2293cb4892bfb3cc1b1a95c597931a0489236966156493b9b9017a3e9aad21f42700bd182f8f0a5dcb9303cd5c0e13b4746f855c364cc157b04449f1d3dbdb
|
data/lib/MedCounter/version.rb
CHANGED
data/lib/MedCounter.rb
CHANGED
|
@@ -7,36 +7,9 @@ module MedCounter
|
|
|
7
7
|
|
|
8
8
|
class CountMedication
|
|
9
9
|
def self.context
|
|
10
|
-
puts "This is a medication prompter for letting you know what day to take your meds."
|
|
11
10
|
end
|
|
12
11
|
|
|
13
12
|
def self.medicate
|
|
14
|
-
monday_meds = File.read("data/medication/monday_meds.txt").strip
|
|
15
|
-
tuesday_meds = File.read("data/medication/tuesday_meds.txt").strip
|
|
16
|
-
wednesday_meds = File.read("data/medication/wednesday_meds.txt").strip
|
|
17
|
-
thursday_meds = File.read("data/medication/thursday_meds.txt").strip
|
|
18
|
-
friday_meds = File.read("data/medication/friday_meds.txt").strip
|
|
19
|
-
saturday_meds = File.read("data/medication/saturday_meds.txt").strip
|
|
20
|
-
sunday_meds = File.read("data/medication/sunday_meds.txt").strip
|
|
21
|
-
|
|
22
|
-
system("date > data/time/date.txt")
|
|
23
|
-
|
|
24
|
-
data = File.read("data/time/date.txt").split(" ")
|
|
25
|
-
|
|
26
|
-
current_day = "#{data[0]}"
|
|
27
|
-
|
|
28
|
-
print "BIANCA >> You need to take #{current_day}'s medication. "
|
|
29
|
-
|
|
30
|
-
if current_day == "Mon"; puts "Take: #{monday_meds}."
|
|
31
|
-
elsif current_day == "Tue"; puts "Take: #{tuesday_meds}."
|
|
32
|
-
elsif current_day == "Wed"; puts "Take: #{wednesday_meds}."
|
|
33
|
-
elsif current_day == "Thu"; puts "Take: #{thursday_meds}."
|
|
34
|
-
elsif current_day == "Fri"; puts "Take: #{friday_meds}."
|
|
35
|
-
elsif current_day == "Sat"; puts "Take: #{saturday_meds}."
|
|
36
|
-
elsif current_day == "Sun"; puts "Take: #{sunday_meds}."
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
sleep(1.5)
|
|
40
13
|
end
|
|
41
14
|
end
|
|
42
15
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: MedCounter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- LWFlouisa
|
|
@@ -22,7 +22,7 @@ files:
|
|
|
22
22
|
- lib/MedCounter.rb
|
|
23
23
|
- lib/MedCounter/version.rb
|
|
24
24
|
- sig/MedCounter.rbs
|
|
25
|
-
homepage: https://
|
|
25
|
+
homepage: https://github.com/LWFlouisa/MedCounter
|
|
26
26
|
licenses: []
|
|
27
27
|
metadata: {}
|
|
28
28
|
post_install_message:
|