globalize-automatic 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/globalize/automatic/translation.rb +1 -0
- data/lib/globalize/automatic/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf5bcd61d7ad01026364b5fcac671c138fe47d39
|
4
|
+
data.tar.gz: 6cd2b43e8cdaf082cc51d66ca2381d135b2b0221
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17173e61a7b20329d7b2f89bf4db51a8a4fb551a0c2e1b43a8babba614f29aeb9667919c59b158678e1a82ee675833cf0760294f7f4fa9d7c10373e35754aaf5
|
7
|
+
data.tar.gz: f89ecd89130d6ededed31cd5963e6b025c59931bf6fbb59221f70b4bdf9d926600e12070f45e35d069b5c637f6e6909fc127200bddff663a8619604c2f2d1f13
|
@@ -21,6 +21,7 @@ class Globalize::Automatic::Translation < ActiveRecord::Base
|
|
21
21
|
|
22
22
|
def translate(attr_name)
|
23
23
|
if automatically_for?(attr_name)
|
24
|
+
save if new_record?
|
24
25
|
Globalize::Automatic.asynchronously ?
|
25
26
|
Globalize::Automatic::TranslationJob.perform_later(self, attr_name.to_s) :
|
26
27
|
Globalize::Automatic::TranslationJob.perform_now(self, attr_name.to_s)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: globalize-automatic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuichi Takeuchi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: globalize
|
@@ -136,6 +136,20 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rspec-activemodel-mocks
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
139
153
|
description: Provides support for using automatic translation gems with Globalize.
|
140
154
|
email:
|
141
155
|
- info@takeyu-web.com
|