twitter_cldr 4.3.0 → 4.3.1
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/core_ext.rb +8 -2
- data/lib/twitter_cldr/version.rb +1 -1
- data/spec/core_ext_spec.rb +9 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 524211c9e2e79788806d06b9870faa9e58d58684
|
4
|
+
data.tar.gz: a9f37c86fe27129ccd15a24b5eed9f80e105d5af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92754882211fd1b7067ea2e9936fb6a8a77c77fd2009ec1d8544cf8576e6908c0767297f2a5643238de6649d70c193b9e785e0a21c1d00e9cbc2263bae73501f
|
7
|
+
data.tar.gz: 3bf352dc1a9163b2d39a92498b5732448b4ed57817ae6a50eebeac7d18dba25fd78b1031630c7300251df4557abae43bf322a4603c44bcc9b084b6d552b8a7b8
|
@@ -3,8 +3,14 @@
|
|
3
3
|
# Copyright 2012 Twitter, Inc
|
4
4
|
# http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
|
6
|
-
|
7
|
-
|
6
|
+
if RUBY_VERSION >= '2.4.0'
|
7
|
+
[Integer, Float].each do |klass|
|
8
|
+
TwitterCldr::Localized::LocalizedNumber.localize(klass)
|
9
|
+
end
|
10
|
+
else
|
11
|
+
[Bignum, Fixnum, Float].each do |klass|
|
12
|
+
TwitterCldr::Localized::LocalizedNumber.localize(klass)
|
13
|
+
end
|
8
14
|
end
|
9
15
|
|
10
16
|
[Array, Date, DateTime, String, Symbol, Time, Hash].each do |klass|
|
data/lib/twitter_cldr/version.rb
CHANGED
data/spec/core_ext_spec.rb
CHANGED
@@ -6,8 +6,15 @@
|
|
6
6
|
require 'spec_helper'
|
7
7
|
|
8
8
|
describe 'Core classes localization' do
|
9
|
+
core_classes = [Array, DateTime, Float, String, Symbol, Time]
|
9
10
|
|
10
|
-
|
11
|
+
if RUBY_VERSION >= '2.4.0'
|
12
|
+
core_classes.push Integer
|
13
|
+
else
|
14
|
+
core_classes.push Bignum, Fixnum
|
15
|
+
end
|
16
|
+
|
17
|
+
core_classes.each do |klass|
|
11
18
|
describe klass do
|
12
19
|
it 'has public instance method #localize' do
|
13
20
|
expect(klass.public_instance_methods).to include(:localize)
|
@@ -15,4 +22,4 @@ describe 'Core classes localization' do
|
|
15
22
|
end
|
16
23
|
end
|
17
24
|
|
18
|
-
end
|
25
|
+
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.3.
|
4
|
+
version: 4.3.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-03-
|
11
|
+
date: 2017-03-27 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.
|
3248
|
+
rubygems_version: 2.6.11
|
3249
3249
|
signing_key:
|
3250
3250
|
specification_version: 4
|
3251
3251
|
summary: Ruby implementation of the ICU (International Components for Unicode) that
|