translations_sync 0.4.12 → 0.4.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/translations_sync.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 801a60a0da7235319e73255bacd40bde11cdd7b8
|
4
|
+
data.tar.gz: d9239d14432b943871cd245f4166f5f54b8d9a70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4de1ea944b4379456e6d6f0a7aa1f3f9ffd0852e583330e97ae136585c926634e3285f846b0c88d49b19f88c31a0a25a24742d420019d518f9a43bb05e5dc72d
|
7
|
+
data.tar.gz: e9a06445eb4d099bcef02e5321b840b01b483e30f2496bcd0da053fe334490278296813d0c6fe15cfc69cabae4843213df0c821531c275fce6ff1c10efb3d47a
|
data/lib/translations_sync.rb
CHANGED
@@ -89,8 +89,8 @@ class TranslationsSync
|
|
89
89
|
acc
|
90
90
|
end
|
91
91
|
|
92
|
-
translations_path_re = Regexp.new "#{translations_dir}(\\/[a-z]{2}(?:-[A-Z]{2})?)?\\/[-_/0-9a-zA-Z]
|
93
|
-
I18n.load_path.find do
|
92
|
+
translations_path_re = Regexp.new "#{translations_dir}(\\/[a-z]{2}(?:-[A-Z]{2})?)?\\/[-_/0-9a-zA-Z]+?(?:(_|\\.)[a-z]{2}(?:-[A-Z]{2})?)?\\.(?:yml|rb)\\Z"
|
93
|
+
I18n.load_path.find do |path|
|
94
94
|
path.match translations_path_re
|
95
95
|
end
|
96
96
|
@prefix = $1 or @separator = $2
|