twitter_cldr 4.3.0 → 4.3.1

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
  SHA1:
3
- metadata.gz: 37a89a5fbd73ded798ad9f2f2be973d6f33ac5df
4
- data.tar.gz: 78d63b2af016684d5b5de20775b04a7946463532
3
+ metadata.gz: 524211c9e2e79788806d06b9870faa9e58d58684
4
+ data.tar.gz: a9f37c86fe27129ccd15a24b5eed9f80e105d5af
5
5
  SHA512:
6
- metadata.gz: 12aa65599245ff710b91bcf1101e8c87b9fde5f4b870abafa0cb803ee88a610c3d620b19b7ceb40411d5c748c89ca02ce191061724caa57df2cfc7c67f756506
7
- data.tar.gz: ca794872ecf09b1670d3e0d97f83c4938aa1acbfae20cb4bbf22b75c37ecaf267bc67a07504f158f922a83f45ba0a19733574d2a8c2e07f549b7c13980036a54
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
- [Bignum, Fixnum, Float].each do |klass|
7
- TwitterCldr::Localized::LocalizedNumber.localize(klass)
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|
@@ -4,5 +4,5 @@
4
4
  # http://www.apache.org/licenses/LICENSE-2.0
5
5
 
6
6
  module TwitterCldr
7
- VERSION = '4.3.0'
7
+ VERSION = '4.3.1'
8
8
  end
@@ -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
- [Array, Bignum, DateTime, Fixnum, Float, String, Symbol, Time].each do |klass|
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.0
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-01 00:00:00.000000000 Z
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.2.5
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