weather_finder 0.1.6 → 0.1.7

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
  SHA1:
3
- metadata.gz: 764fc3e30fbf0f9dff4034ef70b350be7bff69e8
4
- data.tar.gz: dbae895b9105136db4c8931ecf3609f4ff329069
3
+ metadata.gz: 6a027716d16f6fd3d4bf3ba85393169c24722044
4
+ data.tar.gz: 5bbee28d9fe1bfa2e9131b7efa936092a630f0f3
5
5
  SHA512:
6
- metadata.gz: b543affd74fd66bc8798a1716db31227be04b3830d9648e4791a0bfcc3b63959ee216ee0bacd9ddaeb11c7f3ff358dd557bbe5633939dda120730e3c78943d06
7
- data.tar.gz: f1e3951764f7f11eb2ae32ce3578a0be14c533c482a1cf9626128e61b2b2ce9d9480bbf403e96e57c0023d8fb64b53b42d0e9bd2f07efc598edd90f87122818a
6
+ metadata.gz: d8dd3f792fbb1c89984037bcb70f89d474ad54d595970c496ec928bae5bf9cbeba61c9c2bf59a853c8627d72d7adbc7ce31162af3c801c32a4418ba7c3ac1d21
7
+ data.tar.gz: 8171c72dea538b95139cd85b95dcaf7cb4a5f7c4b2eb13c5b58717135f97e09b61ae5848e04452c979f209ff93ba14103834c7d50b12d15e4fd40c73daac5729
@@ -98,8 +98,8 @@ class WeatherFinder::CLI
98
98
 
99
99
  def zip_code?(zip_code) #takes all zip codes and compares them to given zip
100
100
  valid = false
101
-
102
- File.open("lib/weather_finder/all_usa_zip.txt").each do |zip| #read from file to test valid zip
101
+ zip_path = File.join(File.dirname(__FILE__), '/all_usa_zip.txt')
102
+ File.open(zip_path).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
@@ -1,3 +1,3 @@
1
1
  module WeatherFinder
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weather_finder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - "'Justin Tooley'"