flash_validators 3.0.5 → 3.0.6

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: f39adfbb3c4bcf87f498a72690d187c8991c1a7d
4
- data.tar.gz: d3df54977cb19298f77f416c4be1c98aa34c5889
3
+ metadata.gz: 05896bc64a1ad53036dd01145886ded15eff3fe6
4
+ data.tar.gz: f2e34387005e401aee7bc577ca3d6b092527d792
5
5
  SHA512:
6
- metadata.gz: d4c5fe49a6245d196a41e96f9b65b16a6cc1842c6bc93f7ef0a086feb459bd9410dcbe475e257fe4364e046f20b2d79b66e544f63950c15365b959281dfda295
7
- data.tar.gz: 35a8b32136849d7b3d76f9bf81b110c30abeed85c7e58e13d1925300685ed015b0228371c71cefdd26512595f4a76e917ef7e3eb4bb1c295d72fb866e6c1179f
6
+ metadata.gz: cee262a4ecf33890b121aaaa1d88aeedc75170a6f58fbc99b67a8847ee11c61fd981dee78bf8bea3002374c4457af5d333aff7db2654147ea7d521e7a68a42bc
7
+ data.tar.gz: c7b486b29e0674d82b5ba3de78207f62109104a58aa32d2367ae055472808c575f9116ad9b5331ae9ee9acdf99c67b74580c745c5f84ef529c1eb14c0277d60b
@@ -1,3 +1,3 @@
1
1
  module FlashValidators
2
- VERSION = "3.0.5"
2
+ VERSION = "3.0.6"
3
3
  end
@@ -70,15 +70,17 @@ if defined?(Rails)
70
70
  locales = locales_from(app.config.i18n.available_locales)
71
71
 
72
72
  locales.each do |locale|
73
- add(locale)
73
+ if File.file?(path(locale))
74
+ I18n.load_path << path(locale)
75
+ end
74
76
  end
75
77
  end
76
78
  end
77
79
 
78
80
  protected
79
81
 
80
- def self.add(locale)
81
- I18n.load_path << File.expand_path("../../config/locales/#{locale}.yml", __FILE__)
82
+ def self.path(locale)
83
+ File.expand_path("../../config/locales/#{locale}.yml", __FILE__)
82
84
  end
83
85
 
84
86
  def self.locales_from(args)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flash_validators
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.5
4
+ version: 3.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez