i18n-tasks 0.2.17 → 0.2.18

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f5078ec1751923ec5ebfcd79893a7bdca8ae618f
4
- data.tar.gz: e29ebefde17fdbefc0408452466e5f1a19a2be71
3
+ metadata.gz: 3d8b32afd36de7f95edb7b696439d71775e4242e
4
+ data.tar.gz: 7c83f28761bdaa616d7f4503282449b9bb7dae82
5
5
  SHA512:
6
- metadata.gz: 55359af166cef34bd9c4708a0a482d5107d54d347615172b39803559355d8738e6da03901562a509ae8b6474cdda7ee6b19d4044a1978520d7cee9e9d81bfacb
7
- data.tar.gz: a05eb27caad0776691685f6e70ce271084adf7ae4d71c97f1898736501ddd9b7a5a47627dd1f4623349764dd281aa6ef344aa763190ce38799d882bd565933f5
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
@@ -1,5 +1,5 @@
1
1
  module I18n
2
2
  module Tasks
3
- VERSION = '0.2.17'
3
+ VERSION = '0.2.18'
4
4
  end
5
5
  end
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.17
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-09 00:00:00.000000000 Z
11
+ date: 2014-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake