i18n-tasks 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +4 -0
  3. data/README.md +1 -1
  4. data/lib/i18n/tasks.rb +1 -0
  5. data/lib/i18n/tasks/command_error.rb +1 -0
  6. data/lib/i18n/tasks/commands.rb +1 -0
  7. data/lib/i18n/tasks/commands_base.rb +1 -0
  8. data/lib/i18n/tasks/configuration.rb +1 -0
  9. data/lib/i18n/tasks/data.rb +1 -0
  10. data/lib/i18n/tasks/data/adapter/json_adapter.rb +1 -0
  11. data/lib/i18n/tasks/data/adapter/yaml_adapter.rb +1 -0
  12. data/lib/i18n/tasks/data/file_formats.rb +1 -0
  13. data/lib/i18n/tasks/data/file_system.rb +1 -0
  14. data/lib/i18n/tasks/data/file_system_base.rb +1 -0
  15. data/lib/i18n/tasks/data/router/conservative_router.rb +1 -0
  16. data/lib/i18n/tasks/data/router/pattern_router.rb +1 -0
  17. data/lib/i18n/tasks/data/tree/traversal.rb +1 -0
  18. data/lib/i18n/tasks/file_structure.rb +1 -0
  19. data/lib/i18n/tasks/fill_tasks.rb +1 -0
  20. data/lib/i18n/tasks/google_translation.rb +1 -0
  21. data/lib/i18n/tasks/ignore_keys.rb +1 -0
  22. data/lib/i18n/tasks/key.rb +1 -0
  23. data/lib/i18n/tasks/key/key_group.rb +1 -0
  24. data/lib/i18n/tasks/key/match_pattern.rb +1 -0
  25. data/lib/i18n/tasks/key/usages.rb +1 -0
  26. data/lib/i18n/tasks/key_group.rb +1 -0
  27. data/lib/i18n/tasks/key_pattern_matching.rb +1 -0
  28. data/lib/i18n/tasks/logging.rb +1 -0
  29. data/lib/i18n/tasks/missing_keys.rb +1 -0
  30. data/lib/i18n/tasks/plural_keys.rb +1 -0
  31. data/lib/i18n/tasks/relative_keys.rb +1 -0
  32. data/lib/i18n/tasks/reports/spreadsheet.rb +1 -0
  33. data/lib/i18n/tasks/scanners/base_scanner.rb +1 -0
  34. data/lib/i18n/tasks/scanners/pattern_scanner.rb +1 -0
  35. data/lib/i18n/tasks/scanners/pattern_with_scope_scanner.rb +1 -0
  36. data/lib/i18n/tasks/used_keys.rb +1 -0
  37. data/lib/i18n/tasks/version.rb +2 -1
  38. data/spec/conservative_router_spec.rb +1 -0
  39. data/spec/file_system_data_spec.rb +1 -0
  40. data/spec/fixtures/app/controllers/events_controller.rb +1 -0
  41. data/spec/google_translate_spec.rb +1 -0
  42. data/spec/key_group_spec.rb +1 -0
  43. data/spec/key_pattern_matching_spec.rb +1 -1
  44. data/spec/locale_tree/siblings_spec.rb +1 -0
  45. data/spec/pattern_scanner_spec.rb +1 -0
  46. data/spec/plural_keys_spec.rb +1 -0
  47. data/spec/readme_spec.rb +1 -0
  48. data/spec/relative_keys_spec.rb +1 -0
  49. data/spec/spec_helper.rb +1 -0
  50. data/spec/support/capture_std.rb +1 -0
  51. data/spec/support/fixtures.rb +1 -0
  52. data/spec/support/test_codebase.rb +1 -0
  53. data/spec/support/trees.rb +1 -0
  54. data/spec/used_keys_spec.rb +1 -0
  55. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c36031ff1ffa5b67ffd68c4fc5375f4508598eff
