iso_countries_plus 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: faa2f7433799a275c18184dada0b69f60c0f1005
4
- data.tar.gz: 719433ae967dd712b5dd0c0b3c3080151195702c
3
+ metadata.gz: a7d5d8be9c97da572630eb3e7e1790b43874f808
4
+ data.tar.gz: 06abff4d590fa59b68f5db4dce21f9f205d0fb32
5
5
  SHA512:
6
- metadata.gz: 075e0e25459fc5435e93e3c8bd600b966fa3790ad39f060807c80d65b3385605181d50c9cd1d8722970c917171d5c47a06d8d4acdda482f918f79f7b595164d7
7
- data.tar.gz: 3523ee421716da122c21cbf8ebb4c24b6e494cf4f7040087efb77fdd5a325f1211820c911125571a9a9a72399b3b82a91e05ac8455348fdf6ea6971aad7afb69
6
+ metadata.gz: 539354866df0d19497b9973210cf840ad273c7d27e4155ed3c2dba0fceebcd5f214df081b95d8a0eb993dab881086662e43f7144c8d8b100075c8678d0b18c56
7
+ data.tar.gz: 9584666c1c0514155ea6f74ad5d455cb87aa1a0efa0d308d354948f8714fc656a2b59d238b890c24118b5ce488adb4bec41ceb5dbd16de272e489eeef4f71a3d
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/Gemfile CHANGED
@@ -1,4 +1,14 @@
1
1
  source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
2
5
 
3
- # Specify your gem's dependencies in iso_countries_plus.gemspec
4
- gemspec
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+ group :development do
9
+ gem "shoulda", ">= 0"
10
+ gem "rdoc", "~> 3.12"
11
+ gem "bundler", "~> 1.0"
12
+ gem "jeweler", "~> 2.0.1"
13
+ gem "simplecov", ">= 0"
14
+ end
@@ -0,0 +1,83 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ activesupport (4.2.4)
5
+ i18n (~> 0.7)
6
+ json (~> 1.7, >= 1.7.7)
7
+ minitest (~> 5.1)
8
+ thread_safe (~> 0.3, >= 0.3.4)
9
+ tzinfo (~> 1.1)
10
+ addressable (2.3.8)
11
+ builder (3.2.2)
12
+ descendants_tracker (0.0.4)
13
+ thread_safe (~> 0.3, >= 0.3.1)
14
+ docile (1.1.5)
15
+ faraday (0.9.1)
16
+ multipart-post (>= 1.2, < 3)
17
+ git (1.2.9.1)
18
+ github_api (0.12.4)
19
+ addressable (~> 2.3)
20
+ descendants_tracker (~> 0.0.4)
21
+ faraday (~> 0.8, < 0.10)
22
+ hashie (>= 3.4)
23
+ multi_json (>= 1.7.5, < 2.0)
24
+ nokogiri (~> 1.6.6)
25
+ oauth2
26
+ hashie (3.4.2)
27
+ highline (1.7.7)
28
+ i18n (0.7.0)
29
+ jeweler (2.0.1)
30
+ builder
31
+ bundler (>= 1.0)
32
+ git (>= 1.2.5)
33
+ github_api
34
+ highline (>= 1.6.15)
35
+ nokogiri (>= 1.5.10)
36
+ rake
37
+ rdoc
38
+ json (1.8.3)
39
+ jwt (1.5.1)
40
+ mini_portile (0.6.2)
41
+ minitest (5.8.1)
42
+ multi_json (1.11.2)
43
+ multi_xml (0.5.5)
44
+ multipart-post (2.0.0)
45
+ nokogiri (1.6.6.2)
46
+ mini_portile (~> 0.6.0)
47
+ oauth2 (1.0.0)
48
+ faraday (>= 0.8, < 0.10)
49
+ jwt (~> 1.0)
50
+ multi_json (~> 1.3)
51
+ multi_xml (~> 0.5)
52
+ rack (~> 1.2)
53
+ rack (1.6.4)
54
+ rake (10.4.2)
55
+ rdoc (3.12.2)
56
+ json (~> 1.4)
57
+ shoulda (3.5.0)
58
+ shoulda-context (~> 1.0, >= 1.0.1)
59
+ shoulda-matchers (>= 1.4.1, < 3.0)
60
+ shoulda-context (1.2.1)
61
+ shoulda-matchers (2.8.0)
62
+ activesupport (>= 3.0.0)
63
+ simplecov (0.10.0)
64
+ docile (~> 1.1.0)
65
+ json (~> 1.8)
66
+ simplecov-html (~> 0.10.0)
67
+ simplecov-html (0.10.0)
68
+ thread_safe (0.3.5)
69
+ tzinfo (1.2.2)
70
+ thread_safe (~> 0.1)
71
+
72
+ PLATFORMS
73
+ ruby
74
+
75
+ DEPENDENCIES
76
+ bundler (~> 1.0)
77
+ jeweler (~> 2.0.1)
78
+ rdoc (~> 3.12)
79
+ shoulda
80
+ simplecov
81
+
82
+ BUNDLED WITH
83
+ 1.10.6
data/Rakefile CHANGED
@@ -1,2 +1,74 @@
1
+ # # require 'bundler'
2
+ # # Bundler::GemHelper.install_tasks
3
+
4
+ # require 'jeweler'
5
+ # Jeweler::Taskgemspec.new do |gemspec|
6
+ # gemspec.name = "iso_countries_plus"
7
+ # gemspec.version = "0.2.0"
8
+ # gemspec.platform = Gem::Platform::RUBY
9
+ # gemspec.authors = ["Mark Dickson"]
10
+ # gemspec.email = ["mark@sitesteadergemspec.com"]
11
+ # gemspec.description = %q{This gem differs from other ISO country gems in that it allows VERY flexible name lookups, so country names like 'South Korea' will work properly.}
12
+ # gemspec.summary = %q{ISO Countries, including all standard name variations, alpha2, and alpha3}
13
+ # gemspec.homepage = "https://github.com/ideaoforder/iso_countries_plus"
14
+
15
+ # gemspec.rubyforge_project = "iso_countries_plus"
16
+
17
+ # gemspec.files = `git ls-files`.split("\n")
18
+ # gemspec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ # gemspec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
+ # gemspec.require_paths = ["lib"]
21
+ # end
22
+
23
+ # encoding: utf-8
24
+
25
+ require 'rubygems'
1
26
  require 'bundler'
