locale_kit 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +35 -0
  4. data/Rakefile +34 -0
  5. data/app/assets/config/locale_kit_manifest.js +1 -0
  6. data/app/assets/stylesheets/locale_kit/application.css +15 -0
  7. data/app/controllers/locale_kit/application_controller.rb +4 -0
  8. data/app/helpers/locale_kit/application_helper.rb +3 -0
  9. data/app/views/layouts/locale_kit/application.html.erb +14 -0
  10. data/config/routes.rb +3 -0
  11. data/lib/generators/locale_kit.rb +13 -0
  12. data/lib/generators/locale_kit/controller/USAGE +8 -0
  13. data/lib/generators/locale_kit/controller/controller_generator.rb +31 -0
  14. data/lib/generators/locale_kit/controller/templates/controller.yml +11 -0
  15. data/lib/generators/locale_kit/controller/templates/view.yml +11 -0
  16. data/lib/generators/locale_kit/install/USAGE +8 -0
  17. data/lib/generators/locale_kit/install/install_generator.rb +28 -0
  18. data/lib/generators/locale_kit/install/templates/app.yml +2 -0
  19. data/lib/generators/locale_kit/mailer/USAGE +8 -0
  20. data/lib/generators/locale_kit/mailer/mailer_generator.rb +30 -0
  21. data/lib/generators/locale_kit/mailer/templates/locale.yml +11 -0
  22. data/lib/generators/locale_kit/model/USAGE +8 -0
  23. data/lib/generators/locale_kit/model/model_generator.rb +38 -0
  24. data/lib/generators/locale_kit/model/templates/locale.yml +10 -0
  25. data/lib/generators/locale_kit/override/action_controller.rb +16 -0
  26. data/lib/generators/locale_kit/override/action_mailer.rb +9 -0
  27. data/lib/generators/locale_kit/override/active_record.rb +9 -0
  28. data/lib/locale_kit.rb +30 -0
  29. data/lib/locale_kit/config.rb +15 -0
  30. data/lib/locale_kit/engine.rb +17 -0
  31. data/lib/locale_kit/version.rb +4 -0
  32. data/lib/tasks/locale_kit_tasks.rake +5 -0
  33. metadata +145 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: cad57dffcc8fc54c538c4fd5e3f0b890e5f4026b