4
- data.tar.gz: 1dec92e192b4f30d33ba4411a69c55cb09ff542e
3
+ metadata.gz: 1fc0724b7e7b8840f7043fed0dbe4057f344a81d
4
+ data.tar.gz: 074fcc2b73960b4f0558c983a43a363831ea76a0
5
5
  SHA512:
6
- metadata.gz: 636e7c94c6890519aa730e7b1aa13a8dba0c9d323c0b59214dc9474bf39fff80266267a770e41974eff888f7805fc59be63c1d3873094558d23319a13f1eb344
7
- data.tar.gz: ce2e60ac8f14d31357a9508a9160f7cd2eb308e3c5df0793156b22fbcd160356188a40eb3a7d215f2894c23893510e6068dcb8461f60159654e0fdc2afaeba1e
6
+ metadata.gz: ee3d14aecdad57a50957879f5b54ca48557f133aacfaa957ac6dc4a9ff118e5e22cafb2fbc511f46250b0003611ac83d8c09d435edbc2e3437bb14cdaa756ddc
7
+ data.tar.gz: d371fcbb050c80fa44bf3bf9db7fbaba474c30296a24b001f8f91b1e7069778ba904660b8d4ba14d0c075ddcb00dcb9722aedc156587b64a7fc8978c86dde1f9
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.3
2
+
3
+ * Ruby 1.9 compatibility
4
+
1
5
  ## 0.4.2
2
6
 
3
7
  * Ruby 1.9.3-compatible again
