i18n 0.6.8 → 0.6.9

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of i18n might be problematic. Click here for more details.

data/lib/i18n/config.rb CHANGED
@@ -111,7 +111,7 @@ module I18n
111
111
  # [Deprecated] this will default to true in the future
112
112
  # Defaults to nil so that it triggers the deprecation warning
113
113
  def enforce_available_locales
114
- @@enforce_available_locales ||= nil
114
+ defined?(@@enforce_available_locales) ? @@enforce_available_locales : nil
115
115
  end
116
116
 
117
117
  def enforce_available_locales=(enforce_available_locales)
data/lib/i18n/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module I18n
2
- VERSION = "0.6.8"
2
+ VERSION = "0.6.9"
3
3
  end
data/test/i18n_test.rb CHANGED
@@ -353,4 +353,13 @@ class I18nTest < Test::Unit::TestCase
353
353
  I18n.config.enforce_available_locales = false
354
354
  end
355
355
  end
356
+
357
+ test "I18n.enforce_available_locales config can be set to false" do
358
+ begin
359
+ I18n.config.enforce_available_locales = false
360
+ assert_equal false, I18n.config.enforce_available_locales
361
+ ensure
362
+ I18n.config.enforce_available_locales = false
363
+ end
364
+ end
356
365
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 8
10
- version: 0.6.8
9
+ - 9
10
+ version: 0.6.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sven Fuchs