iso_country_codes 0.2.2 → 0.2.3
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.
- data/Gemfile +8 -0
- data/Gemfile.lock +22 -0
- data/History.txt +4 -0
- data/README.rdoc +1 -7
- data/Rakefile +0 -27
- data/VERSION.yml +3 -2
- data/lib/iso_country_codes/iso_3166_1.rb +38 -20
- data/lib/iso_country_codes/iso_4217.rb +10 -1
- metadata +55 -14
- data/.gitignore +0 -1
- data/iso_country_codes.gemspec +0 -52
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
git (1.2.5)
|
5
|
+
jeweler (1.6.4)
|
6
|
+
bundler (~> 1.0)
|
7
|
+
git (>= 1.2.5)
|
8
|
+
rake
|
9
|
+
json (1.6.1)
|
10
|
+
rake (0.9.2.2)
|
11
|
+
rcov (0.9.11)
|
12
|
+
rdoc (3.11)
|
13
|
+
json (~> 1.4)
|
14
|
+
|
15
|
+
PLATFORMS
|
16
|
+
ruby
|
17
|
+
|
18
|
+
DEPENDENCIES
|
19
|
+
jeweler
|
20
|
+
rake
|
21
|
+
rcov
|
22
|
+
rdoc
|
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -33,13 +33,7 @@ Provides ISO codes, names and currencies for countries.
|
|
33
33
|
|
34
34
|
== INSTALL:
|
35
35
|
|
36
|
-
|
37
|
-
|
38
|
-
git clone git://github.com/alexrabarts/iso_country_codes.git
|
39
|
-
|
40
|
-
* Via gem:
|
41
|
-
|
42
|
-
gem install alexrabarts-iso_country_codes -s http://gems.github.com
|
36
|
+
gem install iso_country_codes
|
43
37
|
|
44
38
|
== LICENSE:
|
45
39
|
|
data/Rakefile
CHANGED
@@ -17,15 +17,6 @@ rescue LoadError
|
|
17
17
|
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
18
18
|
end
|
19
19
|
|
20
|
-
require 'rake/rdoctask'
|
21
|
-
Rake::RDocTask.new do |rdoc|
|
22
|
-
rdoc.rdoc_dir = 'rdoc'
|
23
|
-
rdoc.title = 'iso_country_codes'
|
24
|
-
rdoc.options << '--line-numbers' << '--inline-source'
|
25
|
-
rdoc.rdoc_files.include('README*')
|
26
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
27
|
-
end
|
28
|
-
|
29
20
|
require 'rake/testtask'
|
30
21
|
Rake::TestTask.new(:test) do |t|
|
31
22
|
t.libs << 'lib' << 'test'
|
@@ -33,22 +24,4 @@ Rake::TestTask.new(:test) do |t|
|
|
33
24
|
t.verbose = false
|
34
25
|
end
|
35
26
|
|
36
|
-
begin
|
37
|
-
require 'rcov/rcovtask'
|
38
|
-
Rcov::RcovTask.new do |t|
|
39
|
-
t.libs << 'test'
|
40
|
-
t.test_files = FileList['test/**/*_test.rb']
|
41
|
-
t.verbose = true
|
42
|
-
end
|
43
|
-
rescue LoadError
|
44
|
-
puts "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
45
|
-
end
|
46
|
-
|
47
|
-
begin
|
48
|
-
require 'cucumber/rake/task'
|
49
|
-
Cucumber::Rake::Task.new(:features)
|
50
|
-
rescue LoadError
|
51
|
-
puts "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
|
52
|
-
end
|
53
|
-
|
54
27
|
task :default => :test
|
data/VERSION.yml
CHANGED
@@ -92,18 +92,18 @@ class IsoCountryCodes
|
|
92
92
|
self.alpha2 = %q{DE}
|
93
93
|
self.alpha3 = %q{DEU}
|
94
94
|
end
|
95
|
-
class MLT < Code #:nodoc:
|
96
|
-
self.numeric = %q{470}
|
97
|
-
self.name = %q{Malta}
|
98
|
-
self.alpha2 = %q{MT}
|
99
|
-
self.alpha3 = %q{MLT}
|
100
|
-
end
|
101
95
|
class TGO < Code #:nodoc:
|
102
96
|
self.numeric = %q{768}
|
103
97
|
self.name = %q{Togo}
|
104
98
|
self.alpha2 = %q{TG}
|
105
99
|
self.alpha3 = %q{TGO}
|
106
100
|
end
|
101
|
+
class MLT < Code #:nodoc:
|
102
|
+
self.numeric = %q{470}
|
103
|
+
self.name = %q{Malta}
|
104
|
+
self.alpha2 = %q{MT}
|
105
|
+
self.alpha3 = %q{MLT}
|
106
|
+
end
|
107
107
|
class SRB < Code #:nodoc:
|
108
108
|
self.numeric = %q{688}
|
109
109
|
self.name = %q{Serbia}
|
@@ -218,12 +218,6 @@ class IsoCountryCodes
|
|
218
218
|
self.alpha2 = %q{MK}
|
219
219
|
self.alpha3 = %q{MKD}
|
220
220
|
end
|
221
|
-
class ANT < Code #:nodoc:
|
222
|
-
self.numeric = %q{530}
|
223
|
-
self.name = %q{Netherlands Antilles}
|
224
|
-
self.alpha2 = %q{AN}
|
225
|
-
self.alpha3 = %q{ANT}
|
226
|
-
end
|
227
221
|
class AZE < Code #:nodoc:
|
228
222
|
self.numeric = %q{031}
|
229
223
|
self.name = %q{Azerbaijan}
|
@@ -500,6 +494,12 @@ class IsoCountryCodes
|
|
500
494
|
self.alpha2 = %q{MF}
|
501
495
|
self.alpha3 = %q{MAF}
|
502
496
|
end
|
497
|
+
class BES < Code #:nodoc:
|
498
|
+
self.numeric = %q{535}
|
499
|
+
self.name = %q{Bonaire, Sint Eustatius and Saba}
|
500
|
+
self.alpha2 = %q{BQ}
|
501
|
+
self.alpha3 = %q{BES}
|
502
|
+
end
|
503
503
|
class GTM < Code #:nodoc:
|
504
504
|
self.numeric = %q{320}
|
505
505
|
self.name = %q{Guatemala}
|
@@ -560,6 +560,12 @@ class IsoCountryCodes
|
|
560
560
|
self.alpha2 = %q{MX}
|
561
561
|
self.alpha3 = %q{MEX}
|
562
562
|
end
|
563
|
+
class SXM < Code #:nodoc:
|
564
|
+
self.numeric = %q{534}
|
565
|
+
self.name = %q{Sint Maarten (Dutch part)}
|
566
|
+
self.alpha2 = %q{SX}
|
567
|
+
self.alpha3 = %q{SXM}
|
568
|
+
end
|
563
569
|
class WSM < Code #:nodoc:
|
564
570
|
self.numeric = %q{882}
|
565
571
|
self.name = %q{Samoa}
|
@@ -622,7 +628,7 @@ class IsoCountryCodes
|
|
622
628
|
end
|
623
629
|
class SHN < Code #:nodoc:
|
624
630
|
self.numeric = %q{654}
|
625
|
-
self.name = %q{Saint Helena}
|
631
|
+
self.name = %q{Saint Helena, Ascension and Tristan da Cunha}
|
626
632
|
self.alpha2 = %q{SH}
|
627
633
|
self.alpha3 = %q{SHN}
|
628
634
|
end
|
@@ -872,6 +878,12 @@ class IsoCountryCodes
|
|
872
878
|
self.alpha2 = %q{BT}
|
873
879
|
self.alpha3 = %q{BTN}
|
874
880
|
end
|
881
|
+
class TON < Code #:nodoc:
|
882
|
+
self.numeric = %q{776}
|
883
|
+
self.name = %q{Tonga}
|
884
|
+
self.alpha2 = %q{TO}
|
885
|
+
self.alpha3 = %q{TON}
|
886
|
+
end
|
875
887
|
class THA < Code #:nodoc:
|
876
888
|
self.numeric = %q{764}
|
877
889
|
self.name = %q{Thailand}
|
@@ -884,12 +896,6 @@ class IsoCountryCodes
|
|
884
896
|
self.alpha2 = %q{SE}
|
885
897
|
self.alpha3 = %q{SWE}
|
886
898
|
end
|
887
|
-
class TON < Code #:nodoc:
|
888
|
-
self.numeric = %q{776}
|
889
|
-
self.name = %q{Tonga}
|
890
|
-
self.alpha2 = %q{TO}
|
891
|
-
self.alpha3 = %q{TON}
|
892
|
-
end
|
893
899
|
class VNM < Code #:nodoc:
|
894
900
|
self.numeric = %q{704}
|
895
901
|
self.name = %q{Viet Nam}
|
@@ -957,7 +963,7 @@ class IsoCountryCodes
|
|
957
963
|
self.alpha3 = %q{CHL}
|
958
964
|
end
|
959
965
|
class SDN < Code #:nodoc:
|
960
|
-
self.numeric = %q{
|
966
|
+
self.numeric = %q{729}
|
961
967
|
self.name = %q{Sudan}
|
962
968
|
self.alpha2 = %q{SD}
|
963
969
|
self.alpha3 = %q{SDN}
|
@@ -1052,6 +1058,12 @@ class IsoCountryCodes
|
|
1052
1058
|
self.alpha2 = %q{IQ}
|
1053
1059
|
self.alpha3 = %q{IRQ}
|
1054
1060
|
end
|
1061
|
+
class CUW < Code #:nodoc:
|
1062
|
+
self.numeric = %q{531}
|
1063
|
+
self.name = %q{Curaçao}
|
1064
|
+
self.alpha2 = %q{CW}
|
1065
|
+
self.alpha3 = %q{CUW}
|
1066
|
+
end
|
1055
1067
|
class BFA < Code #:nodoc:
|
1056
1068
|
self.numeric = %q{854}
|
1057
1069
|
self.name = %q{Burkina Faso}
|
@@ -1166,6 +1178,12 @@ class IsoCountryCodes
|
|
1166
1178
|
self.alpha2 = %q{TM}
|
1167
1179
|
self.alpha3 = %q{TKM}
|
1168
1180
|
end
|
1181
|
+
class SSD < Code #:nodoc:
|
1182
|
+
self.numeric = %q{728}
|
1183
|
+
self.name = %q{South Sudan}
|
1184
|
+
self.alpha2 = %q{SS}
|
1185
|
+
self.alpha3 = %q{SSD}
|
1186
|
+
end
|
1169
1187
|
class GRD < Code #:nodoc:
|
1170
1188
|
self.numeric = %q{308}
|
1171
1189
|
self.name = %q{Grenada}
|
@@ -108,9 +108,18 @@ class IsoCountryCodes
|
|
108
108
|
class MKD < Code #:nodoc:
|
109
109
|
self.main_currency = 'MKD'
|
110
110
|
end
|
111
|
-
class
|
111
|
+
class CUW < Code #:nodoc:
|
112
112
|
self.main_currency = 'ANG'
|
113
113
|
end
|
114
|
+
class SXM < Code #:nodoc:
|
115
|
+
self.main_currency = 'ANG'
|
116
|
+
end
|
117
|
+
class SSD < Code #:nodoc:
|
118
|
+
self.main_currency = 'SSP'
|
119
|
+
end
|
120
|
+
class BES < Code #:nodoc:
|
121
|
+
self.main_currency = 'USD'
|
122
|
+
end
|
114
123
|
class AZE < Code #:nodoc:
|
115
124
|
self.main_currency = 'AZN'
|
116
125
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iso_country_codes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 17
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- alex
|
@@ -15,10 +15,51 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-10-27 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
|
-
dependencies:
|
21
|
-
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: rake
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: rdoc
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
version: "0"
|
47
|
+
type: :runtime
|
48
|
+
version_requirements: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: jeweler
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
version: "0"
|
61
|
+
type: :development
|
62
|
+
version_requirements: *id003
|
22
63
|
description: ISO country code and currency library
|
23
64
|
email: alexrabarts@gmail.com
|
24
65
|
executables: []
|
@@ -28,13 +69,13 @@ extensions: []
|
|
28
69
|
extra_rdoc_files:
|
29
70
|
- README.rdoc
|
30
71
|
files:
|
31
|
-
-
|
72
|
+
- Gemfile
|
73
|
+
- Gemfile.lock
|
32
74
|
- History.txt
|
33
75
|
- Manifest.txt
|
34
76
|
- README.rdoc
|
35
77
|
- Rakefile
|
36
78
|
- VERSION.yml
|
37
|
-
- iso_country_codes.gemspec
|
38
79
|
- lib/iso_country_codes.rb
|
39
80
|
- lib/iso_country_codes/code.rb
|
40
81
|
- lib/iso_country_codes/iso_3166_1.rb
|
@@ -50,8 +91,8 @@ homepage: http://github.com/alexrabarts/iso_country_codes
|
|
50
91
|
licenses: []
|
51
92
|
|
52
93
|
post_install_message:
|
53
|
-
rdoc_options:
|
54
|
-
|
94
|
+
rdoc_options: []
|
95
|
+
|
55
96
|
require_paths:
|
56
97
|
- lib
|
57
98
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -75,9 +116,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
116
|
requirements: []
|
76
117
|
|
77
118
|
rubyforge_project:
|
78
|
-
rubygems_version: 1.
|
119
|
+
rubygems_version: 1.4.2
|
79
120
|
signing_key:
|
80
121
|
specification_version: 3
|
81
122
|
summary: Provides ISO 3166-1 country codes/names and ISO 4217 currencies.
|
82
|
-
test_files:
|
83
|
-
|
123
|
+
test_files: []
|
124
|
+
|
data/.gitignore
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
pkg
|
data/iso_country_codes.gemspec
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = %q{iso_country_codes}
|
5
|
-
s.version = "0.2.2"
|
6
|
-
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = ["alex"]
|
9
|
-
s.date = %q{2009-08-07}
|
10
|
-
s.description = %q{ISO country code and currency library}
|
11
|
-
s.email = %q{alexrabarts@gmail.com}
|
12
|
-
s.extra_rdoc_files = [
|
13
|
-
"README.rdoc"
|
14
|
-
]
|
15
|
-
s.files = [
|
16
|
-
".gitignore",
|
17
|
-
"History.txt",
|
18
|
-
"Manifest.txt",
|
19
|
-
"README.rdoc",
|
20
|
-
"Rakefile",
|
21
|
-
"VERSION.yml",
|
22
|
-
"iso_country_codes.gemspec",
|
23
|
-
"lib/iso_country_codes.rb",
|
24
|
-
"lib/iso_country_codes/code.rb",
|
25
|
-
"lib/iso_country_codes/iso_3166_1.rb",
|
26
|
-
"lib/iso_country_codes/iso_4217.rb",
|
27
|
-
"lib/iso_country_codes/iso_country_codes.rb",
|
28
|
-
"rakelib/cultivate.rake",
|
29
|
-
"rakelib/iso_3166_1.rake",
|
30
|
-
"rakelib/iso_3166_1.rb",
|
31
|
-
"rakelib/iso_3166_1.rb.erb",
|
32
|
-
"test/iso_country_codes_test.rb"
|
33
|
-
]
|
34
|
-
s.homepage = %q{http://github.com/alexrabarts/iso_country_codes}
|
35
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
36
|
-
s.require_paths = ["lib"]
|
37
|
-
s.rubygems_version = %q{1.3.4}
|
38
|
-
s.summary = %q{Provides ISO 3166-1 country codes/names and ISO 4217 currencies.}
|
39
|
-
s.test_files = [
|
40
|
-
"test/iso_country_codes_test.rb"
|
41
|
-
]
|
42
|
-
|
43
|
-
if s.respond_to? :specification_version then
|
44
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
45
|
-
s.specification_version = 3
|
46
|
-
|
47
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
48
|
-
else
|
49
|
-
end
|
50
|
-
else
|
51
|
-
end
|
52
|
-
end
|