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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71eb33551bdba0845058a33b51764557c0b89291
4
- data.tar.gz: 9862fb16302f5ba2f1fac1cde23fc17e1d745d22
3
+ metadata.gz: bf5bcd61d7ad01026364b5fcac671c138fe47d39
4
+ data.tar.gz: 6cd2b43e8cdaf082cc51d66ca2381d135b2b0221
5
5
  SHA512:
6
- metadata.gz: 6450461d008e368860c2e51c55def714f95151d1bc5956f9e1935f814979f8521ab8f4207ab62f88ba17f2c0ec72aff41be04187c9f1d2f686d82b6bb194637d
7
- data.tar.gz: 4a7f159688a01035211d3f88067fa33662af6542a1edc0961f80b2a633110de715166b59e8847f058f20444b6b09a10a39b2a691cba70314f468ff74b1c3b6e6
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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Globalize
4
4
  module Automatic
5
- VERSION = '0.0.8'
5
+ VERSION = '0.0.9'
6
6
  end
7
7
  end
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.8
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-01-24 00:00:00.000000000 Z
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