data/README.md CHANGED
@@ -18,7 +18,7 @@ i18n-tasks can be used with any project using [i18n][i18n-gem] (default in Rails
18
18
  Add to Gemfile:
19
19
 
20
20
  ```ruby
21
- gem 'i18n-tasks', '~> 0.4.2'
21
+ gem 'i18n-tasks', '~> 0.4.3'
22
22
  ```
23
23
 
24
24
  i18n-tasks does not load or execute any of the application's code but performs static-only analysic.
data/lib/i18n/tasks.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  # define all the modules to be able to use ::
2
3
  module I18n
3
4
  module Tasks
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  module I18n
2
3
  module Tasks
3
4
  class CommandError < StandardError
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'i18n/tasks/commands_base'
2
3
  require 'i18n/tasks/reports/terminal'
3
4
  require 'i18n/tasks/reports/spreadsheet'
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'ostruct'
2
3
  module I18n::Tasks
3
4
  class CommandsBase
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  module I18n::Tasks::Configuration
2
3
  # i18n-tasks config (defaults + config/i18n-tasks.yml)
3
4
  # @return [Hash{String => String,Hash,Array}]
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'i18n/tasks/data/file_system'
2
3
 
3
4
  module I18n::Tasks
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'json'
2
3
 
3
4
  module I18n::Tasks
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'yaml'
2
3
  module I18n::Tasks
3
4
  module Data
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'fileutils'
2
3
 
3
4
  module I18n
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'i18n/tasks/data/file_system_base'
2
3
  require 'i18n/tasks/data/adapter/json_adapter'
3
4
  require 'i18n/tasks/data/adapter/yaml_adapter'
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'i18n/tasks/data/tree/node'
2
3
  require 'i18n/tasks/data/router/pattern_router'
3
4
  require 'i18n/tasks/data/router/conservative_router'
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'i18n/tasks/data/router/pattern_router'
2
3
 
3
4
  module I18n::Tasks
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'i18n/tasks/key_pattern_matching'
2
3
  require 'i18n/tasks/data/tree/node'
3
4
 
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  module I18n::Tasks::Data::Tree
2
3
  # Any Enumerable that yields nodes can mix in this module
3
4
  module Traversal
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  module I18n::Tasks::FileStructure
2
3
  def identify(routes = data.config.read)
3
4
 
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  module I18n::Tasks::FillTasks
2
3
  def fill_missing_value(opts = {})
3
4
  opts = opts.merge(
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'easy_translate'
2
3
 
3
4
  module I18n::Tasks::GoogleTranslation
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  module I18n::Tasks::IgnoreKeys
2
3
  # whether to ignore the key
3
4
  # will also apply global ignore rules
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'i18n/tasks/key/key_group'
2
3
  require 'i18n/tasks/key/match_pattern'
3
4
  require 'i18n/tasks/key/usages'
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  module I18n
2
3
  module Tasks
3
4
  class Key
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  module I18n
2
3
  module Tasks
3
4
  class Key
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  module I18n
2
3
  module Tasks
3
4
  class Key
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'set'
2
3
  module I18n
3
4
  module Tasks
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  module I18n::Tasks::KeyPatternMatching
2
3
  MATCH_NOTHING = /\z\A/
3
4
 
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  module I18n::Tasks::Logging
2
3
  def warn_deprecated(message)
3
4
  log_stderr Term::ANSIColor.yellow Term::ANSIColor.bold "i18n-tasks: [DEPRECATED] #{message}"
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  module I18n::Tasks
2
3
  module MissingKeys
3
4
  # @param [:missing_from_base, :missing_from_locale, :eq_base] type (default nil)
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  module I18n::Tasks::PluralKeys
2
3
  PLURAL_KEY_RE = /\.(?:zero|one|two|few|many|other)$/
3
4
 
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  module I18n
2
3
  module Tasks
3
4
  module RelativeKeys
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'i18n/tasks/reports/base'
2
3
  require 'fileutils'
3
4
 
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'i18n/tasks/key_pattern_matching'
2
3
  require 'i18n/tasks/relative_keys'
3
4
  module I18n::Tasks::Scanners
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'i18n/tasks/scanners/base_scanner'
2
3
 
3
4
  module I18n::Tasks::Scanners
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'i18n/tasks/scanners/pattern_scanner'
2
3
 
3
4
  module I18n::Tasks::Scanners
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'find'
2
3
  require 'i18n/tasks/scanners/pattern_with_scope_scanner'
3
4
 
@@ -1,5 +1,6 @@
1
+ # coding: utf-8
1
2
  module I18n
2
3
  module Tasks
3
- VERSION = '0.4.2'
4
+ VERSION = '0.4.3'
4
5
  end
5
6
  end
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe 'Conservative router' do
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe 'File system i18n' do
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  class EventsController < ApplicationController
2
3
  def show
3
4
  redirect_to :edit, notice: I18n.t('cb.a')
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'spec_helper'
2
3
  require 'i18n/tasks/commands'
3
4
 
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe 'KeyGroup' do
@@ -61,4 +61,4 @@ describe 'Key pattern' do
61
61
  end
62
62
  end
63
63
  end
64
- end
64
+ end
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe 'Tree siblings / forest' do
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe 'Pattern Scanner' do
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe 'Plural keys' do
data/spec/readme_spec.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'spec_helper'
2
3
  describe 'README.md' do
3
4
  let(:readme) { File.read('README.md') }
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'spec_helper'
2
3
  describe 'Relative keys' do
3
4
  let(:scanner) { I18n::Tasks::Scanners::BaseScanner.new }
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  ENV['RAILS_ENV'] = ENV['RAKE_ENV'] = 'test'
2
3
 
3
4
  unless defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  module CaptureStd
2
3
  def capture_stderr
3
4
  err, $stderr = $stderr, StringIO.new
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  # quick'n'dirty fixture loader
2
3
  module FixturesSupport
3
4
  def fixtures_contents
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'fileutils'
2
3
  require 'yaml'
3
4
  require_relative 'capture_std'
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  module Trees
2
3
  def build_tree(hash)
3
4
  I18n::Tasks::Data::Tree::Siblings.from_nested_hash(hash)
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require 'spec_helper'
2
3
 
3
4
  describe 'UsedKeys' do
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.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-10 00:00:00.000000000 Z
11
+ date: 2014-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erubis