vaccine-spotter 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/vaccine-spotter +1 -0
- data/lib/vaccine-spotter.rb +3 -7
- 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: 54c43d4e7a183668e99aa9ca2e33ee581ca275cf625022e899c85ea1343ad374
|
4
|
+
data.tar.gz: dfe2031626184c0cd6559b38db0b48acbfd5611396b1a9addb7a9bb985ecd21e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c479b10fa6e637dc99b11c5799e9ed374047a43135c66fd9d2c0818a032d074ce81b5bb15030158cc6724e1e93d592ba4552fc3f70f90ea1a772ab77790b4528
|
7
|
+
data.tar.gz: dc801614d28a967ede5139e5851aa0ce512de9904647e88ccab6c51aec7b176fb1d990c6c7a97a3994e80594617e2bcf9a6eb6537864e5b4977a07ad1244858b
|
data/bin/vaccine-spotter
CHANGED
data/lib/vaccine-spotter.rb
CHANGED
@@ -137,22 +137,18 @@ begin
|
|
137
137
|
|
138
138
|
puts
|
139
139
|
|
140
|
-
# if (Time.now.strftime("%M").to_i%5 == 0) && (Time.now.strftime("%S").to_i < refresh_rate)
|
141
|
-
# excluded.clear
|
142
|
-
# puts "List of excluded/checked stores cleared"
|
143
|
-
# number_excluded = excluded.length
|
144
|
-
# end
|
145
|
-
|
146
140
|
new_appointment = false
|
147
141
|
|
148
142
|
# This is the main area thing — it loops through each zip code and finds matches
|
149
143
|
parsed_json["features"].each_index do |i|
|
150
144
|
current = parsed_json["features"][i]["properties"]
|
151
145
|
|
146
|
+
# Checks if locations that previously had appointments no longer have availability
|
152
147
|
if (excluded.keys.include? current["id"]) && (current["appointments_available"] == false)
|
153
148
|
print "- "
|
154
|
-
puts pastel.red "
|
149
|
+
puts pastel.red "#{pastel.bold current["city"].split.map(&:capitalize).join(' ') + ' ' + current["provider_brand_name"]}: Appointments no longer available as of #{Time.parse(current["appointments_last_fetched"]).localtime.strftime("%H:%M:%S")}"
|
155
150
|
excluded.delete current["id"]
|
151
|
+
initial_number_excluded = excluded.length
|
156
152
|
end
|
157
153
|
|
158
154
|
# Finds matches
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vaccine-spotter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jack MapelLentz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tty-logger
|