mongoid_i18n_rails 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a0d2aeb52549db406f5db13383d78b42c2561f6
4
- data.tar.gz: aa4ab1e8ea94347587150238553188e654d1a86f
3
+ metadata.gz: f67e59b4217e66292c8343de5792f86d9617a6fd
4
+ data.tar.gz: 1597ce8a35db2dccfbad98b0172023bd06810108
5
5
  SHA512:
6
- metadata.gz: 77ac7de5e5d14879f39c62f8b99bcec229dc4bcfeaaac86de8f27c90803978d519116ffb9242bf3e53e250f02b7cf129d53a0b8ee3faa2788198a51626b5c786
7
- data.tar.gz: 3710eede7825bbb916dc517d3d18c6250c9babdcf9cd3b88cb31328f099af7f5e9371547c32184cfd6420c78a49033d491adaea565578058675d5ae92bb78773
6
+ metadata.gz: 77dac5e4bb979119ae8bb739c3972ab86aef751c8c661bf0a5d6550a749b7b47674c2f4bb7b11490f7949e12db0d935f4d7c4984695ee9122ad06a92eabb6e5b
7
+ data.tar.gz: 495dafeeba4299793f12881c38e6ac3d0115d699a40ed6dc98c9f07a7b8ee01ca597717164c36b10ccc1cf05d596075f7d49b56fd909fadc2ca43a62d2cc90c9
@@ -0,0 +1,16 @@
1
+ require 'rails'
2
+
3
+ module MongoidI18nRails
4
+ class Railtie < ::Rails::Railtie #:nodoc:
5
+ initializer 'mongoid-i18n-rails' do |app|
6
+ add("rails/locale/mongoid-en.yml")
7
+ add("rails/locale/mongoid-pt-BR.yml")
8
+ end
9
+
10
+ protected
11
+ def self.add(pattern)
12
+ files = Dir[File.join(File.dirname(__FILE__), '../..', pattern)]
13
+ I18n.load_path.concat(files)
14
+ end
15
+ end
16
+ end
@@ -1,3 +1,3 @@
1
1
  module MongoidI18nRails
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -1,2 +1,4 @@
1
+ require 'mongoid_i18n_rails/railtie'
2
+
1
3
  module MongoidI18nRails
2
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_i18n_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Moreira
@@ -35,6 +35,7 @@ files:
35
35
  - README.rdoc
36
36
  - Rakefile
37
37
  - lib/mongoid_i18n_rails.rb
38
+ - lib/mongoid_i18n_rails/railtie.rb
38
39
  - lib/mongoid_i18n_rails/version.rb
39
40
  - lib/tasks/mongoid_i18n_rails_tasks.rake
40
41
  - rails/locale/mongoid-en.yml