everythingbehind-i18n 0.1.1.1 → 0.1.2

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.
data/i18n.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "i18n"
3
- s.version = "0.1.1.1"
3
+ s.version = "0.1.2"
4
4
  s.date = "2008-12-16"
5
5
  s.summary = "Internationalization support for Ruby"
6
6
  s.email = "rails-i18n@googlegroups.com"
@@ -74,7 +74,7 @@ module I18n
74
74
  @translations = nil
75
75
  end
76
76
 
77
- def available_locales
77
+ def locales
78
78
  translations.keys
79
79
  end
80
80
 
@@ -2,7 +2,7 @@ module I18n
2
2
  module TestHelper
3
3
  def assert_all_locales_have_translations_available_to_the_default_locale(message = "All translations should be available in all locales")
4
4
  default_locale = I18n.default_locale.to_sym
5
- locales_to_check = I18n.available_locales - [default_locale]
5
+ locales_to_check = I18n.locales - [default_locale]
6
6
 
7
7
  required_translations = I18n.available_translations(default_locale)
8
8
 
data/lib/i18n.rb CHANGED
@@ -47,8 +47,8 @@ module I18n
47
47
  end
48
48
 
49
49
  # Returns an array of availiable locales
50
- def available_locales
51
- backend.available_locales
50
+ def locales
51
+ backend.locales
52
52
  end
53
53
 
54
54
  # Lists all available translation keys (including scopes) for a given locale
data/test/i18n_test.rb CHANGED
@@ -62,8 +62,8 @@ class I18nTest < Test::Unit::TestCase
62
62
  end
63
63
 
64
64
  def test_delegates_locales_to_backend
65
- I18n.backend.expects(:available_locales)
66
- I18n.available_locales
65
+ I18n.backend.expects(:locales)
66
+ I18n.locales
67
67
  end
68
68
 
69
69
  def test_delegates_translate_to_backend
@@ -1,12 +1,3 @@
1
- # encoding: utf-8
2
- $:.unshift "lib"
3
-
4
- require 'rubygems'
5
- require 'test/unit'
6
- require 'mocha'
7
- require 'i18n'
8
- require 'time'
9
- require 'yaml'
10
1
 
11
2
  class EqualLocalesTestHelperTest < Test::Unit::TestCase
12
3
  include I18n::TestHelper
@@ -109,9 +109,9 @@ class I18nSimpleBackendTranslationsTest < Test::Unit::TestCase
109
109
  def test_list_of_locales
110
110
  @backend.store_translations :'en', :foo => {:bar => 'bar'}
111
111
  @backend.store_translations :'fr', :foo => {:bar => 'baz'}
112
- assert_equal 2, @backend.available_locales.length
113
- assert @backend.available_locales.include?(:en)
114
- assert @backend.available_locales.include?(:fr)
112
+ assert_equal 2, @backend.locales.length
113
+ assert @backend.locales.include?(:en)
114
+ assert @backend.locales.include?(:fr)
115
115
  end
116
116
 
117
117
  def test_store_translations_deep_merges_translations
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: everythingbehind-i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sven Fuchs