i18n-tasks 0.2.17 → 0.2.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/i18n/tasks/google_translation.rb +1 -1
- data/lib/i18n/tasks/source_keys.rb +1 -1
- data/lib/i18n/tasks/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d8b32afd36de7f95edb7b696439d71775e4242e
|
4
|
+
data.tar.gz: 7c83f28761bdaa616d7f4503282449b9bb7dae82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a80884892f57a9778da4b9c426dd2fc56a986952fe1120e2329e19e603cef1c31faea8e2ae676611108fbe3a908ccc2b0ea226b37c872f12152ee8d6fe6c40d
|
7
|
+
data.tar.gz: fdac4affb85d252326acf8f25adf35b903263fc90089399d504e751ad0637519e1a7a38a08919406e76becd924d6953610a003fc3019e5785e13eabda573f2ad
|
@@ -25,7 +25,7 @@ You can obtain the key at https://code.google.com/apis/console.')
|
|
25
25
|
translated.each_with_index { |translation, i|
|
26
26
|
if (original = list[i][1]) =~ INTERPOLATION_KEY_RE
|
27
27
|
interpolation_keys = original.scan(INTERPOLATION_KEY_RE)
|
28
|
-
i = -1; translation.gsub!(UNTRANSLATABLE_STRING) { interpolation_keys[i += 1] }
|
28
|
+
i = -1; translation.gsub!(Regexp.new(UNTRANSLATABLE_STRING, Regexp::IGNORECASE)) { interpolation_keys[i += 1] }
|
29
29
|
end
|
30
30
|
}
|
31
31
|
list.map(&:first).zip(translated)
|
@@ -10,7 +10,7 @@ module I18n::Tasks::SourceKeys
|
|
10
10
|
|
11
11
|
def scanner
|
12
12
|
@scanner ||= begin
|
13
|
-
search_config = config[:search].with_indifferent_access
|
13
|
+
search_config = (config[:search] || {}).with_indifferent_access
|
14
14
|
class_name = search_config[:scanner] || '::I18n::Tasks::Scanners::PatternScanner'
|
15
15
|
class_name.constantize.new search_config.merge(relative_roots: relative_roots)
|
16
16
|
end
|
data/lib/i18n/tasks/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: i18n-tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- glebm
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|