iso_country_codes 0.3.0 → 0.3.1

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/.gitignore ADDED
@@ -0,0 +1 @@
1
+ pkg
data/History.txt CHANGED
@@ -1,4 +1,8 @@
1
- === 0.2.4 / 2012-03-13
1
+ === 0.3.1 / 2013-01-28
2
+
3
+ * Updated with the latest data from Wikipedia
4
+
5
+ === 0.3.0 / 2012-03-13
2
6
 
3
7
  * Added IsoCountryCodes.for_select convenience method
4
8
  * Updated with the latest country names from Wikipedia
data/VERSION.yml CHANGED
@@ -1,5 +1,4 @@
1
1
  ---
2
- :build:
3
- :minor: 3
4
- :patch: 0
2
+ :patch: 1
5
3
  :major: 0
4
+ :minor: 3
@@ -1,64 +1,57 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
2
+ # DO NOT EDIT THIS FILE
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = "iso_country_codes"
8
- s.version = "0.3.0"
7
+ s.name = %q{iso_country_codes}
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["alex"]
12
- s.date = "2012-03-13"
13
- s.description = "ISO country code and currency library"
14
- s.email = "alexrabarts@gmail.com"
12
+ s.date = %q{2013-01-28}
13
+ s.description = %q{ISO country code and currency library}
14
+ s.email = %q{alexrabarts@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "README.rdoc"
17
17
  ]
18
18
  s.files = [
19
- "Gemfile",
20
- "Gemfile.lock",
21
- "History.txt",
22
- "Manifest.txt",
23
- "README.rdoc",
24
- "Rakefile",
25
- "VERSION.yml",
26
- "iso_country_codes.gemspec",
27
- "lib/iso_country_codes.rb",
28
- "lib/iso_country_codes/code.rb",
29
- "lib/iso_country_codes/iso_3166_1.rb",
30
- "lib/iso_country_codes/iso_4217.rb",
31
- "lib/iso_country_codes/iso_country_codes.rb",
32
- "rakelib/cultivate.rake",
33
- "rakelib/iso_3166_1.rake",
34
- "rakelib/iso_3166_1.rb",
35
- "rakelib/iso_3166_1.rb.erb",
36
- "test/iso_country_codes_test.rb"
19
+ ".gitignore",
20
+ "Gemfile",
21
+ "Gemfile.lock",
22
+ "History.txt",
23
+ "Manifest.txt",
24
+ "README.rdoc",
25
+ "Rakefile",
26
+ "VERSION.yml",
27
+ "iso_country_codes.gemspec",
28
+ "lib/iso_country_codes.rb",
29
+ "lib/iso_country_codes/code.rb",
30
+ "lib/iso_country_codes/iso_3166_1.rb",
31
+ "lib/iso_country_codes/iso_4217.rb",
32
+ "lib/iso_country_codes/iso_country_codes.rb",
33
+ "rakelib/cultivate.rake",
34
+ "rakelib/iso_3166_1.rake",
35
+ "rakelib/iso_3166_1.rb",
36
+ "rakelib/iso_3166_1.rb.erb",
37
+ "test/iso_country_codes_test.rb"
37
38
  ]
