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: d7e13868251188849a0e71487be9790ad9e66d7d
4
- data.tar.gz: 10d5e5e9131dba2cffff73ab5f060b24fe0ab865
3
+ metadata.gz: 902391aef1870ff9b1f115817ec7133eecfb8798
4
+ data.tar.gz: 7b1f718e031f612f5b91a26bec42c9948b08dac3
5
5
  SHA512:
6
- metadata.gz: 12d52e816ac508ce66b385d39f1b8200f87c5a2c947811fb492328dee287b3dc047a1099488d09f02c7a3d471c90a625739f3b40b49e6ece9b4cc2dbf8e82ea1
7
- data.tar.gz: c756452898b99bcd787faaa3abb01719b8defaf6c97de6ffda3f8c1e276cf1318021da45ad1be695020aa429ed42ed68fa0eaf930886b36fce3fcad815d9c8b5
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
- begin
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
- begin
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
 
@@ -1,3 +1,3 @@
1
1
  module GettextI18nRails
2
- Version = VERSION = '1.6.0'
2
+ Version = VERSION = '1.7.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gettext_i18n_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser