twitter_cldr 4.4.4 → 4.4.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ca62d4ce9a3409b94750ada0a8151728a46f6e1cc403ac0e59739b35f73aa2b
4
- data.tar.gz: 64cf1591d2760a70804a53d7cde0651ff11540f2ba9c23d6b1bef3cb085817fe
3
+ metadata.gz: b1ca39c7b7476ecd849fbeda467ed3a04c5d2aae2a83b4403a40dfadbe171495
4
+ data.tar.gz: 5b14789b048000faa43d59e923c059aeb186483c555891ee63bb5d61bfb21ac9
5
5
  SHA512:
6
- metadata.gz: 257ee285edd37b00f0952aed82e0dca83de802da5c4f8ece41c632e41293a70834fcb288ad10c3ddca05ea2d19108329a66693e1c7a821df5bdef57d6256c549
7
- data.tar.gz: 9d0d6fe663ca79e55c041d9d8a0d75bc47d7f7ab17f3d1664ff7e79737ef2bef31b348fc08e1f8fcd56c212ac58aa770b518b8f0fc1ad49690c11e737670176b
6
+ metadata.gz: 0525a32102fcc0460aec9b8c48b599b763d104fcc7cb91cb7c930ab568ce011bfb1b0814035c513a85d6746427ea9a9c07434ac36bd78bfc6fdf51b46bf6f0c8
7
+ data.tar.gz: 893200ea0dff09d442da23f6d0ded4c0e3f37c0532cfaded92fa3cf23d45b35c55a2f286dd9cb9923595fe8fb3113b6b6ca2bb41631b261e841624352100f427
@@ -115,6 +115,11 @@ module TwitterCldr
115
115
  token.value
116
116
  end
117
117
 
118
+ # if a decimal token occurs here, it's actually plaintext
119
+ def decimal(number, rule, token)
120
+ token.value
121
+ end
122
+
118
123
  def semicolon(number, rule, token)
119
124
  ""
120
125
  end
@@ -59,6 +59,10 @@ module TwitterCldr
59
59
  switch(list)
60
60
  end
61
61
 
62
+ def decimal(list)
63
+ add_and_advance(list)
64
+ end
65
+
62
66
  def plaintext(list)
63
67
  add_and_advance(list)
64
68
  end
@@ -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 => 'http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry',
17
- ISO_639_FILE => 'http://www-01.sil.org/iso639-3/iso-639-3_20120614.tab'
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 = {
@@ -12,7 +12,7 @@ module TwitterCldr
12
12
 
13
13
  class PostalCodesImporter < Importer
14
14
 
15
- BASE_URL = 'http://i18napis.appspot.com/address/data/'
15
+ BASE_URL = 'https://i18napis.appspot.com/address/data/'
16
16
 
17
17
  output_path 'shared'
18
18
  ruby_engine :mri
@@ -12,7 +12,7 @@ module TwitterCldr
12
12
  module Requirements
13
13
 
14
14
  class CldrRequirement
15
- CLDR_URL = "http://unicode.org/Public/cldr/%{version}/core.zip"
15
+ CLDR_URL = "https://unicode.org/Public/cldr/%{version}/core.zip"
16
16
 
17
17
  attr_reader :version
18
18
 
@@ -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 = "http://download.icu-project.org/files/icu4j/%{version}/icu4j-%{underscored_version}.jar"
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 = "http://unicode.org/uli/trac/export/58/trunk/abbrs/json/%{locale}.json"
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
@@ -4,5 +4,5 @@
4
4
  # http://www.apache.org/licenses/LICENSE-2.0
5
5
 
6
6
  module TwitterCldr
7
- VERSION = '4.4.4'
7
+ VERSION = '4.4.5'
8
8
  end
@@ -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 = 'http://unicode.org/Public/UCA/latest/CollationAuxiliary.zip'
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 http://translate.twitter.com."
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 http://translate.twitter.com."
36
+ "Go to https://translate.twitter.com."
37
37
  ])
38
38
  end
39
39
 
@@ -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 = "http://twitter.com"
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
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-04-01 00:00:00.000000000 Z
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: http://twitter.com
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
- rubyforge_project:
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