i18n 1.4.0 → 1.5.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
  SHA256:
3
- metadata.gz: 8261641c6a20a87755f261c21a4148f5b414577c2fbc127b31ffaf59e93bb88e
4
- data.tar.gz: 8710ff18593cdab6cdd2388f3726d3da41d5a1129eade70b3cac8e8d100c804b
3
+ metadata.gz: e0fcbf520f3e771d94007f93190174f407f5ef1eb5ddf0f578349e1c80c0a053
4
+ data.tar.gz: aba5a0c7ce9a11ac04c146ab53a112aee5e4992f58b00411b6bb4673f6a5659a
5
5
  SHA512:
6
- metadata.gz: 3a74081f5e0ad3d800857b64541ec97e0d48602bfc81b5d1e54a72ede4e8244599f9d1f3b07a0ed33eb6f2e5730c80f468e1097815fadde9f9c0c1edd63f1b10
7
- data.tar.gz: 3ff46b06293eaa68353b15a64645323da870e6afa0f8a2b5f3559983966166a950e74cf2ade96cf3a3d22cb7940d01b448feecb71ad052bf43433ebbe1da2c3c
6
+ metadata.gz: 80eaf93d6a6cd4e7c2508d616efcff1a95dc20a429d9524adb97541053a2fba88663ee6f035703f2eae7370f332d001a9214fe75dd4922bd05012befc527c10a
7
+ data.tar.gz: 29f2507f669c6aad52009790146a686cb507a02bc32ae0cfca5aba49c5ec1d6e50b91c74421f560e18f17f6f4db623b457381de4c32f8116bc53d24147884b5a
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby I18n
2
2
 
3
- [![Build Status](https://api.travis-ci.org/svenfuchs/i18n.svg?branch=master)](https://travis-ci.org/svenfuchs/i18n)
3
+ [![Build Status](https://api.travis-ci.org/ruby-i18n/i18n.svg?branch=master)](https://travis-ci.org/ruby-i18n/i18n)
4
4
 
5
5
  Ruby Internationalization and localization solution.
6
6
 
@@ -364,7 +364,7 @@ module I18n
364
364
  keys.delete('')
365
365
  keys.map! do |k|
366
366
  case k
367
- when /\A[-+]?\d+\z/ # integer
367
+ when /\A[-+]?[1-9]\d*\z/ # integer
368
368
  k.to_i
369
369
  when 'true'
370
370
  true
@@ -100,13 +100,10 @@ module I18n
100
100
 
101
101
  def cache_key(locale, key, options)
102
102
  # This assumes that only simple, native Ruby values are passed to I18n.translate.
103
- "i18n/#{I18n.cache_namespace}/#{locale}/#{digest_item(key)}/#{USE_INSPECT_HASH ? digest_item(options.inspect) : digest_item(options)}"
103
+ "i18n/#{I18n.cache_namespace}/#{locale}/#{digest_item(key)}/#{digest_item(options)}"
104
104
  end
105
105
 
106
106
  private
107
- # In Ruby < 1.9 the following is true: { :foo => 1, :bar => 2 }.hash == { :foo => 2, :bar => 1 }.hash
108
- # Therefore we must use the hash of the inspect string instead to avoid cache key colisions.
109
- USE_INSPECT_HASH = RUBY_VERSION <= "1.9"
110
107
 
111
108
  def digest_item(key)
112
109
  I18n.cache_key_digest ? I18n.cache_key_digest.hexdigest(key.to_s) : key.hash
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module I18n
4
- VERSION = "1.4.0"
4
+ VERSION = "1.5.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sven Fuchs
@@ -10,20 +10,20 @@ authors:
10
10
  - Stephan Soller
11
11
  - Saimon Moore
12
12
  - Ryan Bigg
13
- autorequire:
13
+ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2019-01-01 00:00:00.000000000 Z
16
+ date: 2019-01-06 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
- name: concurrent-ruby
20
19
  requirement: !ruby/object:Gem::Requirement
21
20
  requirements:
22
21
  - - "~>"
23
22
  - !ruby/object:Gem::Version
24
23
  version: '1.0'
25
- type: :runtime
24
+ name: concurrent-ruby
26
25
  prerelease: false
26
+ type: :runtime
27
27
  version_requirements: !ruby/object:Gem::Requirement
28
28
  requirements:
29
29
  - - "~>"
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  requirements: []
120
120
  rubyforge_project: "[none]"
121
121
  rubygems_version: 2.7.6
122
- signing_key:
122
+ signing_key:
123
123
  specification_version: 4
124
124
  summary: New wave Internationalization support for Ruby
125
125
  test_files: []