iso639 1.3.1 → 1.3.2
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.
- checksums.yaml +4 -4
- data/.travis.yml +3 -4
- data/lib/iso639.rb +1 -1
- data/lib/iso639/insensitive_hash.rb +1 -1
- data/lib/iso639/version.rb +1 -1
- data/test/insensitive_hash_test.rb +2 -0
- data/test/iso639_test.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79c6956cb1fc30e1fbe6f7e308d5e4dad6594d74
|
4
|
+
data.tar.gz: b4769d29896ebde606f19e1f476eba137b4dadc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a22991fffc0e18664b4aa36bbaaa5759165d6e160bce89a6ad5c5ba872bfb567930cbc052230ab95dca593c3cae7c77d026b1e54b4a69422838713e6fe1226d2
|
7
|
+
data.tar.gz: 352ba2898d06e77ff7f16398e8a7fd937eae6ef48833fe82855c1412026e25cbdb69c4b84eccd4063b52c8a945ec6f35b6d1f24cf39b31eb6d5786c46117e4e6
|
data/.travis.yml
CHANGED
data/lib/iso639.rb
CHANGED
@@ -37,7 +37,7 @@ module Iso639
|
|
37
37
|
|
38
38
|
iso639_file = File.expand_path(File.join("..", "iso639", "ISO-639-2_utf-8.txt"), __FILE__)
|
39
39
|
File.readlines(iso639_file, encoding: "utf-8").each do |line|
|
40
|
-
lang = Language.new
|
40
|
+
lang = Language.new(*line.split("|"))
|
41
41
|
LanguagesByAlpha2[lang.alpha2] = lang if lang.alpha2
|
42
42
|
LanguagesByAlpha3[lang.alpha3] = lang if lang.alpha3
|
43
43
|
LanguagesByAlpha3Terminology[lang.alpha3_terminology] = lang if lang.alpha3_terminology
|
data/lib/iso639/version.rb
CHANGED
data/test/iso639_test.rb
CHANGED
@@ -105,7 +105,7 @@ describe Iso639 do
|
|
105
105
|
it "should ignore regional designations" do
|
106
106
|
assert_equal "en", Iso639["en_US"].alpha2
|
107
107
|
assert_equal "en", Iso639["en_GB"].alpha2
|
108
|
-
assert_equal "fr", Iso639["
|
109
|
-
assert_equal "fr", Iso639["
|
108
|
+
assert_equal "fr", Iso639["fr-CA"].alpha2
|
109
|
+
assert_equal "fr", Iso639["fr-FR"].alpha2
|
110
110
|
end
|
111
111
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iso639
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan McGeary
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
version: '0'
|
84
84
|
requirements: []
|
85
85
|
rubyforge_project:
|
86
|
-
rubygems_version: 2.
|
86
|
+
rubygems_version: 2.6.8
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: ISO 639-1 and ISO 639-2 lookups by name, alpha-2 code, or alpha-3 code
|