Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Error in lib/cities.rb #16

Open
lethunder opened this issue Feb 13, 2024 · 0 comments
Open

Error in lib/cities.rb #16

lethunder opened this issue Feb 13, 2024 · 0 comments

Comments

@lethunder
Copy link

guys yoiu have a major issue in lib/cities.rb
The error popsup when i do cities = Cities.cities_in_country('FR')

/cities-0.3.1/lib/cities.rb:30:in has_data?': undefined method exists?' for Dir:Class (NoMethodError)

This is the method involve
def has_data?
data_path && Dir.exists?(data_path)
end

it should be
def has_data?
data_path && Dir.exist?(data_path)
end

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant