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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ebe0e9f48afb706680f27f34ba84a1a0aebbd6fad4288e8712124201b9c5783
4
- data.tar.gz: a5f2a970fea371e8f9ca43d99e881707105227d5e4bffb1efb49095f83422d54
3
+ metadata.gz: 4eec50fd56b6b012f10ca8be9ba008db8b137d2dc3aa2325c15b60e5f4e7fea0
4
+ data.tar.gz: b8bf1ba36863264795948d94e600f8da8199f3fce925bf62fa31ca3cb91735d2
5
5
  SHA512:
6
- metadata.gz: ea3e51f28b80bd4e05124caf2976c1f772cb8609e7251b3086df22de15b31de60087e8b14a7058a4f4b4346d911a81e3c3c7326e6dfda861b49384d9f21695b5
7
- data.tar.gz: 87661095ca74fb06f134a159b90db8f2af950677107cc996700bb03727eb9bee9d3d4d1dc42989c9d7e941e51c9c775ca6bf55f95a77ce37463ba39e0255a901
6
+ metadata.gz: a681e0414aa748927e78d2b39ca44633ad9e40d9c838f8f942a00f47e7424000cef6dff54da339734a48c7f4014f09d34d9967a36ef1670dcf0f03c3a3de62ac
7
+ data.tar.gz: 3f2293cb4892bfb3cc1b1a95c597931a0489236966156493b9b9017a3e9aad21f42700bd182f8f0a5dcb9303cd5c0e13b4746f855c364cc157b04449f1d3dbdb
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MedCounter
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
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.0
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://bequestdecendresstudios.github.io/BequestDeCendresBlog/
25
+ homepage: https://github.com/LWFlouisa/MedCounter
26
26
  licenses: []
27
27
  metadata: {}
28
28
  post_install_message: