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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/iso-639.gemspec +1 -1
  3. data/lib/iso-639.rb +2 -5
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9e0a16487494797744a4726d9c4e69f0f993784f13d0d1074dd9c660159cfea
4
- data.tar.gz: 5e5a653d777776d31e7f2ee3c4e9dd0875485ff8b4707eb0cdb1e2e4de3c22a0
3
+ metadata.gz: f30bbd1aa167785f1c7814c24620a2f32940c385087c36d8fcfdb3af9664f07a
4
+ data.tar.gz: c73c896af9cfbf3b4de0864555642796189081f643c370441336b7779f9525d7
5
5
  SHA512:
6
- metadata.gz: 218e941e0928c292c1590ec0c2734e7bf98204c25215877ac06b1d4e8f83a06d7d5adfd5c5fc6192cc1bdb0a06a1afd0568acabac5b57492de264fcbb31d61a8
7
- data.tar.gz: 5628d6e2f5a66972bdc9a5a804d2e84edb4c7ed711fa6b6f2eef50802ccfb1e3a4978360d4436c43451b515b64fecd7fae93d555ae5f5a65edcef06070ae2b26
6
+ metadata.gz: 935449f682ee87f38b6d9a10e962439695c4eed0cb756ed4c219470f9eb68a770d35f2a0cd3006623f591ae44335d018173d00639cf805884d6873c74c4cf7c1
7
+ data.tar.gz: 7a744e9d43604918a76875156dbdb2fe24bd245a3f93c90883109f2ca4b586ddf378e5bffdec4267dc885fcdcae6879913a43dfffb9fee9e67adffca17779690
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'iso-639'
5
- s.version = '0.3.2'
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.'
@@ -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
- col_sep: '|',
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iso-639
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Melody