normalize_country 0.2.3 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -110,15 +110,9 @@ describe NormalizeCountry do
110
110
 
111
111
  describe ".formats" do
112
112
  it "returns a list of supported formats" do
113
- expected = [:alpha2, :alpha3, :fifa, :ioc, :iso_name, :numeric, :official, :short, :simple, :emoji]
113
+ expected = [:alpha2, :alpha3, :fifa, :ioc, :iso_name, :numeric, :official, :short, :shortcode, :simple, :emoji]
114
114
  formats = NormalizeCountry.formats
115
-
116
- # Ugh, support this in 1.8.7 for a least one version
117
- if Symbol < Comparable
118
- formats.sort.must_equal(expected.sort)
119
- else
120
- formats.sort_by { |f| f.to_s }.must_equal(expected.sort_by { |f| f.to_s })
121
- end
115
+ formats.sort.must_equal(expected.sort)
122
116
  end
123
117
  end
124
118
 
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.2.3
4
+ version: 0.3.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: 2020-01-18 00:00:00.000000000 Z
11
+ date: 2020-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.7.6
78
+ rubygems_version: 2.6.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Convert country names and codes to a standard