xduration 2.2.2 → 2.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,17 @@ module RubyDuration
2
2
  module Rails
3
3
  class Engine < ::Rails::Engine
4
4
  initializer 'duration setup' do
5
- I18n.load_path << Dir[::Rails.root.join('config', 'locales', 'duration', '*.yml')]
5
+ unless locale_files.blank?
6
+ locale_files.each do |file|
7
+ I18n.load_path << file
8
+ end
9
+ end
10
+ end
11
+
12
+ def locale_files
13
+ @locale_files ||= Dir[::Rails.root.join('config', 'locales', 'duration', '*.yml')]
14
+ rescue
15
+ []
6
16
  end
7
17
  end
8
18
  end
@@ -1,3 +1,3 @@
1
1
  class Duration
2
- VERSION = "2.2.2"
2
+ VERSION = "2.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xduration
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: