i18n-tasks 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +1 -1
- data/README.md +2 -3
- data/lib/i18n/tasks/translation_data.rb +2 -2
- 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: 8450eafca8f0cbffefa8b34ff0a3418b96798310
|
4
|
+
data.tar.gz: f68636e26f49cc27d285ee7d23c0eb94f407ea22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 419092e4764354330ed956e7d400d250316be9cb3bba46a023affc67b9e1e01fe4dd266ffabb390e5506e31a7b35bd0225e659b551eab79848997566f640dbdb
|
7
|
+
data.tar.gz: ef5ff0ee61e3bf68f282eea0afd4b21a3605d82dc58f8a423f824694b5d547d2dc3718b1dadf5e19f1e12d9a5baa6b1cdb86f360ea8b085abc7e9e3ff1e63640
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
## v0.3.0
|
2
2
|
|
3
|
-
* i18n-tasks
|
3
|
+
* i18n-tasks is a binary now (instead of rake tasks). All tasks / commands now accept various options, and there is no need for as many of them as before.
|
4
4
|
|
5
5
|
## v0.2.21..v0.2.22
|
6
6
|
|
data/README.md
CHANGED
@@ -1,9 +1,8 @@
|
|
1
|
-
# i18n-tasks [![Build Status](https://travis-ci.org/glebm/i18n-tasks.png?branch=master)](https://travis-ci.org/glebm/i18n-tasks) [![Coverage Status](https://coveralls.io/repos/glebm/i18n-tasks/badge.png?branch=master)](https://coveralls.io/r/glebm/i18n-tasks?branch=master) [![Code Climate](https://codeclimate.com/github/glebm/i18n-tasks.png)](https://codeclimate.com/github/glebm/i18n-tasks)
|
2
|
-
|
1
|
+
# i18n-tasks [![Build Status](https://travis-ci.org/glebm/i18n-tasks.png?branch=master)](https://travis-ci.org/glebm/i18n-tasks) [![Coverage Status](https://coveralls.io/repos/glebm/i18n-tasks/badge.png?branch=master)](https://coveralls.io/r/glebm/i18n-tasks?branch=master) [![Code Climate](https://codeclimate.com/github/glebm/i18n-tasks.png)](https://codeclimate.com/github/glebm/i18n-tasks) [![Flattr this](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=glebm&url=https%3A%2F%2Fgithub.com%2Fglebm%2Fi18n-tasks)
|
3
2
|
|
4
3
|
Tasks to manage translations in ruby applications using I18n.
|
5
4
|
|
6
|
-
|
5
|
+
<img width="534" height="288" src="https://raw.github.com/glebm/i18n-tasks/master/doc/img/i18n-tasks.png">
|
7
6
|
|
8
7
|
## Installation
|
9
8
|
|
@@ -17,13 +17,13 @@ module I18n::Tasks::TranslationData
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def non_base_locales(from = nil)
|
20
|
-
from = self.locales unless from
|
20
|
+
from = self.locales unless from
|
21
21
|
Array(from) - [base_locale]
|
22
22
|
end
|
23
23
|
|
24
24
|
# write to store, normalizing all data
|
25
25
|
def normalize_store!(from = nil)
|
26
|
-
from = self.locales unless from
|
26
|
+
from = self.locales unless from
|
27
27
|
Array(from).each do |target_locale|
|
28
28
|
# the store itself handles normalization
|
29
29
|
data[target_locale] = data[target_locale]
|
data/lib/i18n/tasks/version.rb
CHANGED