iso-639 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/iso-639.gemspec +1 -1
- data/lib/iso-639.rb +2 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f30bbd1aa167785f1c7814c24620a2f32940c385087c36d8fcfdb3af9664f07a
|
4
|
+
data.tar.gz: c73c896af9cfbf3b4de0864555642796189081f643c370441336b7779f9525d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 935449f682ee87f38b6d9a10e962439695c4eed0cb756ed4c219470f9eb68a770d35f2a0cd3006623f591ae44335d018173d00639cf805884d6873c74c4cf7c1
|
7
|
+
data.tar.gz: 7a744e9d43604918a76875156dbdb2fe24bd245a3f93c90883109f2ca4b586ddf378e5bffdec4267dc885fcdcae6879913a43dfffb9fee9e67adffca17779690
|
data/iso-639.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'iso-639'
|
5
|
-
s.version = '0.3.
|
5
|
+
s.version = '0.3.3'
|
6
6
|
s.licenses = ['MIT']
|
7
7
|
s.summary = 'ISO 639-1 and ISO 639-2 language code entries and convenience methods.'
|
8
8
|
s.description = 'ISO 639-1 and ISO 639-2 language code entries and convenience methods.'
|
data/lib/iso-639.rb
CHANGED
@@ -20,11 +20,8 @@ class ISO_639 < Array
|
|
20
20
|
File.join(File.dirname(__FILE__), 'data', 'ISO-639-2_utf-8.txt'),
|
21
21
|
'r:bom|utf-8'
|
22
22
|
) do |file|
|
23
|
-
CSV.new(file, **{
|
24
|
-
|
25
|
-
converters: ->(v) { v || '' }
|
26
|
-
}).each do |row|
|
27
|
-
dataset << self[*row].freeze
|
23
|
+
CSV.new(file, **{ col_sep: '|' }).each do |row|
|
24
|
+
dataset << self[*row.map { |v| v || '' }].freeze
|
28
25
|
end
|
29
26
|
end
|
30
27
|
return dataset
|