i18n-tasks 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a4e945701c214bce20eae1f33712a492c7fc5a4
4
- data.tar.gz: 6d0c3c00118605d0fa155c892303a5bd0aa9992b
3
+ metadata.gz: 2a78b228c86e2754c4974f8312f0b8ae895c7418
4
+ data.tar.gz: c5e9356a3f3758bd1dd4a82c401460982698f479
5
5
  SHA512:
6
- metadata.gz: 4b08ab8e84bb4854b609fb3de6029d72941663cca91afa35d08c321df38602a25b3605b6418641d72b06c08af812d951cf0ed6661ca55f645b26c12f92172869
7
- data.tar.gz: c800186476d035a8a256afb7981123e879e46d744719e62f7bfe9ec61465c872193426f8222a24b4615e8e1dc92d82106201882c7e1b7c73280213a100b626ff
6
+ metadata.gz: 43bd0d3d15ce89ab8addc91f44b2661e51163eb61ae4200ba7f7afbbbd64c91f1b0acd07164a71391d4ff1e84a0d9264a314a118c529611c97feb95f01bac4ad
7
+ data.tar.gz: 3a8f419113d5ce08bec4e9a92fa2e75aa7d8ecca0de4b4f4d017c315cb97aa89c547c1435b1bb5394f8491cd025902beced940e56f27329f1392adba328809f6
data/CHANGES.md CHANGED
@@ -5,6 +5,7 @@
5
5
  ## v0.3.0
6
6
 
7
7
  * 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.
8
+ * Works faster on Rails as it doesn't load anything but the gem, but now requires `base_locale` and `locales` to be set in config.
8
9
 
9
10
  ## v0.2.21..v0.2.22
10
11
 
data/README.md CHANGED
@@ -1,6 +1,12 @@
1
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)
2
2
 
3
- Tasks to manage translations in ruby applications using I18n.
3
+ The default model of i18n key management in frameworks such as Rails is broken.
4
+
5
+ If you use a key that does not exist, this will only blow up at runtime. Keys left over from removed code accumulate
6
+ in the resource files, introducing unnecessary overhead on the translators.
7
+ Translation files can quickly turn to disarray.
8
+
9
+ i18n-tasks improves this by using static analysis.
4
10
 
5
11
  <img width="534" height="288" src="https://raw.github.com/glebm/i18n-tasks/master/doc/img/i18n-tasks.png">
6
12
 
@@ -9,7 +15,7 @@ Tasks to manage translations in ruby applications using I18n.
9
15
  1. Add to Gemfile:
10
16
 
11
17
  ```ruby
12
- gem 'i18n-tasks', '~> 0.3.0'
18
+ gem 'i18n-tasks', '~> 0.3.2'
13
19
  ```
14
20
 
15
21
  2. Create a config file at `config/i18n-tasks.yml`:
@@ -45,15 +51,7 @@ Available commands:
45
51
  See `<command> --help` for more information on a specific command.
46
52
  ```
47
53
 
48
- There are reports for `missing` and `unused` translations:
49
-
50
- ```bash
51
- i18n-tasks missing
52
- i18n-tasks unused
53
- ```
54
-
55
- Add missing values, generated from the key (for base locale) or copied from the base locale (for other locales).
56
-
54
+ You can add missing values, generated from the key (for base locale) or copied from the base locale (for other locales).
57
55
  To add missing values to the base locale only:
58
56
 
59
57
  ```bash
@@ -32,5 +32,3 @@ module I18n
32
32
  end
33
33
  end
34
34
  end
35
-
36
- require 'i18n/tasks/railtie' if defined?(Rails)
@@ -1,5 +1,5 @@
1
1
  module I18n
2
2
  module Tasks
3
- VERSION = '0.3.2'
3
+ VERSION = '0.3.3'
4
4
  end
5
5
  end
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.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebm