hstore_translate 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +25 -17
- data/README.md +1 -1
- data/lib/hstore_translate/translates.rb +1 -0
- data/lib/hstore_translate/version.rb +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
@@ -1,36 +1,44 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
hstore_translate (0.0.
|
5
|
-
activerecord (
|
4
|
+
hstore_translate (0.0.6)
|
5
|
+
activerecord (= 4.0.0.rc1)
|
6
6
|
activerecord-postgres-hstore (~> 0.7.0)
|
7
7
|
pg
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: http://rubygems.org/
|
11
11
|
specs:
|
12
|
-
activemodel (
|
13
|
-
activesupport (=
|
14
|
-
builder (~> 3.
|
15
|
-
activerecord (
|
16
|
-
activemodel (=
|
17
|
-
|
18
|
-
|
19
|
-
|
12
|
+
activemodel (4.0.0.rc1)
|
13
|
+
activesupport (= 4.0.0.rc1)
|
14
|
+
builder (~> 3.1.0)
|
15
|
+
activerecord (4.0.0.rc1)
|
16
|
+
activemodel (= 4.0.0.rc1)
|
17
|
+
activerecord-deprecated_finders (~> 1.0.2)
|
18
|
+
activesupport (= 4.0.0.rc1)
|
19
|
+
arel (~> 4.0.0)
|
20
|
+
activerecord-deprecated_finders (1.0.2)
|
20
21
|
activerecord-postgres-hstore (0.7.6)
|
21
22
|
activerecord (>= 3.1)
|
22
23
|
pg-hstore (>= 1.1.5)
|
23
24
|
rake
|
24
|
-
activesupport (
|
25
|
-
i18n (
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
25
|
+
activesupport (4.0.0.rc1)
|
26
|
+
i18n (~> 0.6, >= 0.6.4)
|
27
|
+
minitest (~> 4.2)
|
28
|
+
multi_json (~> 1.3)
|
29
|
+
thread_safe (~> 0.1)
|
30
|
+
tzinfo (~> 0.3.37)
|
31
|
+
arel (4.0.0)
|
32
|
+
atomic (1.1.9)
|
33
|
+
builder (3.1.4)
|
34
|
+
i18n (0.6.4)
|
35
|
+
minitest (4.7.4)
|
36
|
+
multi_json (1.7.6)
|
31
37
|
pg (0.15.1)
|
32
38
|
pg-hstore (1.1.7)
|
33
39
|
rake (10.0.3)
|
40
|
+
thread_safe (0.1.0)
|
41
|
+
atomic
|
34
42
|
tzinfo (0.3.37)
|
35
43
|
|
36
44
|
PLATFORMS
|
data/README.md
CHANGED
@@ -89,7 +89,7 @@ config.i18n.fallbacks = true
|
|
89
89
|
Sven Fuchs wrote a [detailed explanation of the fallback
|
90
90
|
mechanism](https://github.com/svenfuchs/i18n/wiki/Fallbacks).
|
91
91
|
|
92
|
-
##
|
92
|
+
## Temporarily disable fallbacks
|
93
93
|
|
94
94
|
If you've enabled fallbacks for missing translations, you probably want to disable
|
95
95
|
them in the admin interface to display which translations the user still has to
|
@@ -49,6 +49,7 @@ module HstoreTranslate
|
|
49
49
|
def write_hstore_translation(attr_name, value, locale = I18n.locale)
|
50
50
|
translation_store = "#{attr_name}_translations"
|
51
51
|
translations = send(translation_store) || {}
|
52
|
+
send("#{translation_store}_will_change!") unless translations[locale.to_s] == value
|
52
53
|
translations[locale.to_s] = value
|
53
54
|
send("#{translation_store}=", translations)
|
54
55
|
value
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hstore_translate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-06-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|