i18n-tasks 0.2.8 → 0.2.9
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/CHANGES.md +3 -2
- data/README.md +1 -1
- data/lib/i18n/tasks/missing_keys.rb +1 -1
- data/lib/i18n/tasks/version.rb +1 -1
- 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: 1264889059f8de7a6a8c40a6dfb00416c3ee2286
|
4
|
+
data.tar.gz: 26e908eddb28eed053d793d5dfb855ce22233b5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc33b2dd662033c1add64d55a02c337d917d4a3c1eb205480fc035ba92990ff593afca1117810f25eee75843a7bb873b5cdc124f9114cb8dc5f53978828af43a
|
7
|
+
data.tar.gz: 671318d2d1e6a615960ea71890f20a5ce2999c3b4b5a393420e4a65f08f94cfe6e39059885aae5358ddf7e4fa3bebab174defb0fde164efc06ac878cbd17bb8d
|
data/CHANGES.md
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
-
## v0.2.5..0.2.
|
1
|
+
## v0.2.5..0.2.9
|
2
2
|
|
3
3
|
* config/i18n-tasks.yml now processed with ERB
|
4
4
|
* can now be used with any ruby apps, not just Rails
|
5
5
|
* more locale formats are considered valid
|
6
|
-
* i18n:missing accepts locales
|
6
|
+
* `i18n:missing` accepts locales
|
7
|
+
* `i18n:missing` supports plural keys
|
7
8
|
|
8
9
|
## v0.2.4
|
9
10
|
|
data/README.md
CHANGED
@@ -73,7 +73,7 @@ For more examples see [the tests](/spec/i18n_tasks_spec.rb).
|
|
73
73
|
Simply add to Gemfile:
|
74
74
|
|
75
75
|
```ruby
|
76
|
-
gem 'i18n-tasks', '~> 0.2.
|
76
|
+
gem 'i18n-tasks', '~> 0.2.9'
|
77
77
|
```
|
78
78
|
|
79
79
|
If you do not use Rails, you will also need to require the tasks in your Rakefile:
|
@@ -9,7 +9,7 @@ module I18n::Tasks::MissingKeys
|
|
9
9
|
# @return Array keys missing value (but present in base)
|
10
10
|
def keys_missing_value(locale)
|
11
11
|
traverse_map_if data[base_locale] do |key, base_value|
|
12
|
-
key if !key_value?(key, locale) && !
|
12
|
+
key if !ignore_key?(key, :missing) && !key_value?(key, locale) && !key_value?(depluralize_key(key), locale)
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
data/lib/i18n/tasks/version.rb
CHANGED