countries 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/countries.gemspec +1 -1
- data/lib/countries.rb +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
data/countries.gemspec
CHANGED
data/lib/countries.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
class Country
|
2
2
|
Data = YAML.load_file(File.join(File.dirname(__FILE__), 'data', 'countries.yaml')) || {}
|
3
|
-
Names = Data.map {|code,data| data['name']}
|
3
|
+
Names = Data.map {|code,data| data['name']}.sort
|
4
4
|
|
5
5
|
attr_reader :number, :alpha2, :alpha3, :name, :names, :latitude, :longitude, :region, :subregion, :country_code, :national_destination_code_lengths, :national_number_lengths, :international_prefix, :national_prefix
|
6
6
|
|