normalize_country 0.1.1 β†’ 0.2.0

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.
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  require "minitest/autorun"
2
4
  require "normalize_country"
3
5
 
@@ -21,7 +23,8 @@ describe NormalizeCountry do
21
23
  %w[America U.S. U.S.A.].each { |v| NormalizeCountry.convert(v).must_equal("United States") }
22
24
  end
23
25
 
24
- {:alpha2 => "US", :alpha3 => "USA", :ioc => "USA", :iso_name => "United States", :numeric => "840", :official => "United States of America", :fifa => "USA"}.each do |spec, expect|
26
+ {:alpha2 => "US", :alpha3 => "USA", :ioc => "USA", :iso_name => "United States",
27
+ :numeric => "840", :official => "United States of America", :fifa => "USA", :emoji => "πŸ‡ΊπŸ‡Έ"}.each do |spec, expect|
25
28
  it "normalizes to #{spec}" do
26
29
  NormalizeCountry.convert("America", :to => spec).must_equal(expect)
27
30
  end
@@ -107,7 +110,7 @@ describe NormalizeCountry do
107
110
 
108
111
  describe ".formats" do
109
112
  it "returns a list of supported formats" do
110
- expected = [:alpha2, :alpha3, :fifa, :ioc, :iso_name, :numeric, :official, :short, :simple]
113
+ expected = [:alpha2, :alpha3, :fifa, :ioc, :iso_name, :numeric, :official, :short, :simple, :emoji]
111
114
  formats = NormalizeCountry.formats
112
115
 
113
116
  # Ugh, support this in 1.8.7 for a least one version
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: normalize_country
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Skye Shaw
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-21 00:00:00.000000000 Z
11
+ date: 2016-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -40,7 +40,7 @@ dependencies:
40
40
  version: '0'
41
41
  description: |2
42
42
  Converts country names and codes from standardized and non-standardized names and abbreviations to one of the following:
43
- ISO 3166-1 (code/name/number), FIFA, IOC, a country's official name or shortened name.
43
+ ISO 3166-1 (code/name/number), FIFA, IOC, a country's official name or shortened name, and Emoji.
44
44
 
45
45
  Includes a small script to convert names/codes in a DB, XML or CSV file.
46
46
  email: skye.shaw@gmail.com
@@ -50,11 +50,11 @@ extensions: []
50
50
  extra_rdoc_files:
51
51
  - README.rdoc
52
52
  files:
53
+ - README.rdoc
54
+ - bin/normalize_country
53
55
  - lib/normalize_country.rb
54
56
  - lib/normalize_country/countries/en.yml
55
57
  - spec/normalize_country_spec.rb
56
- - README.rdoc
57
- - bin/normalize_country
58
58
  homepage: http://github.com/sshaw/normalize_country
59
59
  licenses:
60
60
  - MIT
@@ -75,10 +75,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.1.11
78
+ rubygems_version: 2.5.1
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Convert country names and codes to a standard
82
82
  test_files:
83
83
  - spec/normalize_country_spec.rb
84
- has_rdoc: