iso_code 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -20,10 +20,10 @@ This returns all available languages in english, german and polish.
20
20
 
21
21
  == Todo
22
22
 
23
- * Write specs for full cov
24
- * Implement scriptnames
25
- * Implement subdevisions
26
- * Implement currencies
23
+ * Write specs for full cov
24
+ * Implement scriptnames
25
+ * Implement subdevisions
26
+ * Implement currencies
27
27
 
28
28
  == Credits
29
29
 
data/iso_code.gemspec CHANGED
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{iso_code}
8
- s.version = "0.0.4"
7
+ s.name = "iso_code"
8
+ s.version = "0.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Thomas Boerger"]
12
- s.date = %q{2011-07-18}
13
- s.description = %q{Translate many available languages (ISO 639-3) and countries (ISO 3166) into requested languages}
14
- s.email = %q{tboerger@tbpro.de}
12
+ s.date = "2011-10-12"
13
+ s.description = "Translate many available languages (ISO 639-3) and countries (ISO 3166) into requested languages"
14
+ s.email = "tboerger@tbpro.de"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
17
  "README.rdoc"
@@ -34,11 +34,11 @@ Gem::Specification.new do |s|
34
34
  "spec/iso_code_spec.rb",
35
35
  "spec/spec_helper.rb"
36
36
  ]
