live-front-rails 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a03d60baa03e5f7887c945bc26c20bd8de32fc4f
4
- data.tar.gz: 28c43fa33f8cadb6e2206c68c08a61efe1a431bb
3
+ metadata.gz: 56246e399da94cc709cedba4d871227860de7277
4
+ data.tar.gz: ee5647238cd69a2a4afd38d7d775072f55e480f4
5
5
  SHA512:
6
- metadata.gz: eb51f292b6fab324cff286bcdd085342166880903f971f523705a782b8a1b74737af3dfe876f0599c328ff31970eb7d55491100de8d761790128b7cfcf983d49
7
- data.tar.gz: 843262ba0f60ee886ee34a42385159022396cc23a13b7824c0af426462ffe80b5423416f233447e681cfac0b9e0d9c63ac15d5847e9e3b676dfa626a07e96bd2
6
+ metadata.gz: 39457c74264ffbc5649e730b5cbded7381eb9662685d725afa1d9ff0430f581c2970eb9d4cfe88d91f5cab3dad07331d4f53c39da86b3f1635c79f7fb7e35505
7
+ data.tar.gz: 6efdb2a013cbcf5f2580aeec1f8d81501175e4f21be89a97936080015533d34b19ec461f429874165521786f85d23b69d2e9fa4d76c328fd06284989d09f7c5b
@@ -4,7 +4,7 @@ require 'live-front/tab_helper'
4
4
  require 'live-front/sign_in_form_helper'
5
5
 
6
6
  module LiveFront
7
- if defined?(Rails)
7
+ if defined? Rails
8
8
  class Railtie < ::Rails::Railtie
9
9
  initializer 'live_front.view_helpers' do
10
10
  ActionView::Base.send :include, LiveFront::ApplicationHelper
@@ -13,4 +13,8 @@ module LiveFront
13
13
  end
14
14
  end
15
15
  end
16
+
17
+ if defined? I18n
18
+ I18n.load_path += Dir.glob(File.expand_path('../../config/locales/*.yml', __FILE__))
19
+ end
16
20
  end
@@ -1,3 +1,3 @@
1
1
  module LiveFront
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -16,9 +16,6 @@ include LiveFront::ApplicationHelper
16
16
  include LiveFront::TabHelper
17
17
  include LiveFront::SignInFormHelper
18
18
 
19
- I18n.load_path += Dir[
20
- Pathname.new(File.expand_path('../../config/locales', __FILE__)).join('*.{rb,yml}')
21
- ]
22
19
  I18n.default_locale = :en
23
20
 
24
21
  class FooController < ActionController::Base
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: live-front-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Krivko