38
- s.homepage = "http://github.com/alexrabarts/iso_country_codes"
39
+ s.homepage = %q{http://github.com/alexrabarts/iso_country_codes}
40
+ s.rdoc_options = ["--charset=UTF-8"]
39
41
  s.require_paths = ["lib"]
40
- s.rubygems_version = "1.8.10"
41
- s.summary = "Provides ISO 3166-1 country codes/names and ISO 4217 currencies."
42
+ s.rubygems_version = %q{1.3.7}
43
+ s.summary = %q{Provides ISO 3166-1 country codes/names and ISO 4217 currencies.}
44
+ s.test_files = [
45
+ "test/iso_country_codes_test.rb"
46
+ ]
42
47
 
43
48
  if s.respond_to? :specification_version then
49
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
44
50
  s.specification_version = 3
45
51
 
46
52
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
47
- s.add_runtime_dependency(%q<rake>, [">= 0"])
48
- s.add_runtime_dependency(%q<rdoc>, [">= 0"])
49
- s.add_development_dependency(%q<jeweler>, [">= 0"])
50
- s.add_development_dependency(%q<nokogiri>, [">= 0"])
51
53
  else
52
- s.add_dependency(%q<rake>, [">= 0"])
53
- s.add_dependency(%q<rdoc>, [">= 0"])
54
- s.add_dependency(%q<jeweler>, [">= 0"])
55
- s.add_dependency(%q<nokogiri>, [">= 0"])
56
54
  end
57
55
  else
58
- s.add_dependency(%q<rake>, [">= 0"])
59
- s.add_dependency(%q<rdoc>, [">= 0"])
60
- s.add_dependency(%q<jeweler>, [">= 0"])
61
- s.add_dependency(%q<nokogiri>, [">= 0"])
62
56
  end
63
57
  end
64
-
@@ -214,7 +214,7 @@ class IsoCountryCodes
214
214
  end
215
215
  class MKD < Code #:nodoc:
216
216
  self.numeric = %q{807}
217
- self.name = %q{Macedonia, the former Yugoslav Republic of}
217
+ self.name = %q{Macedonia, The Former Yugoslav Republic of}
218
218
  self.alpha2 = %q{MK}
219
219
  self.alpha3 = %q{MKD}
220
220
  end
@@ -103,7 +103,7 @@ class IsoCountryCodes
103
103
  self.main_currency = 'KRW'
104
104
  end
105
105
  class ZMB < Code #:nodoc:
106
- self.main_currency = 'ZMK'
106
+ self.main_currency = 'ZMW'
107
107
  end
108
108
  class MKD < Code #:nodoc:
109
109
  self.main_currency = 'MKD'
@@ -6,7 +6,7 @@ class IsoCountryCodes
6
6
  module Task
7
7
  module UpdateCodes
8
8
  def self.get
9
- doc = Nokogiri::HTML.parse(open('http://en.wikipedia.org/wiki/ISO_3166-1'))
9
+ doc = Nokogiri::HTML.parse(open('http://en.wikipedia.org/wiki/ISO_3166-1'), nil, 'UTF-8')
10
10
  codes = {}
11
11
  td_map = {
12
12
  :name => 1,
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: 19
5
- prerelease:
4
+ hash: 17
5
+ prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - alex
@@ -15,64 +15,10 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-03-13 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: rake
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
32
- type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: rdoc
36
- prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 3
43
- segments:
44
- - 0
45
- version: "0"
46
- type: :runtime
47
- version_requirements: *id002
48
- - !ruby/object:Gem::Dependency
49
- name: jeweler
50
- prerelease: false
51
- requirement: &id003 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- hash: 3
57
- segments:
58
- - 0
59
- version: "0"
60
- type: :development
61
- version_requirements: *id003
62
- - !ruby/object:Gem::Dependency
63
- name: nokogiri
64
- prerelease: false
65
- requirement: &id004 !ruby/object:Gem::Requirement
66
- none: false
67
- requirements:
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- hash: 3
71
- segments:
72
- - 0
73
- version: "0"
74
- type: :development
75
- version_requirements: *id004
18
+ date: 2013-01-28 00:00:00 +00:00
19
+ default_executable:
20
+ dependencies: []
21
+
76
22
  description: ISO country code and currency library
77
23
  email: alexrabarts@gmail.com
78
24
  executables: []
@@ -82,6 +28,7 @@ extensions: []
82
28
  extra_rdoc_files:
83
29
  - README.rdoc
84
30
  files:
31
+ - .gitignore
85
32
  - Gemfile
86
33
  - Gemfile.lock
87
34
  - History.txt
@@ -100,12 +47,13 @@ files:
100
47
  - rakelib/iso_3166_1.rb
101
48
  - rakelib/iso_3166_1.rb.erb
102
49
  - test/iso_country_codes_test.rb
50
+ has_rdoc: true
103
51
  homepage: http://github.com/alexrabarts/iso_country_codes
104
52
  licenses: []
105
53
 
106
54
  post_install_message:
107
- rdoc_options: []
108
-
55
+ rdoc_options:
56
+ - --charset=UTF-8
109
57
  require_paths:
110
58
  - lib
111
59
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -129,9 +77,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
77
  requirements: []
130
78
 
131
79
  rubyforge_project:
132
- rubygems_version: 1.8.10
80
+ rubygems_version: 1.3.7
133
81
  signing_key:
134
82
  specification_version: 3
135
83
  summary: Provides ISO 3166-1 country codes/names and ISO 4217 currencies.
136
- test_files: []
137
-
84
+ test_files:
85
+ - test/iso_country_codes_test.rb