cityname_aliases 0.0.1 → 0.0.2

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.
@@ -5,7 +5,7 @@ module CitynameAliases
5
5
  def self.get(name)
6
6
  unless defined?(@csv)
7
7
  @csv = {}
8
- CSV.foreach("#{__dir__}/aliases.csv", headers: ["name", "alias"], col_sep: "|") do |row|
8
+ CSV.foreach("#{__dir__}/aliases.csv", headers: ["alias", "name"], col_sep: "|") do |row|
9
9
  @csv[row["alias"].downcase] = row["name"]
10
10
  end
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module CitynameAliases
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cityname_aliases
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Osipenko
@@ -50,6 +50,7 @@ files:
50
50
  - README.md
51
51
  - Rakefile
52
52
  - cityname_aliases.gemspec
53
+ - lib/LICENSE
53
54
  - lib/aliases.csv
54
55
  - lib/cityname_aliases.rb
55
56
  - lib/cityname_aliases/version.rb