i18n-tasks 0.0.5 → 0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a588b5fcc4c85ab519a9cf45074cbc8d5f77511e
4
- data.tar.gz: b9d6327dfce3a34fe6c5621cc3075c121533786b
3
+ metadata.gz: 44720a334107603e5ebb7fc2c579dedaf2187b12
4
+ data.tar.gz: 544cc1eac74d0e503bfc4251b8de2f6349013ec9
5
5
  SHA512:
6
- metadata.gz: 345f4b4255b47573f1ab42d02414bae76223d9c7e6978106701ccc325417aa5203275863b6f8b927a572ebfd64d1d07241a79932a7b53f65c3d34a780e90b535
7
- data.tar.gz: 8a612fad25cf93919596ffba6f1fe9d07a80f91b52267872ac6d85bd1c4f21fce36b89141725f0051cd1aa3a525e86fd30ff8e74c37a199edfc7c06e3b9cb7fc
6
+ metadata.gz: 1c7c8c3304432ef68a539bea0ec9bddc5c1cd5674c7113f31cbbc5c263b291af69aa79e1621307c69707fd7bbadf98d95cb4add710dd476e88b864d2ee0af4c9
7
+ data.tar.gz: 0af4770fb9a6345f8b3859731d39ce73346a3f0d0ae4421f9b900a4baf16926171865504eb54a23c1eda151a1eefce72ef73e47e160b1aa539990e620ebf21ed
@@ -44,7 +44,7 @@ module I18n
44
44
  @ignored_patterns ||= begin
45
45
  if File.exists?(IGNORE_FILE)
46
46
  File.read(IGNORE_FILE).split("\n").map {|k|
47
- k.split('#')[0].strip.presence
47
+ k.split('#')[0].try(:strip).presence
48
48
  }.compact.uniq
49
49
  else
50
50
  []
@@ -1,5 +1,5 @@
1
1
  module I18n
2
2
  module Tasks
3
- VERSION = '0.0.5'
3
+ VERSION = '0.0.6'
4
4
  end
5
5
  end
@@ -46,8 +46,9 @@ describe 'rake i18n' do
46
46
  'config/locales/en.yml' => {'en' => en_data}.to_yaml,
47
47
  'config/locales/es.yml' => {'es' => es_data}.to_yaml,
48
48
  '.i18nignore' => <<-TEXT,
49
- ignored_missing_key.a # one key to ignore
50
- ignored_pattern. # ignore the whole pattern
49
+ ignored_missing_key.a # one key to ignore
50
+
51
+ ignored_pattern. # ignore the whole pattern
51
52
  TEXT
52
53
  'app/views/index.html.slim' => <<-SLIM,
53
54
  p \#{t('ca.a')} \#{t 'ca.b'} \#{t "ca.c"}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebm