weather_finder 0.1.3 → 0.1.4
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/weather_finder/cli.rb +2 -2
- data/lib/weather_finder/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 95ce3a3bb226ae94b5d3fcd5d08b2f32f94a237a
|
|
4
|
+
data.tar.gz: c1502a0bcd7414d66fcedff118f688ee036a189a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0d69c281175b2fd3de171775a3ee642fdd01a7dba858527b050f758a0e7488efefe679cc15edaf318bd7b3412e87741c8f99d1fbdfb751f227dec34df4f587f3
|
|
7
|
+
data.tar.gz: 727c539f37e1e3c2a45fc97c4bacee6569b68d237d9c59a6daae427575c19d375220756abf0bf88e6382ce3b0e7dbf223d4797dabac14a6bab87956f6511fd5e
|
data/lib/weather_finder/cli.rb
CHANGED
|
@@ -51,7 +51,7 @@ class WeatherFinder::CLI
|
|
|
51
51
|
def weather_ten_day(zip_code)
|
|
52
52
|
|
|
53
53
|
ten_day_weather = WeatherFinder::Scrapper.ten_day_weather(zip_code)
|
|
54
|
-
|
|
54
|
+
|
|
55
55
|
puts "------------------------------------------------------------------------"
|
|
56
56
|
ten_day_weather.each do |row|
|
|
57
57
|
print "Day:#{row[0]} "
|
|
@@ -99,7 +99,7 @@ class WeatherFinder::CLI
|
|
|
99
99
|
def zip_code?(zip_code) #takes all zip codes and compares them to given zip
|
|
100
100
|
valid = false
|
|
101
101
|
|
|
102
|
-
File.open("
|
|
102
|
+
File.open("./lib/weather_finder/all_usa_zip.txt").each do |zip| #read from file to test valid zip
|
|
103
103
|
if zip.to_i == zip_code.to_i
|
|
104
104
|
valid = true
|
|
105
105
|
end
|