twitter_cldr 4.4.4 → 4.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/twitter_cldr/formatters/numbers/rbnf/formatters.rb +5 -0
- data/lib/twitter_cldr/formatters/numbers/rbnf/rule_parser.rb +4 -0
- data/lib/twitter_cldr/resources/language_codes_importer.rb +2 -2
- data/lib/twitter_cldr/resources/postal_codes_importer.rb +1 -1
- data/lib/twitter_cldr/resources/requirements/cldr_requirement.rb +1 -1
- data/lib/twitter_cldr/resources/requirements/icu_requirement.rb +1 -1
- data/lib/twitter_cldr/resources/uli/segment_exceptions_importer.rb +1 -1
- data/lib/twitter_cldr/tokenizers/numbers/rbnf_tokenizer.rb +1 -1
- data/lib/twitter_cldr/version.rb +1 -1
- data/spec/collation/collation_spec.rb +1 -1
- data/spec/segmentation/break_iterator_spec.rb +2 -2
- data/twitter_cldr.gemspec +1 -2
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1ca39c7b7476ecd849fbeda467ed3a04c5d2aae2a83b4403a40dfadbe171495
|
4
|
+
data.tar.gz: 5b14789b048000faa43d59e923c059aeb186483c555891ee63bb5d61bfb21ac9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0525a32102fcc0460aec9b8c48b599b763d104fcc7cb91cb7c930ab568ce011bfb1b0814035c513a85d6746427ea9a9c07434ac36bd78bfc6fdf51b46bf6f0c8
|
7
|
+
data.tar.gz: 893200ea0dff09d442da23f6d0ded4c0e3f37c0532cfaded92fa3cf23d45b35c55a2f286dd9cb9923595fe8fb3113b6b6ca2bb41631b261e841624352100f427
|
@@ -13,8 +13,8 @@ module TwitterCldr
|
|
13
13
|
BCP_47_FILE, ISO_639_FILE = %w[bcp-47.txt iso-639.txt]
|
14
14
|
|
15
15
|
INPUT_DATA = {
|
16
|
-
BCP_47_FILE => '
|
17
|
-
ISO_639_FILE => '
|
16
|
+
BCP_47_FILE => 'https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry',
|
17
|
+
ISO_639_FILE => 'https://www-01.sil.org/iso639-3/iso-639-3_20120614.tab'
|
18
18
|
}
|
19
19
|
|
20
20
|
KEYS_TO_STANDARDS = {
|
@@ -15,7 +15,7 @@ module TwitterCldr
|
|
15
15
|
# first on the classpath wins, which can be surprising if you're not
|
16
16
|
# expecting it. Oh, and it can break all the tests.
|
17
17
|
class IcuRequirement
|
18
|
-
ICU_URL = "
|
18
|
+
ICU_URL = "https://download.icu-project.org/files/icu4j/%{version}/icu4j-%{underscored_version}.jar"
|
19
19
|
|
20
20
|
# first entry is JCL itself, other two are JCL dependencies
|
21
21
|
JCL_JARS = [
|
@@ -12,7 +12,7 @@ module TwitterCldr
|
|
12
12
|
module Uli
|
13
13
|
class SegmentExceptionsImporter < Resources::Importer
|
14
14
|
|
15
|
-
URL = "
|
15
|
+
URL = "https://unicode.org/uli/trac/export/58/trunk/abbrs/json/%{locale}.json"
|
16
16
|
LOCALES = [:de, :en, :es, :fr, :it, :pt, :ru] # these are the only locales ULI supports at the moment
|
17
17
|
|
18
18
|
output_path 'uli/segments'
|
@@ -29,7 +29,7 @@ module TwitterCldr
|
|
29
29
|
TokenRecognizer.new(:left_arrow, /</),
|
30
30
|
TokenRecognizer.new(:open_bracket, /\[/),
|
31
31
|
TokenRecognizer.new(:close_bracket, /\]/),
|
32
|
-
TokenRecognizer.new(:decimal, /[0#][0#,\.]
|
32
|
+
TokenRecognizer.new(:decimal, /[0#][0#,\.]*/),
|
33
33
|
TokenRecognizer.new(:plural, /\$\(.*\)\$/),
|
34
34
|
|
35
35
|
# ending
|
data/lib/twitter_cldr/version.rb
CHANGED
@@ -14,7 +14,7 @@ describe 'Unicode Collation Algorithm' do
|
|
14
14
|
SHORT_COLLATION_TEST_PATH = File.join(File.dirname(__FILE__), 'CollationTest_CLDR_NON_IGNORABLE_Short.txt')
|
15
15
|
FULL_COLLATION_TEST_PATH = File.join(File.dirname(__FILE__), 'CollationTest_CLDR_NON_IGNORABLE.txt')
|
16
16
|
|
17
|
-
FULL_COLLATION_TEST_URL = '
|
17
|
+
FULL_COLLATION_TEST_URL = 'https://unicode.org/Public/UCA/latest/CollationAuxiliary.zip'
|
18
18
|
|
19
19
|
it 'passes all the tests in CollationTest_CLDR_NON_IGNORABLE_Short.txt' do
|
20
20
|
run_test(SHORT_COLLATION_TEST_PATH)
|
@@ -30,10 +30,10 @@ describe BreakIterator do
|
|
30
30
|
end
|
31
31
|
|
32
32
|
it "does not split periods in the midst of other letters, eg. in a URL" do
|
33
|
-
str = "Visit us. Go to
|
33
|
+
str = "Visit us. Go to https://translate.twitter.com."
|
34
34
|
expect(iterator.each_sentence(str).map { |word, _, _| word }).to eq([
|
35
35
|
"Visit us. ",
|
36
|
-
"Go to
|
36
|
+
"Go to https://translate.twitter.com."
|
37
37
|
])
|
38
38
|
end
|
39
39
|
|
data/twitter_cldr.gemspec
CHANGED
@@ -6,13 +6,12 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.version = ::TwitterCldr::VERSION
|
7
7
|
s.authors = ["Cameron Dutro"]
|
8
8
|
s.email = ["cdutro@twitter.com"]
|
9
|
-
s.homepage = "
|
9
|
+
s.homepage = "https://twitter.com"
|
10
10
|
s.license = "Apache-2.0"
|
11
11
|
|
12
12
|
s.description = s.summary = "Ruby implementation of the ICU (International Components for Unicode) that uses the Common Locale Data Repository to format dates, plurals, and more."
|
13
13
|
|
14
14
|
s.platform = Gem::Platform::RUBY
|
15
|
-
s.has_rdoc = true
|
16
15
|
s.summary = "Ruby implementation of the ICU (International Components for Unicode) that uses the Common Locale Data Repository to format dates, plurals, and more."
|
17
16
|
|
18
17
|
# json gem since v2.0 requries Ruby ~> 2.0
|
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: 4.4.
|
4
|
+
version: 4.4.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: 2019-
|
11
|
+
date: 2019-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: camertron-eprun
|
@@ -3226,7 +3226,7 @@ files:
|
|
3226
3226
|
- spec/utils/yaml/yaml_spec.rb
|
3227
3227
|
- spec/utils_spec.rb
|
3228
3228
|
- twitter_cldr.gemspec
|
3229
|
-
homepage:
|
3229
|
+
homepage: https://twitter.com
|
3230
3230
|
licenses:
|
3231
3231
|
- Apache-2.0
|
3232
3232
|
metadata: {}
|
@@ -3245,8 +3245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
3245
3245
|
- !ruby/object:Gem::Version
|
3246
3246
|
version: '0'
|
3247
3247
|
requirements: []
|
3248
|
-
|
3249
|
-
rubygems_version: 2.7.6
|
3248
|
+
rubygems_version: 3.0.4
|
3250
3249
|
signing_key:
|
3251
3250
|
specification_version: 4
|
3252
3251
|
summary: Ruby implementation of the ICU (International Components for Unicode) that
|