i18n-migrations 2.0.0 → 2.0.1

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
  SHA256:
3
- metadata.gz: 155eb3f6fe33497d8988ba301c6535df404f0d02c59cfaac034a77a169508d62
4
- data.tar.gz: 04a5b6dcc152e3ad7b7b88bc898acae8fc2fed122947a3ae1609edcdb6023e64
3
+ metadata.gz: 053d7282ee9ff71a5208ab798f26bc52545f0a6efea6122371e6a8fa1ab088d5
4
+ data.tar.gz: 92271dac44fff97ed25c200bd33ff0fbd000cdc391b54480a409763f87c4d43d
5
5
  SHA512:
6
- metadata.gz: 324c96c71807c3fb331a25742f84d82242a0c3ea0bd12f0df7cebe9a6bdd5e0261d7830cfd843e0debe50475a948347603a6a23d93efd2d610b054d251ecc782
7
- data.tar.gz: cb47a3ffd0fc1eae8a5b1b2e6996857c1b092f705112252818c9cb3d939246bc5711fa1357ef20e32c4243091fd59793544a7cd52c0cd295d9aca5a859585d58
6
+ metadata.gz: 67e99b9e00a2cfc83105c813e5bcd09aecdd89fb2314e7f8490d82bc3e730b098991bddf7b2ddfb0ed554a912922be2b61068399141dfe81b435ce92fffa8fef
7
+ data.tar.gz: '039751914e92608313ff570365910ce05472124e582711b67bf55382412f333d6e51c83109a34aae91f8d1c0b5866282886cc57b69146196165587244993e010'
@@ -20,11 +20,6 @@ module I18n
20
20
  force_push(locale)
21
21
  end
22
22
 
23
- # do this just once
24
- unless @migrations_synced
25
- sync_migrations(locale.migrations)
26
- @migrations_synced = true
27
- end
28
23
  pull(locale)
29
24
  end
30
25
 
@@ -34,6 +34,10 @@ module I18n
34
34
  @config.google_service_account_key_path).sheet
35
35
  end
36
36
 
37
+ def sync_migrations(migrations)
38
+ # nothing to do here in this backend
39
+ end
40
+
37
41
  def pull_from_sheet(sheet, locale)
38
42
  puts "Pulling #{locale.name}"
39
43
  data = {}
@@ -78,6 +78,7 @@ end
78
78
  end
79
79
 
80
80
  def push(locale_or_all, force = false)
81
+ backend.sync_migrations(new_migrations)
81
82
  each_locale(locale_or_all, concurrency: config.push_concurrency) do |locale|
82
83
  backend.push(locale, force: force)
83
84
  wait
@@ -104,7 +105,7 @@ end
104
105
  end
105
106
 
106
107
  private def each_locale(name = 'all',
107
- async: config.google_spreadsheet?,
108
+ async: true,
108
109
  concurrency: config.concurrency)
109
110
  locale_names = name == 'all' ? all_locale_names : [name]
110
111
 
@@ -1,5 +1,5 @@
1
1
  module I18n
2
2
  module Migrations
3
- VERSION = "2.0.0"
3
+ VERSION = "2.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n-migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Lightsmith