i18n-sequel_bitemporal 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/i18n/backend/sequel_bitemporal.rb +2 -2
- data/lib/i18n/sequel_bitemporal/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a21e8432a3b8bccc1b34bfd9d69619176dd4bd9a
|
4
|
+
data.tar.gz: b778d2ac29957604c71015981b7c33f329a26ead
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ec0f0f3fff351e8ffe7bed2868f6f9031eb00e1d71dbc65f445611ed2ccfcdf6ca91a63207bfaeeb6a8821276c25736f632a189e33001f56c4e455246b708e8
|
7
|
+
data.tar.gz: 5d5f4ee6cf48ee3bf4fd14a6bc7a7fb7c25085e4dd6cbfd4614eb70ca9dc19ac2efceb782f570e0a39e46ef103f3b0917f56cd4ef45d74b76e7bb67b37280709
|
@@ -58,7 +58,7 @@ module I18n
|
|
58
58
|
@translations ||= {}
|
59
59
|
@translations[locale] ||= begin
|
60
60
|
@cache_times[locale] = Time.now
|
61
|
-
Translation.all_for_locale(locale)
|
61
|
+
Translation.all_for_locale(locale).group_by(&:key)
|
62
62
|
end
|
63
63
|
@translations[locale]
|
64
64
|
end
|
@@ -66,7 +66,7 @@ module I18n
|
|
66
66
|
def lookup(locale, key, scope = [], options = {})
|
67
67
|
key = normalize_flat_keys(locale, key, scope, options[:separator])
|
68
68
|
result = if @preload_all
|
69
|
-
fetch_all_translations(locale)
|
69
|
+
fetch_all_translations(locale)[key] || []
|
70
70
|
else
|
71
71
|
Translation.locale(locale).lookup(key).all
|
72
72
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: i18n-sequel_bitemporal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Tron
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -106,3 +106,4 @@ test_files:
|
|
106
106
|
- test/sequel_test.rb
|
107
107
|
- test/test_helper.rb
|
108
108
|
- test/test_setup.rb
|
109
|
+
has_rdoc:
|