cities icon indicating copy to clipboard operation
cities copied to clipboard

Error in lib/cities.rb

Open lethunder opened this issue 1 year ago • 0 comments

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

lethunder avatar Feb 13 '24 09:02 lethunder