twitter_cldr 4.4.0 → 4.4.1

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
  SHA1:
3
- metadata.gz: 674bc5569896b716d19543ec3a2c058f88faedcc
4
- data.tar.gz: daf46a0df8f0ec0fd81e76ab9df42b2fed7c7052
3
+ metadata.gz: 86755164899ce2e61eceda0bdd065091cff3c06d
4
+ data.tar.gz: de3aab2bae85c48cc15215df2248ab83d44d8e91
5
5
  SHA512:
6
- metadata.gz: 2d41beee2102492e1a31260584c407391a4559d52b2b6e92807753681cce4d83ecdae4c52c431f1e29cc5b12d2d5bb61ca35577a76d47dd20d4b22f553888b41
7
- data.tar.gz: c6eb67cc82b5f9a38d914e8459a0c366b6eb7f3ea3cc35508e1df0b4f9623aacc0d0a48cc76cbca7e160d9503af149c20aeddc8471c54243c5c0de85a66336b6
6
+ metadata.gz: 46d89e23e975a868f389fdb6d11aaab63e0fe8f66ad2f5442a5deb54afbc24db9ee03305a259bc4f144134693b8afb6c6b154ec6cb3f729f719549d4b0a11aec
7
+ data.tar.gz: deb156b43344b11924b1725dd5f0a3aaa421f1e2ec9d45c8379cd5c69a29984a333cdc578d8b6170eb32b209996bf7c7b8ca671691a28ce62614ed76850f3baf
@@ -40,6 +40,8 @@ module TwitterCldr
40
40
  private
41
41
 
42
42
  def first_cased(string, start_pos, end_pos)
43
+ end_pos = string.length - 1 if end_pos >= string.length
44
+
43
45
  start_pos.upto(end_pos) do |pos|
44
46
  return pos if cased?(string[pos])
45
47
  end
@@ -4,5 +4,5 @@
4
4
  # http://www.apache.org/licenses/LICENSE-2.0
5
5
 
6
6
  module TwitterCldr
7
- VERSION = '4.4.0'
7
+ VERSION = '4.4.1'
8
8
  end
@@ -62,18 +62,25 @@ describe Caser do
62
62
  )
63
63
  end
64
64
 
65
- it 'lowercases a Cyrillic sample' do
65
+ it 'titlecases a Cyrillic sample' do
66
66
  str = 'ВЛАДИ́МИР ВЛАДИ́МИРОВИЧ ПУ́ТИН'
67
67
  expect(Caser.titlecase(str)).to eq(
68
68
  'Влади́мир Влади́мирович Пу́тин'
69
69
  )
70
70
  end
71
71
 
72
- it 'lowercases a Greek sample' do
72
+ it 'titlecases a Greek sample' do
73
73
  str = 'ΑΛΦΑΒΗΤΙΚΌΣ ΚΑΤΆΛΟΓΟΣ'
74
74
  expect(Caser.titlecase(str)).to eq(
75
75
  'Αλφαβητικόσ Κατάλογοσ'
76
76
  )
77
77
  end
78
+
79
+ it 'titlecases a Japanese example' do
80
+ str = '日本語'
81
+ expect(Caser.titlecase(str)).to eq(
82
+ '日本語'
83
+ )
84
+ end
78
85
  end
79
86
  end
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.0
4
+ version: 4.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-29 00:00:00.000000000 Z
11
+ date: 2017-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: camertron-eprun
@@ -3245,7 +3245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
3245
3245
  version: '0'
3246
3246
  requirements: []
3247
3247
  rubyforge_project:
3248
- rubygems_version: 2.6.11
3248
+ rubygems_version: 2.5.2
3249
3249
  signing_key:
3250
3250
  specification_version: 4
3251
3251
  summary: Ruby implementation of the ICU (International Components for Unicode) that