4
+ data.tar.gz: 330aac41759c4773b76b5df8ca77a66cf1ea4aeb
5
+ SHA512:
6
+ metadata.gz: 849fad4ac735c566b1391f17a6f5b5fad5b0a9c3963d12a82edec42e923ffa15d783809a8bb2247a9309a3d4363d79e550a962ce26c2d5aeeb1e74bd638156f7
7
+ data.tar.gz: ec8b1fe11c1884ab3afa6a61c9d30513f59a84c5ebd5370774a37bfa7eeaad4d414ef2c217b43a1dae67a1c5d21dad7eacb120ac9e885f7f74141baf6a0ebc74
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2017 Sho Kusano
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # LocaleKit
2
+
3
+ Provides new convention of locales and useful generators for Rails components.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'locale_kit'
11
+ ```
12
+
13
+ Download and install by running:
14
+
15
+ ```bash
16
+ $ bundle install
17
+ ```
18
+
19
+ Initialize the `app/locales` directory with:
20
+
21
+ ```bash
22
+ $ ./bin/rails locale_kit:install
23
+ ```
24
+
25
+ ## Contributing
26
+
27
+ 1. Fork it ( https://github.com/space-pirates/locale_kit/fork )
28
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
29
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
30
+ 4. Push to the branch (`git push origin my-new-feature`)
31
+ 5. Create a new Pull Request
32
+
33
+ ## License
34
+
35
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+ begin
3
+ require 'bundler/setup'
4
+ rescue LoadError
5
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ end
7
+
8
+ require 'rdoc/task'
9
+
10
+ RDoc::Task.new(:rdoc) do |rdoc|
11
+ rdoc.rdoc_dir = 'rdoc'
12
+ rdoc.title = 'LocaleKit'
13
+ rdoc.options << '--line-numbers'
14
+ rdoc.rdoc_files.include('README.md')
15
+ rdoc.rdoc_files.include('lib/**/*.rb')
16
+ end
17
+
18
+ APP_RAKEFILE = File.expand_path('../test/dummy/Rakefile', __FILE__)
19
+ load 'rails/tasks/engine.rake'
20
+
21
+ load 'rails/tasks/statistics.rake'
22
+
23
+ require 'bundler/gem_tasks'
24
+
25
+ require 'rake/testtask'
26
+
27
+ Rake::TestTask.new(:test) do |t|
28
+ t.libs << 'lib'
29
+ t.libs << 'test'
30
+ t.pattern = 'test/**/*_test.rb'
31
+ t.verbose = false
32
+ end
33
+
34
+ task default: :test
@@ -0,0 +1 @@
1
+ //= link_directory ../stylesheets/locale_kit .css
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
+ * files in this directory. Styles in this file should be added after the last require_* statement.
11
+ * It is generally better to create a new file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+ class LocaleKit::ApplicationController < ActionController::Base
3
+ protect_from_forgery with: :exception
4
+ end
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+ module LocaleKit::ApplicationHelper
3
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Locale kit</title>
5
+ <%= stylesheet_link_tag "locale_kit/application", media: "all" %>
6
+ <%= javascript_include_tag "locale_kit/application" %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
data/config/routes.rb ADDED
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+ LocaleKit::Engine.routes.draw do
3
+ end
@@ -0,0 +1,13 @@
1
+ require 'rails/generators/named_base'
2
+
3
+ module LocaleKit
4
+ module Generators
5
+ class Base < ::Rails::Generators::NamedBase
6
+ private
7
+
8
+ def locale_dir
9
+ Rails.root.join(LocaleKit.config.directory)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Genrate locale files for a your controller
3
+
4
+ Example:
5
+ rails generate locale_kit:controller Thing
6
+
7
+ This will create:
8
+ app/locales/controllers/thing/{available_locales}.yml
@@ -0,0 +1,31 @@
1
+ require 'generators/locale_kit'
2
+
3
+ class LocaleKit::Generators::ControllerGenerator < LocaleKit::Generators::Base
4
+ source_root File.expand_path('../templates', __FILE__)
5
+
6
+ argument(:actions, type: :array, default: [], banner: 'action action')
7
+
8
+ def copy_example_locale_file
9
+ I18n.available_locales.each do |locale|
10
+ self.current_locale = locale
11
+ template('controller.yml', locale_dir.join('controllers', *class_path, file_name, "#{locale}.yml"))
12
+ template('view.yml', locale_dir.join('views', *class_path, file_name, "#{locale}.yml"))
13
+ end
14
+ end
15
+
16
+ private
17
+
18
+ attr_accessor :current_locale
19
+
20
+ def namespaces
21
+ (class_path + [file_name + '_mailer'])
22
+ end
23
+
24
+ def locale_namespace
25
+ namespaces.map.with_index(1) { |name, idx| (' ' * idx) + name + ':' }.join("\n")
26
+ end
27
+
28
+ def action_names
29
+ actions.map(&:to_s)
30
+ end
31
+ end
@@ -0,0 +1,11 @@
1
+ <%= current_locale %>:
2
+ <%= locale_namespace %>
3
+ <% if action_names.empty? -%>
4
+ <%= " " * (namespaces.size + 1) %>action_name:
5
+ <%= " " * (namespaces.size + 2) %>key: "value"
6
+ <%- else -%>
7
+ <% action_names.each do |action_name| -%>
8
+ <%= " " * (namespaces.size + 1) %><%= action_name %>:
9
+ <%= " " * (namespaces.size + 2) %>key: "value"
10
+ <% end -%>
11
+ <%- end -%>
@@ -0,0 +1,11 @@
1
+ <%= current_locale %>:
2
+ <%= locale_namespace %>
3
+ <% if action_names.empty? -%>
4
+ <%= " " * (namespaces.size + 1) %>view_name:
5
+ <%= " " * (namespaces.size + 2) %>key: "value"
6
+ <%- else -%>
7
+ <% action_names.each do |action_name| -%>
8
+ <%= " " * (namespaces.size + 1) %><%= action_name %>:
9
+ <%= " " * (namespaces.size + 2) %>title: "<%= action_name.classify %>"
10
+ <% end -%>
11
+ <%- end -%>
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Create locales files to your application
3
+
4
+ Example:
5
+ rails generate locale_kit:install
6
+
7
+ This will create:
8
+ app/locales
@@ -0,0 +1,28 @@
1
+ require 'generators/locale_kit'
2
+
3
+ class LocaleKit::Generators::InstallGenerator < ::Rails::Generators::Base
4
+ source_root File.expand_path('../templates', __FILE__)
5
+
6
+ def create_locale_dir
7
+ empty_directory(locale_dir)
8
+ end
9
+
10
+ def copy_example_locale_file
11
+ I18n.available_locales.each do |locale|
12
+ self.current_locale = locale
13
+ template('app.yml', locale_dir.join("#{locale}.yml"))
14
+ end
15
+ end
16
+
17
+ private
18
+
19
+ attr_accessor :current_locale
20
+
21
+ def locale_dir
22
+ Rails.root.join(LocaleKit.config.directory)
23
+ end
24
+
25
+ def app_name
26
+ Rails.application.class.parent_name.underscore
27
+ end
28
+ end
@@ -0,0 +1,2 @@
1
+ <%= current_locale %>:
2
+ application: "<%= app_name %>"
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Generate locales for your mailer
3
+
4
+ Example:
5
+ rails generate locale_kit:mailer Thing
6
+
7
+ This will create:
8
+ app/locales/mailers/thing/en.yml
@@ -0,0 +1,30 @@
1
+ require 'generators/locale_kit'
2
+
3
+ class LocaleKit::Generators::MailerGenerator < LocaleKit::Generators::Base
4
+ source_root File.expand_path('../templates', __FILE__)
5
+
6
+ argument(:actions, type: :array, default: [], banner: 'method method')
7
+
8
+ def copy_example_locale_file
9
+ I18n.available_locales.each do |locale|
10
+ self.current_locale = locale
11
+ template('locale.yml', locale_dir.join('mailers', *class_path, file_name, "#{locale}.yml"))
12
+ end
13
+ end
14
+
15
+ private
16
+
17
+ attr_accessor :current_locale
18
+
19
+ def namespaces
20
+ (class_path + [file_name])
21
+ end
22
+
23
+ def locale_namespace
24
+ namespaces.map.with_index(1) { |name, idx| (' ' * idx) + name + ':' }.join("\n")
25
+ end
26
+
27
+ def action_names
28
+ actions.map(&:to_s)
29
+ end
30
+ end
@@ -0,0 +1,11 @@
1
+ <%= current_locale %>:
2
+ <%= locale_namespace %>
3
+ <% if action_names.empty? -%>
4
+ <%= " " * (namespaces.size + 1) %>action_name:
5
+ <%= " " * (namespaces.size + 2) %>subject: "Subject"
6
+ <%- else -%>
7
+ <% action_names.each do |action_name| -%>
8
+ <%= " " * (namespaces.size + 1) %><%= action_name %>:
9
+ <%= " " * (namespaces.size + 2) %>subject: "<%= action_name.classify %>"
10
+ <% end -%>
11
+ <%- end -%>
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Generate locales for your model
3
+
4
+ Example:
5
+ rails generate locale_kit:model Thing
6
+
7
+ This will create:
8
+ app/locales/models/thing/en.yml
@@ -0,0 +1,38 @@
1
+ require 'generators/locale_kit'
2
+
3
+ class LocaleKit::Generators::ModelGenerator < LocaleKit::Generators::Base
4
+ source_root File.expand_path('../templates', __FILE__)
5
+
6
+ argument(:attributes, type: :array, default: [], banner: 'field:type field:type')
7
+
8
+ def copy_example_locale_file
9
+ I18n.available_locales.each do |locale|
10
+ self.current_locale = locale
11
+ template('locale.yml', locale_dir.join('models', *class_path, file_name, "#{locale}.yml"))
12
+ end
13
+ end
14
+
15
+ private
16
+
17
+ attr_accessor :current_locale
18
+
19
+ def model_type
20
+ defined?(ActiveRecord) ? :activerecord : :activemodel
21
+ end
22
+
23
+ def namespaces
24
+ (class_path + [file_name])
25
+ end
26
+
27
+ def locale_namespace
28
+ namespaces.map.with_index(1) { |name, idx| (' ' * idx) + name + ':' }.join("\n")
29
+ end
30
+
31
+ def model_name
32
+ (class_path + [file_name]).join('/')
33
+ end
34
+
35
+ def attribute_names
36
+ attributes.map(&:name)
37
+ end
38
+ end
@@ -0,0 +1,10 @@
1
+ <%= current_locale %>:
2
+ <%= model_type %>:
3
+ models:
4
+ <%= model_name %>: "<%= file_name.classify %>"
5
+ attributes:
6
+ <%= model_name %>:
7
+ id: "ID"
8
+ <% attribute_names.each do |attr_name| -%>
9
+ <%= attr_name %>: "<%= attr_name.classify %>"
10
+ <% end -%>
@@ -0,0 +1,16 @@
1
+ require 'rails/generators/rails/controller/controller_generator'
2
+ require 'rails/generators/rails/scaffold_controller/scaffold_controller_generator'
3
+
4
+ module Rails
5
+ module Generators
6
+ class ControllerGenerator
7
+ hook_for :locale_kit, as: :controller, type: :boolean, default: true
8
+ end
9
+
10
+ class ScaffoldControllerGenerator
11
+ hook_for :locale_kit, as: :controller, type: :boolean, default: true do |invoked|
12
+ invoke invoked, [controller_name]
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,9 @@
1
+ require 'rails/generators/mailer/mailer_generator'
2
+
3
+ module Rails
4
+ module Generators
5
+ class MailerGenerator
6
+ hook_for :locale_kit, as: :mailer, type: :boolean, default: true
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'rails/generators/active_record/model/model_generator'
2
+
3
+ module ActiveRecord
4
+ module Generators
5
+ class ModelGenerator
6
+ hook_for :locale_kit, as: :model, type: :boolean, default: true
7
+ end
8
+ end
9
+ end
data/lib/locale_kit.rb ADDED
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+ require 'locale_kit/version'
3
+ require 'locale_kit/config'
4
+
5
+ module LocaleKit
6
+ def app
7
+ Rails.application
8
+ end
9
+ module_function :app
10
+
11
+ def config
12
+ @config ||= LocaleKit::Config.instance
13
+ end
14
+ module_function :config
15
+
16
+ def locales
17
+ Dir[app.root.join(config.directory, '**', '*.{yml,rb}')]
18
+ end
19
+ module_function :locales
20
+
21
+ def reload!
22
+ I18n.load_path = (I18n.load_path + locales).uniq
23
+ I18n.backend.reload!
24
+
25
+ config.logger.try(:info, 'Reloaded locales by LocaleKit')
26
+ end
27
+ module_function :reload!
28
+ end
29
+
30
+ require 'locale_kit/engine' if defined?(Rails)
@@ -0,0 +1,15 @@
1
+ require 'singleton'
2
+
3
+ class LocaleKit::Config
4
+ include Singleton
5
+
6
+ def directory
7
+ @directory ||= File.join('app', 'locales')
8
+ end
9
+ attr_writer :directory
10
+
11
+ def logger
12
+ @logger ||= Rails.logger
13
+ end
14
+ attr_writer :logger
15
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+ class LocaleKit::Engine < ::Rails::Engine
3
+ isolate_namespace LocaleKit
4
+
5
+ config.locale_kit = LocaleKit.config
6
+
7
+ generators do |app|
8
+ Rails::Generators.configure!(app.config.generators)
9
+ require 'generators/locale_kit/override/action_controller' if defined?(ActionController)
10
+ require 'generators/locale_kit/override/active_record' if defined?(ActiveRecord)
11
+ require 'generators/locale_kit/override/action_mailer' if defined?(ActionMailer)
12
+ end
13
+
14
+ config.to_prepare do
15
+ LocaleKit.reload!
16
+ end
17
+ end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+ module LocaleKit
3
+ VERSION = '0.0.1'.freeze
4
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+ # desc "Explaining what the task does"
3
+ # task :locale_kit do
4
+ # # Task goes here
5
+ # end
metadata ADDED
@@ -0,0 +1,145 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: locale_kit
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Sho Kusano
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-04-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 5.0.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 5.0.2
27
+ - !ruby/object:Gem::Dependency
28
+ name: i18n
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: sqlite3
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: Improve locales convention of Rails
84
+ email:
85
+ - sho-kusano@space-pirates.jp
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - MIT-LICENSE
91
+ - README.md
92
+ - Rakefile
93
+ - app/assets/config/locale_kit_manifest.js
94
+ - app/assets/stylesheets/locale_kit/application.css
95
+ - app/controllers/locale_kit/application_controller.rb
96
+ - app/helpers/locale_kit/application_helper.rb
97
+ - app/views/layouts/locale_kit/application.html.erb
98
+ - config/routes.rb
99
+ - lib/generators/locale_kit.rb
100
+ - lib/generators/locale_kit/controller/USAGE
101
+ - lib/generators/locale_kit/controller/controller_generator.rb
102
+ - lib/generators/locale_kit/controller/templates/controller.yml
103
+ - lib/generators/locale_kit/controller/templates/view.yml
104
+ - lib/generators/locale_kit/install/USAGE
105
+ - lib/generators/locale_kit/install/install_generator.rb
106
+ - lib/generators/locale_kit/install/templates/app.yml
107
+ - lib/generators/locale_kit/mailer/USAGE
108
+ - lib/generators/locale_kit/mailer/mailer_generator.rb
109
+ - lib/generators/locale_kit/mailer/templates/locale.yml
110
+ - lib/generators/locale_kit/model/USAGE
111
+ - lib/generators/locale_kit/model/model_generator.rb
112
+ - lib/generators/locale_kit/model/templates/locale.yml
113
+ - lib/generators/locale_kit/override/action_controller.rb
114
+ - lib/generators/locale_kit/override/action_mailer.rb
115
+ - lib/generators/locale_kit/override/active_record.rb
116
+ - lib/locale_kit.rb
117
+ - lib/locale_kit/config.rb
118
+ - lib/locale_kit/engine.rb
119
+ - lib/locale_kit/version.rb
120
+ - lib/tasks/locale_kit_tasks.rake
121
+ homepage: https://github.com/space-priates/locale_kit
122
+ licenses:
123
+ - MIT
124
+ metadata: {}
125
+ post_install_message:
126
+ rdoc_options: []
127
+ require_paths:
128
+ - lib
129
+ required_ruby_version: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ required_rubygems_version: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ requirements: []
140
+ rubyforge_project:
141
+ rubygems_version: 2.6.8
142
+ signing_key:
143
+ specification_version: 4
144
+ summary: Improve locales convention of Rails
145
+ test_files: []