mongoid_i18n_rails 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.rdoc +34 -2
- data/{rails/locale → config/locales}/mongoid-en.yml +0 -0
- data/{rails/locale → config/locales}/mongoid-pt-BR.yml +0 -0
- data/lib/mongoid_i18n_rails.rb +1 -1
- data/lib/mongoid_i18n_rails/engine.rb +4 -0
- data/lib/mongoid_i18n_rails/version.rb +1 -1
- metadata +7 -22
- data/lib/mongoid_i18n_rails/railtie.rb +0 -12
- data/lib/tasks/mongoid_i18n_rails_tasks.rake +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f6968054e28669125e49008d477b0565838da50
|
4
|
+
data.tar.gz: b7e4017ab838a6c30bdee25035b84e39a205d653
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac5136d5e4a726d2524b9165794a921760bf6d54b78c7552f89ae5a1e33fb453c8e5e6b36e9329607b836ba86fb6b4d515ab7f73dbfd3d158fdbb957a473b456
|
7
|
+
data.tar.gz: 933d6b7d627993e4db9ef80a64ae7a14a4850c422f654204e0ecb5c56b1135b3ac4e721b13e8fbd545aa8d8d7371a56cc735edbe94daeb1881bed369f8216ada
|
data/README.rdoc
CHANGED
@@ -1,3 +1,35 @@
|
|
1
|
-
=
|
1
|
+
= Mongoid I18n Rails
|
2
|
+
|
3
|
+
Provide locale data for {mongoid 4}[http://mongoid.org/en/mongoid/index.html] i18n on RoR 4.
|
4
|
+
|
5
|
+
== Gem installation
|
6
|
+
|
7
|
+
Add to your Gemfile:
|
8
|
+
|
9
|
+
gem 'mongoid_i18n_rails', '~> 0.0.5'
|
10
|
+
|
11
|
+
or run this command:
|
12
|
+
|
13
|
+
gem install mongoid_i18n_rails -v '~> 0.0.5'
|
14
|
+
|
15
|
+
== Available Locales
|
16
|
+
|
17
|
+
Available locales are:
|
18
|
+
|
19
|
+
en, pt-BR
|
20
|
+
|
21
|
+
We always welcome your contributions!
|
22
|
+
|
23
|
+
== See also
|
24
|
+
|
25
|
+
* {rails-i18n the core inspiration for this project and readme}[https://github.com/svenfuchs/rails-i18n]
|
26
|
+
* {devise-i18n}[https://github.com/tigrish/devise-i18n]
|
27
|
+
* {will-paginate-i18n}[https://github.com/tigrish/will-paginate-i18n]
|
28
|
+
* {i18n-country-translation}[https://github.com/onomojo/i18n-country-translations] for translations of country names
|
29
|
+
* {i18n-spec}[https://github.com/tigrish/i18n-spec] for RSpec matchers to test your locale files
|
30
|
+
* {iso}[https://github.com/tigrish/iso] for the list of valid language/region codes and their translations
|
31
|
+
|
32
|
+
== License
|
33
|
+
|
34
|
+
{MIT}[https://github.com/svenfuchs/rails-i18n/blob/master/MIT-LICENSE.txt]
|
2
35
|
|
3
|
-
This project rocks and uses MIT-LICENSE.
|
File without changes
|
File without changes
|
data/lib/mongoid_i18n_rails.rb
CHANGED
metadata
CHANGED
@@ -1,43 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_i18n_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leandro Moreira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: i18n
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0.6'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0.6'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: railties
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
30
16
|
requirements:
|
31
17
|
- - "~>"
|
32
18
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
19
|
+
version: '3.0'
|
34
20
|
type: :runtime
|
35
21
|
prerelease: false
|
36
22
|
version_requirements: !ruby/object:Gem::Requirement
|
37
23
|
requirements:
|
38
24
|
- - "~>"
|
39
25
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
26
|
+
version: '3.0'
|
41
27
|
description: Provides i18n for mongoid 4 for Rails 4.
|
42
28
|
email:
|
43
29
|
- leandro.ribeiro.moreira@gmail.com
|
@@ -48,12 +34,11 @@ files:
|
|
48
34
|
- MIT-LICENSE
|
49
35
|
- README.rdoc
|
50
36
|
- Rakefile
|
37
|
+
- config/locales/mongoid-en.yml
|
38
|
+
- config/locales/mongoid-pt-BR.yml
|
51
39
|
- lib/mongoid_i18n_rails.rb
|
52
|
-
- lib/mongoid_i18n_rails/
|
40
|
+
- lib/mongoid_i18n_rails/engine.rb
|
53
41
|
- lib/mongoid_i18n_rails/version.rb
|
54
|
-
- lib/tasks/mongoid_i18n_rails_tasks.rake
|
55
|
-
- rails/locale/mongoid-en.yml
|
56
|
-
- rails/locale/mongoid-pt-BR.yml
|
57
42
|
homepage: https://github.com/leandromoreira/mongoid-i18n
|
58
43
|
licenses:
|
59
44
|
- MIT
|
@@ -1,12 +0,0 @@
|
|
1
|
-
require 'rails'
|
2
|
-
|
3
|
-
module MongoidI18nRails
|
4
|
-
class Railtie < ::Rails::Railtie #:nodoc:
|
5
|
-
initializer 'mongoid-i18n-rails' do |app|
|
6
|
-
["rails/locale/mongoid-en.yml", "rails/locale/mongoid-pt-BR.yml"].each do |pattern|
|
7
|
-
files = Dir[File.join(File.dirname(__FILE__), '../..', pattern)]
|
8
|
-
I18n.load_path.concat(files)
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|