2
- Bundler::GemHelper.install_tasks
27
+ begin
28
+ Bundler.setup(:default, :development)
29
+ rescue Bundler::BundlerError => e
30
+ $stderr.puts e.message
31
+ $stderr.puts "Run `bundle install` to install missing gems"
32
+ exit e.status_code
33
+ end
34
+ require 'rake'
35
+
36
+ require 'jeweler'
37
+ Jeweler::Tasks.new do |gem|
38
+ # gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
39
+ gem.name = "iso_countries_plus"
40
+ gem.version = "0.2.0"
41
+ gem.homepage = "http://github.com/ideaoforder/iso_countries_plus"
42
+ gem.license = "MIT"
43
+ gem.description = %q{This gem differs from other ISO country gems in that it allows VERY flexible name lookups, so country names like 'South Korea' will work properly.}
44
+ gem.summary = %q{ISO Countries, including all standard name variations, alpha2, and alpha3}
45
+ gem.email = "mark@sitesteaders.com"
46
+ gem.authors = ["Mark Dickson"]
47
+ # dependencies defined in Gemfile
48
+ end
49
+ Jeweler::RubygemsDotOrgTasks.new
50
+
51
+ require 'rake/testtask'
52
+ Rake::TestTask.new(:test) do |test|
53
+ test.libs << 'lib' << 'test'
54
+ test.pattern = 'test/**/test_*.rb'
55
+ test.verbose = true
56
+ end
57
+
58
+ desc "Code coverage detail"
59
+ task :simplecov do
60
+ ENV['COVERAGE'] = "true"
61
+ Rake::Task['test'].execute
62
+ end
63
+
64
+ task :default => :test
65
+
66
+ require 'rdoc/task'
67
+ Rake::RDocTask.new do |rdoc|
68
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
69
+
70
+ rdoc.rdoc_dir = 'rdoc'
71
+ rdoc.title = "iso_countries_plus #{version}"
72
+ rdoc.rdoc_files.include('README*')
73
+ rdoc.rdoc_files.include('lib/**/*.rb')
74
+ end
@@ -1,7 +1,6 @@
1
1
  require 'csv'
