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 +4 -4
- data/README.md +1 -1
- data/lib/i18n.rb +1 -1
- data/lib/i18n/backend/cache.rb +1 -4
- data/lib/i18n/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0fcbf520f3e771d94007f93190174f407f5ef1eb5ddf0f578349e1c80c0a053
|
4
|
+
data.tar.gz: aba5a0c7ce9a11ac04c146ab53a112aee5e4992f58b00411b6bb4673f6a5659a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
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
|
|
data/lib/i18n.rb
CHANGED
data/lib/i18n/backend/cache.rb
CHANGED
@@ -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)}/#{
|
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
|
data/lib/i18n/version.rb
CHANGED
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
|
+
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-
|
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
|
-
|
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: []
|