i18n-migrations 2.0.5 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/i18n/migrations/migrator.rb +7 -0
- data/lib/i18n/migrations/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 274cc2afe088dd6f3222a02373b5e7cffe919a49aa927a837bc73170f06ad4e9
|
4
|
+
data.tar.gz: 15bae7e096587080bab7333d8ec2e6cb5e6c94e664ade5f62b67dc5fed284673
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b346021869b4ac4c8fb89c0798589bd9102380181d6c5b0c2bce095a5bbf249c1d1447227714dff46fa4534e7fdc90688ef8d1ebbc8a6e23b72dd370390941c
|
7
|
+
data.tar.gz: 444444d2a9ee2f2e0fa60330a1505f01746b7e1eadd6e8f2dc662f10c22f94ead1ad5a7b91d623d4536177b5c15d2a6667b77c9b3977a8bf7fe4bad45451270a
|
@@ -123,6 +123,13 @@ end
|
|
123
123
|
&block)
|
124
124
|
locale_names = name == 'all' ? all_locale_names : [name]
|
125
125
|
|
126
|
+
# do the main locale first, so we aren't updating it and reading it for other locales at the same time
|
127
|
+
if locale_names.include?(config.main_locale)
|
128
|
+
locale_names -= [config.main_locale]
|
129
|
+
|
130
|
+
report_locale_on_error(locale_for(config.main_locale), &block)
|
131
|
+
end
|
132
|
+
|
126
133
|
if async
|
127
134
|
puts "Using #{concurrency} concurrency"
|
128
135
|
locale_names.each_slice(concurrency) do |some_locale_names|
|