twitter_cldr 6.11.4 → 6.11.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d26d9731806317d617136ada2344232764fe69a39ff76449918dfec104289ce
4
- data.tar.gz: 843246cba66a4e80cf85c5e032a0a7062e3bd3c58809aaff10d993b11e47bf7c
3
+ metadata.gz: b11f91730651330a12916b02b1ebc518f7adc5adc4faef458d2d9d2235e6a072
4
+ data.tar.gz: 638071ce117e6e822f9532e6a4d3218d2e01e1bd777d3868e593fae0441cf829
5
5
  SHA512:
6
- metadata.gz: ed165782eb0a31ebbc45393ca9893e00215de7163163f7c3355a0dba6c0441cc9af2de74485fc739056d79959247d047f1f93e35d7bd3abcf76fc2085375ea84
7
- data.tar.gz: 349eeb7c7e36cdee993785d7fb37093e73457886d6bdb68e4f43e8d9258029222b537cc9dd32cbeab016bd39351cd8c66728573847500254f59f90a7def17e86
6
+ metadata.gz: 5ac90cffe3a9956bc85817e58627d5b0016d3e0ee93032e6920ed5d24696976405f2c62da07d23ecb82d8e4d52010d6143144d3ce2e15943f360feba589fbed3
7
+ data.tar.gz: f446b1610d5b662a29970c997ec0825c10bdd679cdd6effec6ede1b63166d039289b9865d991fab0e510d9dff4c971cc73071409b9e5631e9f6007698fd5f48b
@@ -24,7 +24,7 @@ module TwitterCldr
24
24
  end
25
25
 
26
26
  def from_code_for_locale(code, locale = TwitterCldr.locale)
27
- get_resource(locale)[:languages][TwitterCldr.convert_locale(code)]
27
+ get_resource(locale)[:languages][TwitterCldr.normalize_locale(code)]
28
28
  rescue
29
29
  nil
30
30
  end
@@ -4,5 +4,5 @@
4
4
  # http://www.apache.org/licenses/LICENSE-2.0
5
5
 
6
6
  module TwitterCldr
7
- VERSION = '6.11.4'
7
+ VERSION = '6.11.5'
8
8
  end
@@ -45,6 +45,10 @@ describe TwitterCldr::Shared::Languages do
45
45
  expect(described_class.from_code_for_locale(:es, :en)).to match_normalized("Spanish")
46
46
  expect(described_class.from_code_for_locale(:en, :es)).to match_normalized("inglés")
47
47
  end
48
+
49
+ it "returns the language when passed a locale code that is not directly supported by TwitterCLDR" do
50
+ expect(described_class.from_code_for_locale(:nn, :en)).to match_normalized("Norwegian Nynorsk")
51
+ end
48
52
  end
49
53
 
50
54
  describe "#from_code" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter_cldr
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.11.4
4
+ version: 6.11.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-03 00:00:00.000000000 Z
11
+ date: 2023-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: camertron-eprun
@@ -4002,7 +4002,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
4002
4002
  - !ruby/object:Gem::Version
4003
4003
  version: '0'
4004
4004
  requirements: []
4005
- rubygems_version: 3.2.22
4005
+ rubygems_version: 3.4.5
4006
4006
  signing_key:
4007
4007
  specification_version: 4
4008
4008
  summary: Ruby implementation of the ICU (International Components for Unicode) that