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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a944ff334a7e14fa67d049e11b0790a86187fe692db3c7deb6ab0f48114b815b
4
- data.tar.gz: fe7ebd9f65cc21665bb9625ff6c7f4e02ff028aaa8d4ab4e730e7e8e2faa1fae
3
+ metadata.gz: 54c43d4e7a183668e99aa9ca2e33ee581ca275cf625022e899c85ea1343ad374
4
+ data.tar.gz: dfe2031626184c0cd6559b38db0b48acbfd5611396b1a9addb7a9bb985ecd21e
5
5
  SHA512:
6
- metadata.gz: 714ce627c7034533d740882fb8fca3b54b419fbba02127d254055e1c3e8aa40e673e31348f375ab51968eb4005c85d5c5b73d5909f2d84b02f4052de5fe89903
7
- data.tar.gz: 3595cc7d6d324b2ea386a148f66048f6488516c22eef31949e9898c53ff8040a478434b822ce8e1b80d86a68b9ae894b64c2f151d0d725a9601840e99343dc82
6
+ metadata.gz: c479b10fa6e637dc99b11c5799e9ed374047a43135c66fd9d2c0818a032d074ce81b5bb15030158cc6724e1e93d592ba4552fc3f70f90ea1a772ab77790b4528
7
+ data.tar.gz: dc801614d28a967ede5139e5851aa0ce512de9904647e88ccab6c51aec7b176fb1d990c6c7a97a3994e80594617e2bcf9a6eb6537864e5b4977a07ad1244858b
data/bin/vaccine-spotter CHANGED
@@ -47,6 +47,7 @@ class MyCLI < Thor
47
47
  puts "(!) vaccine-spotter: couldn't print `OS.report`"
48
48
  end
49
49
  end
50
+ map %w[--version -v] => :version
50
51
 
51
52
  default_task :start
52
53
 
@@ -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 "Appointments no longer available at #{pastel.bold current["city"].split.map(&:capitalize).join(' ') + ' ' + current["provider_brand_name"]} as of #{Time.parse(current["appointments_last_fetched"]).localtime.strftime("%H:%M:%S")}"
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
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-18 00:00:00.000000000 Z
11
+ date: 2021-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tty-logger