MedCounter 0.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9ebe0e9f48afb706680f27f34ba84a1a0aebbd6fad4288e8712124201b9c5783
4
+ data.tar.gz: a5f2a970fea371e8f9ca43d99e881707105227d5e4bffb1efb49095f83422d54
5
+ SHA512:
6
+ metadata.gz: ea3e51f28b80bd4e05124caf2976c1f772cb8609e7251b3086df22de15b31de60087e8b14a7058a4f4b4346d911a81e3c3c7326e6dfda861b49384d9f21695b5
7
+ data.tar.gz: 87661095ca74fb06f134a159b90db8f2af950677107cc996700bb03727eb9bee9d3d4d1dc42989c9d7e941e51c9c775ca6bf55f95a77ce37463ba39e0255a901
data/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # MedCounter
2
+
3
+ TODO: Delete this and the text below, and describe your gem
4
+
5
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/MedCounter`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ ## Installation
8
+
9
+ TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
+
11
+ Install the gem and add to the application's Gemfile by executing:
12
+
13
+ ```bash
14
+ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
15
+ ```
16
+
17
+ If bundler is not being used to manage dependencies, install the gem by executing:
18
+
19
+ ```bash
20
+ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/MedCounter.
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ task default: %i[]
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MedCounter
4
+ VERSION = "0.1.0"
5
+ end
data/lib/MedCounter.rb ADDED
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "MedCounter/version"
4
+
5
+ module MedCounter
6
+ class Error < StandardError; end
7
+
8
+ class CountMedication
9
+ def self.context
10
+ puts "This is a medication prompter for letting you know what day to take your meds."
11
+ end
12
+
13
+ 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
+ end
41
+ end
42
+ end
@@ -0,0 +1,4 @@
1
+ module MedCounter
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: MedCounter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - LWFlouisa
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2025-08-05 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: This allows you to detect what day it is to take your medication.
14
+ email:
15
+ - lwflouisa@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - README.md
21
+ - Rakefile
22
+ - lib/MedCounter.rb
23
+ - lib/MedCounter/version.rb
24
+ - sig/MedCounter.rbs
25
+ homepage: https://bequestdecendresstudios.github.io/BequestDeCendresBlog/
26
+ licenses: []
27
+ metadata: {}
28
+ post_install_message:
29
+ rdoc_options: []
30
+ require_paths:
31
+ - lib
32
+ required_ruby_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 3.0.0
37
+ required_rubygems_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ requirements: []
43
+ rubygems_version: 3.3.5
44
+ signing_key:
45
+ specification_version: 4
46
+ summary: Counting the meds.
47
+ test_files: []