i18n-tasks 0.2.18 → 0.2.19

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: 3d8b32afd36de7f95edb7b696439d71775e4242e
4
- data.tar.gz: 7c83f28761bdaa616d7f4503282449b9bb7dae82
3
+ metadata.gz: c8a1d39250f5a17141d7e2ef77087cfbb2350723
4
+ data.tar.gz: 4c24ee7926d87036337ef73c85fd19963f512c9c
5
5
  SHA512:
6
- metadata.gz: 5a80884892f57a9778da4b9c426dd2fc56a986952fe1120e2329e19e603cef1c31faea8e2ae676611108fbe3a908ccc2b0ea226b37c872f12152ee8d6fe6c40d
7
- data.tar.gz: fdac4affb85d252326acf8f25adf35b903263fc90089399d504e751ad0637519e1a7a38a08919406e76becd924d6953610a003fc3019e5785e13eabda573f2ad
6
+ metadata.gz: fda620af8e5ed8bb3481d2aa64f7961086eed48ad8958f28f54df723bec60e35f2ad006f01d33e9a51abdd0ce1bf338741c9959cc1c5d286e6f93a8026f6d1c1
7
+ data.tar.gz: 8f971a9e3024f79310958b5701e9ec255fb14278e3e90464338c42a097cc5fbcbfeaa3e8455975ad5651fc0ceb494f7a5f6c88bce37eecb3d387f8d1871547ce
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.2.17..v0.2.18
2
+
3
+ * Bugfixes
4
+
1
5
  ## v0.2.16
2
6
 
3
7
  * Key search extracted into its own class, and a custom scanner can now be provided.
data/README.md CHANGED
@@ -16,12 +16,6 @@ rake i18n:missing
16
16
  rake i18n:unused
17
17
  ```
18
18
 
19
- You can also export missing and unused data to XLSX though there is no importer yet:
20
-
21
- ```bash
22
- rake i18n:spreadsheet_report
23
- ```
24
-
25
19
  To remove unused translations run:
26
20
 
27
21
  ```bash
@@ -34,10 +28,8 @@ To add the keys that are not in the base locale but detected in the source do:
34
28
 
35
29
  ```bash
36
30
  # add missing keys to the base locale data (I18n.default_locale)
37
- # values set to key.humanize
31
+ # values set to to the optional [argument] or key.humanize
38
32
  rake i18n:add_missing
39
- # or set all values to the task argument
40
- rake i18n:add_missing[OhNoesMissing]
41
33
  ```
42
34
 
43
35
  Prefill empty translations using Google Translate ([more below on the API key](#translation-config)).
@@ -243,9 +235,18 @@ describe 'translation keys' do
243
235
  end
244
236
  ```
245
237
 
246
- ## HTML report
238
+ ## XLSX
239
+
240
+ Export missing and unused data to XLSX:
241
+
242
+ ```bash
243
+ rake i18n:spreadsheet_report
244
+ ```
245
+
246
+
247
+ ## HTML
247
248
 
248
- While i18n-tasks does not provide an HTML version of the report, it's easy to roll your own, see [the example](https://gist.github.com/glebm/6887030).
249
+ While i18n-tasks does not provide an HTML version of the report, you can add [one like this](https://gist.github.com/glebm/6887030).
249
250
 
250
251
  ---
251
252
 
data/i18n-tasks.gemspec CHANGED
@@ -14,7 +14,9 @@ Gem::Specification.new do |s|
14
14
  and prefill missing keys. Supports relative and plural keys and Google Translate.
15
15
  }
16
16
  s.homepage = 'https://github.com/glebm/i18n-tasks'
17
- s.metadata = { 'issue_tracker' => 'https://github.com/glebm/i18n-tasks' }
17
+ if s.respond_to?(:metadata=)
18
+ s.metadata = { 'issue_tracker' => 'https://github.com/glebm/i18n-tasks' }
19
+ end
18
20
  s.license = 'MIT'
19
21
 
20
22
  s.files = `git ls-files`.split($/) - %w(doc/img/i18n-tasks.gif)
@@ -1,5 +1,5 @@
1
1
  module I18n
2
2
  module Tasks
3
- VERSION = '0.2.18'
3
+ VERSION = '0.2.19'
4
4
  end
5
5
  end
@@ -18,17 +18,17 @@ namespace :i18n do
18
18
 
19
19
  namespace :missing do
20
20
  desc 'keys present in code but not existing in base locale data'
21
- task :not_in_base => 'i18n:setup' do
21
+ task :not_in_base => 'i18n:setup' do |t, args|
22
22
  i18n_report.missing_translations i18n_tasks.keys_not_in_base_info
23
23
  end
24
24
 
25
25
  desc 'keys present but with value same as in base locale'
26
- task :eq_base, [:locales] => 'i18n:setup' do
26
+ task :eq_base, [:locales] => 'i18n:setup' do |t, args|
27
27
  i18n_report.missing_translations i18n_tasks.keys_eq_base_info(i18n_parse_locales args[:locales])
28
28
  end
29
29
 
30
30
  desc 'keys that exist in base locale but are blank in passed locales'
31
- task :blank, [:locales] => 'i18n:setup' do
31
+ task :blank, [:locales] => 'i18n:setup' do |t, args|
32
32
  i18n_report.missing_translations i18n_tasks.keys_eq_base_info(i18n_parse_locales args[:locales])
33
33
  end
34
34
  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.18
4
+ version: 0.2.19
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-14 00:00:00.000000000 Z
11
+ date: 2014-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake