activerecord-mlang 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5555a62efbf7ed5c505ad84b2e2e421fc588cd80
4
+ data.tar.gz: 8cd01e6540ee00978aa4a9a45243ef0dd859bbce
5
+ SHA512:
6
+ metadata.gz: 1ca584999e7910b178a10078def5e267dad694bf399b1c7ad14a45cf928cff58711c52a3863842aacee8254343dac4fb90baf8932075a88913250828c8e2fcad
7
+ data.tar.gz: de7f217879dff548936c18e6c0b6f59740dd91beb88a1a1a093b578d70063fa7c874cdf17613b0a777428810e19e0e975e1844433ed33b7a186268ccb675c52a
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ /vendor
11
+ /db
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --no-color
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.0
4
+ before_install: gem install bundler -v 1.10.3
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ source 'https://rubygems.org'
2
+
3
+ if ENV['ACTIVE_RECORD_VERSION']
4
+ gem 'activerecord', ENV['ACTIVE_RECORD_VERSION']
5
+ end
6
+
7
+ # Specify your gem's dependencies in activerecord-mlang.gemspec
8
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Shinjiro Itagaki
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,60 @@
1
+ # Activerecord::Mlang
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/activerecord/mlang`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'activerecord-mlang'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install activerecord-mlang
20
+
21
+ ## Usage
22
+
23
+ Create migration file
24
+
25
+ $ rake db:mlang:create
26
+
27
+ Migration file is Created
28
+
29
+ db/migrate/20150725061913_create_langs_table.rb
30
+
31
+ Do migration
32
+
33
+ $ rake db:migrate
34
+
35
+ Include Modules
36
+
37
+ class DummyClass < ActiveRecord::Base
38
+ include ActiveRecord::Mlang
39
+ end
40
+
41
+ class DummyClassText < ActiveRecord::Base
42
+ include ActiveRecord::MlangText
43
+ end
44
+
45
+
46
+ ## Development
47
+
48
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
49
+
50
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
51
+
52
+ ## Contributing
53
+
54
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/activerecord-mlang. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
55
+
56
+
57
+ ## License
58
+
59
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
60
+
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,38 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'activerecord/mlang/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "activerecord-mlang"
8
+ spec.version = Activerecord::Mlang::VERSION
9
+ spec.authors = ["Shinjiro Itagaki"]
10
+ spec.email = ["ishinjiroster@gmail.com"]
11
+
12
+ spec.summary = %q{Extension for multi language of active-record.}
13
+ spec.description = %q{Extension for multi language of active-record.}
14
+ spec.homepage = "https://github.com/baseball-bridge/activerecord-mlang"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
+ # delete this section to allow pushing this gem to any host.
19
+ if spec.respond_to?(:metadata)
20
+ # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
23
+ end
24
+
25
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
+ spec.bindir = "exe"
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ["lib"]
29
+
30
+ spec.add_development_dependency "bundler", "~> 1.10"
31
+ spec.add_development_dependency "rake", "~> 10.0"
32
+ spec.add_development_dependency "rspec"
33
+ spec.add_development_dependency "rails"
34
+ spec.add_development_dependency "sqlite3"
35
+
36
+ spec.add_dependency 'activerecord'
37
+ spec.add_dependency 'i18n'
38
+ end
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "activerecord/mlang"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,24 @@
1
+ require "active_record/mlang"
2
+ module ActiveRecord
3
+ module Mlang
4
+ class Lang < ActiveRecord::Base
5
+ include ActiveRecord::Mlang
6
+ # def self.drop_table!
7
+ # connection.schema_cache.clear_table_cache!(table_name)
8
+ # connection.drop_table table_name
9
+ # end
10
+
11
+ # def self.create_table!
12
+ # connection.schema_cache.clear_table_cache!(table_name)
13
+ # connection.create_table table_name do |t|
14
+ # t.string :code, null: false, limit: 5
15
+ # t.boolean :east, null: false, default: false
16
+ # t.integer :position , default: 1 , null: false
17
+ # t.boolean :enable, null: false, default: true
18
+ # t.timestamps
19
+ # end
20
+ # connection.add_index table_name, [:code], unique: true
21
+ # end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,23 @@
1
+ require "active_record/mlang"
2
+ module ActiveRecord
3
+ module Mlang
4
+ class LangText < ActiveRecord::Base
5
+ include ActiveRecord::Mlang::Text
6
+ # def self.drop_table!
7
+ # connection.schema_cache.clear_table_cache!(table_name)
8
+ # connection.drop_table table_name
9
+ # end
10
+
11
+ # def self.create_table!
12
+ # connection.schema_cache.clear_table_cache!(table_name)
13
+ # connection.create_table table_name do |t|
14
+ # t.integer :parent_id, null: false
15
+ # t.integer :lang_id, null: false
16
+ # t.string :label
17
+ # t.timestamps
18
+ # end
19
+ # connection.add_index table_name, [:parent_id,:lang_id], unique: true
20
+ # end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,11 @@
1
+ require 'rails/railtie'
2
+
3
+ module ActiveRecord
4
+ module Mlang
5
+ class Railtie < ::Rails::Railtie
6
+ rake_tasks do
7
+ load "tasks/mlang.rake"
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,52 @@
1
+ module ActiveRecord
2
+ module Mlang
3
+ module Text
4
+ def self.included(base)
5
+ base.extend ClassMethods
6
+ base.belongs_to :lang
7
+ base.set_parent_reflection
8
+ end
9
+
10
+ module ClassMethods
11
+ def parent_class_name(parent_class_name=nil)
12
+ if parent_class_name
13
+ self.parent_class_name = parent_class_name
14
+ else
15
+ @parent_class_name || self.name.gsub(/Text$/,'')
16
+ end
17
+ end
18
+
19
+ def parent_class_name=(parent_class_name)
20
+ @parent_class_name = parent_class_name.to_s
21
+ set_parent_reflection
22
+ self
23
+ end
24
+
25
+ def parent_fkey(parent_fkey=nil)
26
+ if parent_fkey
27
+ self.parent_fkey = parent_fkey
28
+ else
29
+ @parent_fkey || :parent_id
30
+ end
31
+ end
32
+
33
+ def parent_fkey=(parent_fkey)
34
+ @parent_fkey = parent_fkey
35
+ set_parent_reflection
36
+ self
37
+ end
38
+
39
+ def set_parent_reflection
40
+ belongs_to :parent, class_name: self.parent_class_name, foreign_key: self.parent_fkey
41
+ if p = self.parent_ && p.respond_to?(:set_text_reflection)
42
+ p.set_text_reflection
43
+ end
44
+ end
45
+
46
+ def parent_ # parent is used
47
+ self.parent_class_name.safe_constantize
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,63 @@
1
+ require "active_record"
2
+ require "activerecord/mlang/version"
3
+ require "active_record/mlang/text"
4
+
5
+ module ActiveRecord
6
+ module Mlang
7
+ def self.included(base)
8
+ base.extend ClassMethods
9
+ base.set_text_reflection if base.text
10
+ end
11
+
12
+ module ClassMethods
13
+ def text_class_name(text_class_name=nil)
14
+ if text_class_name
15
+ self.text_class_name = text_class_name
16
+ end
17
+ @text_class_name || (self.name + "Text")
18
+ end
19
+
20
+ def text_class_name=(text_class_name)
21
+ @text_class_name = text_class_name
22
+ self.set_text_reflection
23
+ end
24
+
25
+ def text
26
+ self.text_class_name.safe_constantize
27
+ end
28
+
29
+ def has_text?
30
+ !!self.text
31
+ end
32
+
33
+ def text_attrs(*args)
34
+ args.each do |arg|
35
+ define_method(arg.to_sym){
36
+ self.text.__send__(arg)
37
+ }
38
+ end
39
+ end
40
+
41
+ def has_many_fkey
42
+ if self.text
43
+ self.text.parent_fkey
44
+ else
45
+ :parent_id
46
+ end
47
+ end
48
+
49
+ def set_text_reflection
50
+ has_many :texts, class_name: self.text_class_name, foreign_key: self.has_many_fkey
51
+ end
52
+ end
53
+
54
+ def text(locale=nil)
55
+ locale ||= I18n.default_locale
56
+ texts.find_or_create_by(lang_id: Lang[locale].id)
57
+ end
58
+ end
59
+ end
60
+
61
+ require 'active_record/mlang/lang'
62
+ require 'active_record/mlang/lang_text'
63
+ require 'active_record/mlang/railtie' if defined?(Rails)
@@ -0,0 +1,5 @@
1
+ module Activerecord
2
+ module Mlang
3
+ VERSION = "0.0.2"
4
+ end
5
+ end
@@ -0,0 +1 @@
1
+ require "active_record/mlang"
@@ -0,0 +1,46 @@
1
+ require 'rails'
2
+ require 'rails/generators'
3
+ require 'rails/generators/active_record'
4
+
5
+ module ActiveRecord
6
+ module Generators
7
+ class MlangMigrationGenerator < Base
8
+ source_root File.expand_path("../templates", __FILE__)
9
+ argument :name, :type => :string, :default => "create_langs_table"
10
+
11
+ def self.task_create
12
+ raise 'Task unavailable to this database (no migration support)' unless ActiveRecord::Base.connection.supports_migrations?
13
+ Rails.application.load_generators if Rails.application
14
+ ActiveRecord::Generators::MlangMigrationGenerator.start [ ENV['MIGRATION'] || 'create_langs_table' ]
15
+ end
16
+
17
+ def self.task_clear
18
+ ActiveRecord::Base.connection.execute "DELETE FROM #{ActiveRecord::Mlang::Lang.table_name};"
19
+ ActiveRecord::Base.connection.execute "DELETE FROM #{ActiveRecord::Mlang::LangText.table_name};"
20
+ end
21
+
22
+ def create_migration_file
23
+ migration_template "migration.rb", "db/migrate/#{file_name}.rb"
24
+ end
25
+
26
+ protected
27
+
28
+ def lang_table_name
29
+ current_table_name = ActiveRecord::Mlang::Lang.table_name
30
+ if current_table_name == 'lang' || current_table_name == 'langs'
31
+ current_table_name = ActiveRecord::Base.pluralize_table_names ? 'langs' : 'lang'
32
+ end
33
+ current_table_name
34
+ end
35
+
36
+ def lang_text_table_name
37
+ current_table_name = ActiveRecord::Mlang::LangText.table_name
38
+ if current_table_name == 'lang_text' || current_table_name == 'lang_texts'
39
+ current_table_name = ActiveRecord::Base.pluralize_table_names ? 'lang_texts' : 'lang_text'
40
+ end
41
+ current_table_name
42
+ end
43
+
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,20 @@
1
+ class <%= migration_class_name %> < ActiveRecord::Migration
2
+ def change
3
+ create_table :<%= lang_table_name %> do |t|
4
+ t.string :code, null: false, limit: 5
5
+ t.boolean :east, null: false, default: false
6
+ t.integer :position , default: 1 , null: false
7
+ t.boolean :enable, null: false, default: true
8
+ t.timestamps
9
+ end
10
+ add_index :<%= lang_table_name %>, [:code], unique: true
11
+
12
+ create_table :<%= lang_text_table_name %> do |t|
13
+ t.integer :parent_id, null: false
14
+ t.integer :lang_id, null: false
15
+ t.string :label
16
+ t.timestamps
17
+ end
18
+ add_index :<%= lang_text_table_name %>, [:parent_id,:lang_id], unique: true
19
+ end
20
+ end
@@ -0,0 +1,14 @@
1
+ #
2
+ # copy from activerecord-session_store
3
+ namespace 'db:mlang' do
4
+ desc "Creates a langs migration for use with ActiveRecord::Mlang"
5
+ task create: [:environment, 'db:load_config'] do
6
+ require 'generators/active_record/mlang_migration_generator'
7
+ ActiveRecord::Generators::MlangMigrationGenerator.task_create
8
+ end
9
+
10
+ # desc "Clear the langs table"
11
+ # task clear: [:environment, 'db:load_config'] do
12
+ # ActiveRecord::Generators::MlangMigrationGenerator.task_clear
13
+ # end
14
+ end
metadata ADDED
@@ -0,0 +1,163 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: activerecord-mlang
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Shinjiro Itagaki
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-07-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.10'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.10'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
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: rails
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: sqlite3
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
+ - !ruby/object:Gem::Dependency
84
+ name: activerecord
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: i18n
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: Extension for multi language of active-record.
112
+ email:
113
+ - ishinjiroster@gmail.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".gitignore"
119
+ - ".rspec"
120
+ - ".travis.yml"
121
+ - CODE_OF_CONDUCT.md
122
+ - Gemfile
123
+ - LICENSE.txt
124
+ - README.md
125
+ - Rakefile
126
+ - activerecord-mlang.gemspec
127
+ - bin/console
128
+ - bin/setup
129
+ - lib/active_record/mlang.rb
130
+ - lib/active_record/mlang/lang.rb
131
+ - lib/active_record/mlang/lang_text.rb
132
+ - lib/active_record/mlang/railtie.rb
133
+ - lib/active_record/mlang/text.rb
134
+ - lib/activerecord/mlang.rb
135
+ - lib/activerecord/mlang/version.rb
136
+ - lib/generators/active_record/mlang_migration_generator.rb
137
+ - lib/generators/active_record/templates/migration.rb
138
+ - lib/tasks/mlang.rake
139
+ homepage: https://github.com/baseball-bridge/activerecord-mlang
140
+ licenses:
141
+ - MIT
142
+ metadata: {}
143
+ post_install_message:
144
+ rdoc_options: []
145
+ require_paths:
146
+ - lib
147
+ required_ruby_version: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ required_rubygems_version: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - ">="
155
+ - !ruby/object:Gem::Version
156
+ version: '0'
157
+ requirements: []
158
+ rubyforge_project:
159
+ rubygems_version: 2.4.5
160
+ signing_key:
161
+ specification_version: 4
162
+ summary: Extension for multi language of active-record.
163
+ test_files: []