twitter_cldr 6.11.3 → 6.11.4

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: ca1b74d4a8067791e225230be2411329646c788634134e49ff94492a385e6687
4
- data.tar.gz: 921204eea1fb84bcc4c469b3be205498419447d20b379eb5840ffcf19b5cfc7d
3
+ metadata.gz: 2d26d9731806317d617136ada2344232764fe69a39ff76449918dfec104289ce
4
+ data.tar.gz: 843246cba66a4e80cf85c5e032a0a7062e3bd3c58809aaff10d993b11e47bf7c
5
5
  SHA512:
6
- metadata.gz: 6fcb16b98a4c4348cf4edb718d4a970aa80f800993f5bdf7062bfda9e70a9f6a23eb9f1286bdb34c0c017a4f2903e4cd24caad418d0554a6f9f1e0c30f67214d
7
- data.tar.gz: 1e87d5ad77478304b4fa2b1b87c41fc95b1546dfa7a3a30205af51f8bb9d53c15085c761dc43de91c7cf3059d9217e061943ddb0cf7fd44681f05c9e099c7c9f
6
+ metadata.gz: ed165782eb0a31ebbc45393ca9893e00215de7163163f7c3355a0dba6c0441cc9af2de74485fc739056d79959247d047f1f93e35d7bd3abcf76fc2085375ea84
7
+ data.tar.gz: 349eeb7c7e36cdee993785d7fb37093e73457886d6bdb68e4f43e8d9258029222b537cc9dd32cbeab016bd39351cd8c66728573847500254f59f90a7def17e86
@@ -96,10 +96,10 @@ module TwitterCldr
96
96
  is_katakana = is_katakana?(cursor.codepoint)
97
97
 
98
98
  if !is_prev_katakana && is_katakana
99
- j = cursor.position + 1
99
+ j = idx + 1
100
100
  cursor.advance
101
101
 
102
- while j < end_pos && (j - idx) < MAX_KATAKANA_GROUP_LENGTH && is_katakana?(cursor.codepoint)
102
+ while cursor.position < end_pos && (j - idx) < MAX_KATAKANA_GROUP_LENGTH && is_katakana?(cursor.codepoint)
103
103
  cursor.advance
104
104
  j += 1
105
105
  end
@@ -16,7 +16,11 @@ module TwitterCldr
16
16
  end
17
17
 
18
18
  def advance(amount = 1)
19
- @position += amount
19
+ if @position + amount > text.size
20
+ @position = text.size
21
+ else
22
+ @position += amount
23
+ end
20
24
  end
21
25
 
22
26
  def reset
@@ -4,5 +4,5 @@
4
4
  # http://www.apache.org/licenses/LICENSE-2.0
5
5
 
6
6
  module TwitterCldr
7
- VERSION = '6.11.3'
7
+ VERSION = '6.11.4'
8
8
  end
data/twitter_cldr.gemspec CHANGED
@@ -6,7 +6,7 @@ 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 = "https://twitter.com"
9
+ s.homepage = "https://github.com/twitter/twitter-cldr-rb"
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."
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.3
4
+ version: 6.11.4
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-04-21 00:00:00.000000000 Z
11
+ date: 2022-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: camertron-eprun
@@ -3983,7 +3983,7 @@ files:
3983
3983
  - spec/utils/yaml/yaml_spec.rb
3984
3984
  - spec/utils_spec.rb
3985
3985
  - twitter_cldr.gemspec
3986
- homepage: https://twitter.com
3986
+ homepage: https://github.com/twitter/twitter-cldr-rb
3987
3987
  licenses:
3988
3988
  - Apache-2.0
3989
3989
  metadata: {}
@@ -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.3.3
4005
+ rubygems_version: 3.2.22
4006
4006
  signing_key:
4007
4007
  specification_version: 4
4008
4008
  summary: Ruby implementation of the ICU (International Components for Unicode) that