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

Error in lib/cities.rb #16

@lethunder

Description

@lethunder

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions