gettext_i18n_rails 1.6.0 → 1.7.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 902391aef1870ff9b1f115817ec7133eecfb8798
|
4
|
+
data.tar.gz: 7b1f718e031f612f5b91a26bec42c9948b08dac3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a971f790bb7e47b913f0b5a4599437eb84c8aa37dd7abbdb4462f3e734ca671f9224e5decd04fcb29c203caf7daec44e471e59ce821e9f94544d64809a4eba49
|
7
|
+
data.tar.gz: 9729a3b620ffccc8b2f3b2247d06509757036df5a111b3887583185bbefad33f7eb20074e9dc1b90d0a4910a35f0a4a2b36b93b022c6820fd3da6044f18d2f66
|
@@ -23,12 +23,7 @@ module GettextI18nRails
|
|
23
23
|
return true if @library_loaded
|
24
24
|
|
25
25
|
loaded = libraries.detect do |library|
|
26
|
-
|
27
|
-
require library
|
28
|
-
true
|
29
|
-
rescue LoadError
|
30
|
-
false
|
31
|
-
end
|
26
|
+
require library if Gem::Specification.find_all_by_name(library).any?
|
32
27
|
end
|
33
28
|
|
34
29
|
unless loaded
|
@@ -7,11 +7,8 @@ module GettextI18nRails
|
|
7
7
|
config.gettext_i18n_rails.use_for_active_record_attributes = true
|
8
8
|
|
9
9
|
rake_tasks do
|
10
|
-
|
11
|
-
gem "gettext", ">= 3.0.2"
|
10
|
+
if Gem::Specification.find_all_by_name("gettext", ">= 3.0.2").any?
|
12
11
|
require 'gettext_i18n_rails/tasks'
|
13
|
-
rescue Gem::LoadError
|
14
|
-
# no gettext available, no tasks for you!
|
15
12
|
end
|
16
13
|
end
|
17
14
|
|