2
2
  require 'yaml'
3
3
 
4
- require "iso_countries_plus/version"
5
4
  require 'iso_countries_plus/init'
6
5
  require 'iso_countries_plus/iso_country'
7
6
  require 'iso_countries_plus/assign'
@@ -0,0 +1,253 @@
1
+ "iso 3166 country","continent code"
2
+ A1,--
3
+ A2,--
4
+ AD,EU
5
+ AE,AS
6
+ AF,AS
7
+ AG,NA
8
+ AI,NA
9
+ AL,EU
10
+ AM,AS
11
+ AN,NA
12
+ AO,AF
13
+ AP,AS
14
+ AQ,AN
15
+ AR,SA
16
+ AS,OC
17
+ AT,EU
18
+ AU,OC
19
+ AW,NA
20
+ AX,EU
21
+ AZ,AS
22
+ BA,EU
23
+ BB,NA
24
+ BD,AS
25
+ BE,EU
26
+ BF,AF
27
+ BG,EU
28
+ BH,AS
29
+ BI,AF
30
+ BJ,AF
31
+ BL,NA
32
+ BM,NA
33
+ BN,AS
34
+ BO,SA
35
+ BR,SA
36
+ BS,NA
37
+ BT,AS
38
+ BV,AN
39
+ BW,AF
40
+ BY,EU
41
+ BZ,NA
42
+ CA,NA
43
+ CC,AS
44
+ CD,AF
45
+ CF,AF
46
+ CG,AF
47
+ CH,EU
48
+ CI,AF
49
+ CK,OC
50
+ CL,SA
51
+ CM,AF
52
+ CN,AS
53
+ CO,SA
54
+ CR,NA
55
+ CU,NA
56
+ CV,AF
57
+ CX,AS
58
+ CY,AS
59
+ CZ,EU
60
+ DE,EU
61
+ DJ,AF
62
+ DK,EU
63
+ DM,NA
64
+ DO,NA
65
+ DZ,AF
66
+ EC,SA
67
+ EE,EU
68
+ EG,AF
69
+ EH,AF
70
+ ER,AF
71
+ ES,EU
72
+ ET,AF
73
+ EU,EU
74
+ FI,EU
75
+ FJ,OC
76
+ FK,SA
77
+ FM,OC
78
+ FO,EU
79
+ FR,EU
80
+ FX,EU
81
+ GA,AF
82
+ GB,EU
83
+ GD,NA
84
+ GE,AS
85
+ GF,SA
86
+ GG,EU
87
+ GH,AF
88
+ GI,EU
89
+ GL,NA
90
+ GM,AF
91
+ GN,AF
92
+ GP,NA
93
+ GQ,AF
94
+ GR,EU
95
+ GS,AN
96
+ GT,NA
97
+ GU,OC
98
+ GW,AF
99
+ GY,SA
100
+ HK,AS
101
+ HM,AN
102
+ HN,NA
103
+ HR,EU
104
+ HT,NA
105
+ HU,EU
106
+ ID,AS
107
+ IE,EU
108
+ IL,AS
109
+ IM,EU
110
+ IN,AS
111
+ IO,AS
112
+ IQ,AS
113
+ IR,AS
114
+ IS,EU
115
+ IT,EU
116
+ JE,EU
117
+ JM,NA
118
+ JO,AS
119
+ JP,AS
120
+ KE,AF
121
+ KG,AS
122
+ KH,AS
123
+ KI,OC
124
+ KM,AF
125
+ KN,NA
126
+ KP,AS
127
+ KR,AS
128
+ KW,AS
129
+ KY,NA
130
+ KZ,AS
131
+ LA,AS
132
+ LB,AS
133
+ LC,NA
134
+ LI,EU
135
+ LK,AS
136
+ LR,AF
137
+ LS,AF
138
+ LT,EU
139
+ LU,EU
140
+ LV,EU
141
+ LY,AF
142
+ MA,AF
143
+ MC,EU
144
+ MD,EU
145
+ ME,EU
146
+ MF,NA
147
+ MG,AF
148
+ MH,OC
149
+ MK,EU
150
+ ML,AF
151
+ MM,AS
152
+ MN,AS
153
+ MO,AS
154
+ MP,OC
155
+ MQ,NA
156
+ MR,AF
157
+ MS,NA
158
+ MT,EU
159
+ MU,AF
160
+ MV,AS
161
+ MW,AF
162
+ MX,NA
163
+ MY,AS
164
+ MZ,AF
165
+ NA,AF
166
+ NC,OC
167
+ NE,AF
168
+ NF,OC
169
+ NG,AF
170
+ NI,NA
171
+ NL,EU
172
+ NO,EU
173
+ NP,AS
174
+ NR,OC
175
+ NU,OC
176
+ NZ,OC
177
+ O1,--
178
+ OM,AS
179
+ PA,NA
180
+ PE,SA
181
+ PF,OC
182
+ PG,OC
183
+ PH,AS
184
+ PK,AS
185
+ PL,EU
186
+ PM,NA
187
+ PN,OC
188
+ PR,NA
189
+ PS,AS
190
+ PT,EU
191
+ PW,OC
192
+ PY,SA
193
+ QA,AS
194
+ RE,AF
195
+ RO,EU
196
+ RS,EU
197
+ RU,EU
198
+ RW,AF
199
+ SA,AS
200
+ SB,OC
201
+ SC,AF
202
+ SD,AF
203
+ SE,EU
204
+ SG,AS
205
+ SH,AF
206
+ SI,EU
207
+ SJ,EU
208
+ SK,EU
209
+ SL,AF
210
+ SM,EU
211
+ SN,AF
212
+ SO,AF
213
+ SR,SA
214
+ ST,AF
215
+ SV,NA
216
+ SY,AS
217
+ SZ,AF
218
+ TC,NA
219
+ TD,AF
220
+ TF,AN
221
+ TG,AF
222
+ TH,AS
223
+ TJ,AS
224
+ TK,OC
225
+ TL,AS
226
+ TM,AS
227
+ TN,AF
228
+ TO,OC
229
+ TR,EU
230
+ TT,NA
231
+ TV,OC
232
+ TW,AS
233
+ TZ,AF
234
+ UA,EU
235
+ UG,AF
236
+ UM,OC
237
+ US,NA
238
+ UY,SA
239
+ UZ,AS
240
+ VA,EU
241
+ VC,NA
242
+ VE,SA
243
+ VG,NA
244
+ VI,NA
245
+ VN,AS
246
+ VU,OC
247
+ WF,OC
248
+ WS,OC
249
+ YE,AS
250
+ YT,AF
251
+ ZA,AF
252
+ ZM,AF
253
+ ZW,AF
@@ -3,6 +3,15 @@ ADDITIONS_FILE = File.expand_path(File.join(File.dirname(__FILE__), 'additions.y
3
3
  COUNTRY_HASH = {:name => {}, :alpha2 => {}, :alpha3 => {}, :guess => []}
4
4
  COUNTRIES = {:name => {}, :alpha2 => {}, :alpha3 => {}, :guess => []}
5
5
 
6
+ # SETUP Continents
7
+ CONTINENTS_FILE = File.expand_path(File.join(File.dirname(__FILE__), 'country_continents.csv'))
8
+ CONTINENTS_HASH = {}
9
+ CSV.foreach(CONTINENTS_FILE, :col_sep => ",") do |row|
10
+ if row[1] != '--'
11
+ CONTINENTS_HASH[row[0]] = row[1]
12
+ end
13
+ end
14
+
6
15
  # We download the file from here:
7
16
  # http://opengeocode.org/download/countrynames.txt
8
17
 
@@ -13,36 +22,38 @@ CSV.foreach(ISO_FILE, :col_sep => ";") do |row|
13
22
  alpha3 = row[1].strip
14
23
  official_name = row[3].strip
15
24
 
25
+ country_data = {:name => official_name, :alpha3 => alpha3, :alpha2 => alpha2, :continent => CONTINENTS_HASH[alpha2]}
26
+
16
27
  # We set the 2- and 3-digit keys to use the first (official) name
17
- COUNTRY_HASH[:alpha2][alpha2] = {:name => official_name, :alpha3 => alpha3, :alpha2 => alpha2}
18
- COUNTRY_HASH[:alpha3][alpha3] = {:name => official_name, :alpha3 => alpha3, :alpha2 => alpha2}
28
+ COUNTRY_HASH[:alpha2][alpha2] = country_data
29
+ COUNTRY_HASH[:alpha3][alpha3] = country_data
19
30
 
20
31
  # Then we create an entry for each additional country name
21
32
  for i in 3...row.length
22
33
  unless (row[i].nil? or row[i] == '')
23
34
  # NOTE: We still set the name to our official name
24
35
  cname = row[i].strip.force_encoding("UTF-8")
25
- COUNTRY_HASH[:name][cname] = {:name => official_name, :alpha3 => alpha3, :alpha2 => alpha2}
26
- COUNTRY_HASH[:name][cname.downcase] = {:name => official_name, :alpha3 => alpha3, :alpha2 => alpha2}
36
+ COUNTRY_HASH[:name][cname] = country_data
37
+ COUNTRY_HASH[:name][cname.downcase] = country_data
27
38
 
28
39
  # Check for "and", and grab both country names, to be more exhaustive
29
40
  if cname =~ /\sand\s/
30
41
  narray = cname.split(/\s*,\s*and\s+|\s*,\s*|\s+and\s+/)
31
42
  for name in narray
32
- COUNTRY_HASH[:name][name] = {:name => official_name, :alpha3 => alpha3, :alpha2 => alpha2}
33
- COUNTRY_HASH[:name][name.downcase] = {:name => official_name, :alpha3 => alpha3, :alpha2 => alpha2}
43
+ COUNTRY_HASH[:name][name] = country_data
44
+ COUNTRY_HASH[:name][name.downcase] = country_data
34
45
  COUNTRY_HASH[:guess] << name
35
46
 
36
47
  if narray.last[/islands?/i]
37
48
  iname = name.gsub(/islands?/i, '').strip + ' Island'
38
- COUNTRY_HASH[:name][iname] = {:name => official_name, :alpha3 => alpha3, :alpha2 => alpha2}
39
- COUNTRY_HASH[:name][iname.downcase] = {:name => official_name, :alpha3 => alpha3, :alpha2 => alpha2}
49
+ COUNTRY_HASH[:name][iname] = country_data
50
+ COUNTRY_HASH[:name][iname.downcase] = country_data
40
51
  COUNTRY_HASH[:guess] << iname
41
52
 
42
53
  # grab the plural too
43
54
  iname += 's'
44
- COUNTRY_HASH[:name][iname] = {:name => official_name, :alpha3 => alpha3, :alpha2 => alpha2}
45
- COUNTRY_HASH[:name][iname.downcase] = {:name => official_name, :alpha3 => alpha3, :alpha2 => alpha2}
55
+ COUNTRY_HASH[:name][iname] = country_data
56
+ COUNTRY_HASH[:name][iname.downcase] = country_data
46
57
  COUNTRY_HASH[:guess] << iname
47
58
  end
48
59
  end
@@ -1,6 +1,6 @@
1
1
  class IsoCountry
2
2
 
3
- attr_accessor :name, :alpha2, :alpha3
3
+ attr_accessor :name, :alpha2, :alpha3, :continent
4
4
 
5
5
  def initialize(data={})
6
6
  if data and !data.nil?
@@ -0,0 +1,34 @@
1
+ require 'simplecov'
2
+
3
+ module SimpleCov::Configuration
4
+ def clean_filters
5
+ @filters = []
6
+ end
7
+ end
8
+
9
+ SimpleCov.configure do
10
+ clean_filters
11
+ load_adapter 'test_frameworks'
12
+ end
13
+
14
+ ENV["COVERAGE"] && SimpleCov.start do
15
+ add_filter "/.rvm/"
16
+ end
17
+ require 'rubygems'
18
+ require 'bundler'
19
+ begin
20
+ Bundler.setup(:default, :development)
21
+ rescue Bundler::BundlerError => e
22
+ $stderr.puts e.message
23
+ $stderr.puts "Run `bundle install` to install missing gems"
24
+ exit e.status_code
25
+ end
26
+ require 'test/unit'
27
+ require 'shoulda'
28
+
29
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
30
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
31
+ require 'iso_countries_plus'
32
+
33
+ class Test::Unit::TestCase
34
+ end
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ class TestIsoCountriesPlus < Test::Unit::TestCase
4
+ should "probably rename this file and start testing for real" do
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end
metadata CHANGED
@@ -1,39 +1,113 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iso_countries_plus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Dickson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-13 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2015-10-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: shoulda
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rdoc
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.12'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.12'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: jeweler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 2.0.1
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 2.0.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
13
83
  description: This gem differs from other ISO country gems in that it allows VERY flexible
14
84
  name lookups, so country names like 'South Korea' will work properly.
15
- email:
16
- - mark@sitesteaders.com
85
+ email: mark@sitesteaders.com
17
86
  executables: []
18
87
  extensions: []
19
- extra_rdoc_files: []
88
+ extra_rdoc_files:
89
+ - LICENSE.txt
90
+ - README.md
20
91
  files:
21
- - .gitignore
92
+ - ".document"
22
93
  - Gemfile
94
+ - Gemfile.lock
23
95
  - LICENSE.txt
24
96
  - README.md
25
97
  - Rakefile
26
- - iso_countries_plus.gemspec
27
98
  - lib/iso_countries_plus.rb
28
99
  - lib/iso_countries_plus/additions.yml
29
100
  - lib/iso_countries_plus/assign.rb
30
101
  - lib/iso_countries_plus/country.rb
102
+ - lib/iso_countries_plus/country_continents.csv
31
103
  - lib/iso_countries_plus/countrynames.txt
32
104
  - lib/iso_countries_plus/init.rb
33
105
  - lib/iso_countries_plus/iso_country.rb
34
- - lib/iso_countries_plus/version.rb
35
- homepage: https://github.com/ideaoforder/iso_countries_plus
36
- licenses: []
106
+ - test/helper.rb
107
+ - test/test_iso_countries_plus.rb
108
+ homepage: http://github.com/ideaoforder/iso_countries_plus
109
+ licenses:
110
+ - MIT
37
111
  metadata: {}
38
112
  post_install_message:
39
113
  rdoc_options: []
@@ -41,17 +115,17 @@ require_paths:
41
115
  - lib
42
116
  required_ruby_version: !ruby/object:Gem::Requirement
43
117
  requirements:
44
- - - ! '>='
118
+ - - ">="
45
119
  - !ruby/object:Gem::Version
46
120
  version: '0'
47
121
  required_rubygems_version: !ruby/object:Gem::Requirement
48
122
  requirements:
49
- - - ! '>='
123
+ - - ">="
50
124
  - !ruby/object:Gem::Version
51
125
  version: '0'
52
126
  requirements: []
53
- rubyforge_project: iso_countries_plus
54
- rubygems_version: 2.1.11
127
+ rubyforge_project:
128
+ rubygems_version: 2.4.8
55
129
  signing_key:
56
130
  specification_version: 4
57
131
  summary: ISO Countries, including all standard name variations, alpha2, and alpha3
data/.gitignore DELETED
@@ -1,4 +0,0 @@
1
- pkg/*
2
- *.gem
3
- .bundle
4
- .DS_Store
@@ -1,21 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "iso_countries_plus/version"
4
-
5
- Gem::Specification.new do |s|
6
- s.name = "iso_countries_plus"
7
- s.version = IsoCountriesPlus::VERSION
8
- s.platform = Gem::Platform::RUBY
9
- s.authors = ["Mark Dickson"]
10
- s.email = ["mark@sitesteaders.com"]
11
- s.description = %q{This gem differs from other ISO country gems in that it allows VERY flexible name lookups, so country names like 'South Korea' will work properly.}
12
- s.summary = %q{ISO Countries, including all standard name variations, alpha2, and alpha3}
13
- s.homepage = "https://github.com/ideaoforder/iso_countries_plus"
14
-
15
- s.rubyforge_project = "iso_countries_plus"
16
-
17
- s.files = `git ls-files`.split("\n")
18
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
- s.require_paths = ["lib"]
21
- end
@@ -1,3 +0,0 @@
1
- module IsoCountriesPlus
2
- VERSION = "0.1.0"
3
- end