37
- s.homepage = %q{https://github.com/tbpro/iso_code}
37
+ s.homepage = "https://github.com/tbpro/iso_code"
38
38
  s.licenses = ["MIT"]
39
39
  s.require_paths = ["lib"]
40
- s.rubygems_version = %q{1.7.2}
41
- s.summary = %q{Countries and languages by ISO codes}
40
+ s.rubygems_version = "1.8.10"
41
+ s.summary = "Countries and languages by ISO codes"
42
42
 
43
43
  if s.respond_to? :specification_version then
44
44
  s.specification_version = 3
data/lib/iso_code/base.rb CHANGED
@@ -37,8 +37,8 @@ module IsoCode
37
37
  i18ns = scan_i18ns(f)
38
38
 
39
39
  Range.new(0, names.count).each do |i|
40
- en_name = names[i].to_s
41
- xx_name = i18ns[i].to_s
40
+ en_name = names[i].to_a.first.to_s
41
+ xx_name = i18ns[i].to_a.first.to_s
42
42
 
43
43
  xx_name = if xx_name.empty?
44
44
  en_name
@@ -5,7 +5,7 @@ module IsoCode
5
5
  module Version
6
6
  MAJOR = 0
7
7
  MINOR = 0
8
- PATCH = 4
8
+ PATCH = 5
9
9
  BUILD = nil
10
10
 
11
11
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
metadata CHANGED
@@ -1,124 +1,91 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: iso_code
3
- version: !ruby/object:Gem::Version
4
- hash: 23
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.5
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 4
10
- version: 0.0.4
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Thomas Boerger
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-07-18 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- version_requirements: &id001 !ruby/object:Gem::Requirement
22
- none: false
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- hash: 3
27
- segments:
28
- - 0
29
- version: "0"
12
+ date: 2011-10-12 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
30
15
  name: nokogiri
31
- prerelease: false
16
+ requirement: &70284131028360 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
32
22
  type: :runtime
33
- requirement: *id001
34
- - !ruby/object:Gem::Dependency
35
- version_requirements: &id002 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ version_requirements: *70284131028360
25
+ - !ruby/object:Gem::Dependency
26
+ name: rspec
27
+ requirement: &70284131026940 !ruby/object:Gem::Requirement
36
28
  none: false
37
- requirements:
29
+ requirements:
38
30
  - - ~>
39
- - !ruby/object:Gem::Version
40
- hash: 3
41
- segments:
42
- - 2
43
- - 3
44
- - 0
31
+ - !ruby/object:Gem::Version
45
32
  version: 2.3.0
46
- name: rspec
47
- prerelease: false
48
33
  type: :development
49
- requirement: *id002
50
- - !ruby/object:Gem::Dependency
51
- version_requirements: &id003 !ruby/object:Gem::Requirement
34
+ prerelease: false
35
+ version_requirements: *70284131026940
36
+ - !ruby/object:Gem::Dependency
37
+ name: yard
38
+ requirement: &70284131026080 !ruby/object:Gem::Requirement
52
39
  none: false
53
- requirements:
40
+ requirements:
54
41
  - - ~>
55
- - !ruby/object:Gem::Version
56
- hash: 7
57
- segments:
58
- - 0
59
- - 6
60
- - 0
42
+ - !ruby/object:Gem::Version
61
43
  version: 0.6.0
62
- name: yard
63
- prerelease: false
64
44
  type: :development
65
- requirement: *id003
66
- - !ruby/object:Gem::Dependency
67
- version_requirements: &id004 !ruby/object:Gem::Requirement
45
+ prerelease: false
46
+ version_requirements: *70284131026080
47
+ - !ruby/object:Gem::Dependency
48
+ name: bundler
49
+ requirement: &70284131024680 !ruby/object:Gem::Requirement
68
50
  none: false
69
- requirements:
51
+ requirements:
70
52
  - - ~>
71
- - !ruby/object:Gem::Version
72
- hash: 23
73
- segments:
74
- - 1
75
- - 0
76
- - 0
53
+ - !ruby/object:Gem::Version
77
54
  version: 1.0.0
78
- name: bundler
79
- prerelease: false
80
55
  type: :development
81
- requirement: *id004
82
- - !ruby/object:Gem::Dependency
83
- version_requirements: &id005 !ruby/object:Gem::Requirement
56
+ prerelease: false
57
+ version_requirements: *70284131024680
58
+ - !ruby/object:Gem::Dependency
59
+ name: jeweler
60
+ requirement: &70284131023600 !ruby/object:Gem::Requirement
84
61
  none: false
85
- requirements:
62
+ requirements:
86
63
  - - ~>
87
- - !ruby/object:Gem::Version
88
- hash: 7
89
- segments:
90
- - 1
91
- - 6
92
- - 4
64
+ - !ruby/object:Gem::Version
93
65
  version: 1.6.4
94
- name: jeweler
95
- prerelease: false
96
66
  type: :development
97
- requirement: *id005
98
- - !ruby/object:Gem::Dependency
99
- version_requirements: &id006 !ruby/object:Gem::Requirement
100
- none: false
101
- requirements:
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- hash: 3
105
- segments:
106
- - 0
107
- version: "0"
108
- name: rcov
109
67
  prerelease: false
68
+ version_requirements: *70284131023600
69
+ - !ruby/object:Gem::Dependency
70
+ name: rcov
71
+ requirement: &70284131022380 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
110
77
  type: :development
111
- requirement: *id006
112
- description: Translate many available languages (ISO 639-3) and countries (ISO 3166) into requested languages
78
+ prerelease: false
79
+ version_requirements: *70284131022380
80
+ description: Translate many available languages (ISO 639-3) and countries (ISO 3166)
81
+ into requested languages
113
82
  email: tboerger@tbpro.de
114
83
  executables: []
115
-
116
84
  extensions: []
117
-
118
- extra_rdoc_files:
85
+ extra_rdoc_files:
119
86
  - LICENSE.txt
120
87
  - README.rdoc
121
- files:
88
+ files:
122
89
  - .document
123
90
  - .rspec
124
91
  - Gemfile
@@ -136,37 +103,31 @@ files:
136
103
  - spec/iso_code_spec.rb
137
104
  - spec/spec_helper.rb
138
105
  homepage: https://github.com/tbpro/iso_code
139
- licenses:
106
+ licenses:
140
107
  - MIT
141
108
  post_install_message:
142
109
  rdoc_options: []
143
-
144
- require_paths:
110
+ require_paths:
145
111
  - lib
146
- required_ruby_version: !ruby/object:Gem::Requirement
112
+ required_ruby_version: !ruby/object:Gem::Requirement
147
113
  none: false
148
- requirements:
149
- - - ">="
150
- - !ruby/object:Gem::Version
151
- hash: 3
152
- segments:
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ segments:
153
119
  - 0
154
- version: "0"
155
- required_rubygems_version: !ruby/object:Gem::Requirement
120
+ hash: 889434579029131303
121
+ required_rubygems_version: !ruby/object:Gem::Requirement
156
122
  none: false
157
- requirements:
158
- - - ">="
159
- - !ruby/object:Gem::Version
160
- hash: 3
161
- segments:
162
- - 0
163
- version: "0"
123
+ requirements:
124
+ - - ! '>='
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
164
127
  requirements: []
165
-
166
128
  rubyforge_project:
167
- rubygems_version: 1.7.2
129
+ rubygems_version: 1.8.10
168
130
  signing_key:
169
131
  specification_version: 3
170
132
  summary: Countries and languages by ISO codes
171
133
  test_files: []
172
-